Unknown encoder 'libx264'

↘锁芯ラ 提交于 2019-11-28 03:05:34
Sathish

I am using Ubuntu 11.04, and I also came across this error - Unknown encoder 'libx264'. Installing the package libavcodec-extra-53 resolved the problem.

In Ubuntu 14.04 LTS the package that is needed is called libavcodec-extra-54 (and libav-tools)

start by installing these libraries

sudo apt-get install libfdk-aac-dev libass-dev libopus-dev  \
libtheora-dev libvorbis-dev libvpx-dev libssl-dev

As of Ubuntu 17.04 sudo apt-get install nasm does not supply a new enough nasm so install that manually

get source for nasm at http://www.nasm.us/pub/nasm/releasebuilds/?C=M;O=D download the latest then

cd ~/src/nasm-2.13.02
./configure
make -j8
sudo make install

Then for x264 :

git clone git://git.videolan.org/x264.git
cd x264
./configure --enable-static --enable-shared
make -j8
sudo make install

For mp3 get LAME (libmp3lame) from http://lame.sourceforge.net/ version v3.100, then give it the normal

cd lame-3.100/
./configure
make -j8
sudo make install

Finally download ffmpeg source and do install :

git clone git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg

./configure  --enable-gpl   --enable-libass   --enable-libfdk-aac   --enable-libfreetype   --enable-libmp3lame   --enable-libopus   --enable-libtheora   --enable-libvorbis   --enable-libvpx   --enable-libx264   --enable-nonfree --enable-shared --enable-openssl   

make -j8
sudo make install

I feel your pain, but this works - still valid on Ubuntu 18.10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!