开发FFmpeg3.4+SDL2视频播放器
发布时间
阅读量:
阅读量
先在Ubuntu下安装,测试;
FFmpeg播放,需要先安装libx264库,libx264用于解码;
下载路径http://www.videolan.org/developers/x264.html
解压->配置
./configure --disable-asm --enbale-shared --enable-static
make
sudo make install
安装成功后有如下信息:
Configure the bin directory at /usr/local/bin
Install ./x264.h into the include directory at /usr/local/include
Create a hard link from libx264.so.155 in the local_lib directory to usr_local_lib/libx26Jy.so
gcc-ranlib /usr/local/lib/libx264.a
如果想生成ffplay 需要先安装SDL2
这一步就直接sudo apt-get 了 也可以源码编译安装
sudo apt-get安装libSDL2-dev
安装成功
ffmpeg-3.4.2,下载源码http://ffmpeg.org/download.html#releas
全部评论 (0)
还没有任何评论哟~
