最近开始学习音视频相关内容,在Mac电脑上工作,一些相关的环境还得要安装一下。
整理了一下大致所需安装工具:
1、brew
2、Git
3、yasm
编译FFmpeg的话
1、在FFmpeg目录下 执行:./configuer --prefix=/usr/local/ffmpeg/ --enable-debug =3 --disable-static --enable-shared
prefix=/usr/local/ffmpeg/ :指定编译后的路径
--enable-debug =3 :debug 等级
--disable-static:不编译静态库 --enable-shared:编译动态库
2、make -j 4
3、make install 在make install的时候,有些Mac版本会报错:read-only,这个参考:https://jingyan.baidu.com/article/17bd8e52e9cfc5c4aa2bb806.html
编译完成后,FFmpeg目录下有bin include lib sharre4个文件夹