[FFMPEG]安装
Python
conda-forge/ffmpeg-feedstock已编译好Python包,可以直接安装
$ conda config --add channels conda-forge
$ conda install ffmpeg
# 搜索指定版本
$ conda search ffmpeg --channel conda-forge
Docker
使用ffmpeg-feedstock/.scripts/run_docker_build.sh安装FFMPEG Docker镜像
源码编译
使用ffmpeg-feedstock/recipe/build.sh执行源码编译,可以根据需要增减编译选项
查询当前使用
$ whereis ffmpeg
ffmpeg: /usr/bin/ffmpeg /usr/share/ffmpeg /home/zj/anaconda3/bin/ffmpeg /usr/share/man/man1/ffmpeg.1.gz
指定当前使用
设置全局变量
export FFMPEG_HOME=/path/to/ffmpeg
export PATH=$FFMPEG_HOME/bin:$PATH
当出现多个ffmpeg,一定要查询全局变量,不然你操作调整的可能不是实际运行的那个。