添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

https://github.com/google/ExoPlayer/tree/release-v2/extensions/ffmpeg Here they show how to set Environment variable for ffmpeg extension. But when i type these command in android studio terminal.

cd "<path to exoplayer checkout>"
EXOPLAYER_ROOT="$(pwd)"
FFMPEG_EXT_PATH="${EXOPLAYER_ROOT}/extensions/ffmpeg/src/main"

Following error is generated.

'EXOPLAYER_ROOT' is not recognized as an internal or external command,
operable program or batch file.
'FFMPEG_EXT_PATH' is not recognized as an internal or external command,
operable program or batch file.

I also set it in Environment Variable but when i type command in terminal same error are generated. I want to know the proper way to set enviroment variable for ffmpeg extension. It's almost 2nd day i'm trying to solve it but no succeed. Any Help will be appreciated.

You should set environment variables in ~/.bashrc file in linux as following. In your terminal type:

gedit ~/.bashrc

at the end of this file add the following: export FFMPEG_EXT_PATH="your ffmpeg directory"

Save and exit. Reset your terminal. Then type:

echo $FFMPEG_EXT_PATH

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.