Unknown encoder 'libx264'

I installed ffmpeg 0.8.9 on ubuntu11 on

./configure --enable-gpl --enable-nonfree -enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libx264

When I launched it

ffmpeg -y -i test.mp4 -f mpegts -acodec libmp3lame -ar 48000 -ab 64k -vcodec libx264 -b 250k -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 250k -maxrate 250k -bufsize 250k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect 320:240 -g 30 -async 2 a.ts 

He said

Unknown encoder 'libx264'

(Note: the same error may occur when using avconv )

How can i fix this? Thank!

+70
ubuntu ffmpeg x264 avconv
Mar 19 2018-12-12T00:
source share
2 answers

I am using Ubuntu 11.04 and I also encountered this error - Unknown encoder 'libx264' . Installing the libavcodec-extra-53 package resolved the issue.

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

+105
Apr 05 '12 at 11:20
source share

start by installing these libraries

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

On Ubuntu 17.04, sudo apt-get install nasm does not add a sufficiently new nasm, so install it manually

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

 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 normal

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

Finally, download the ffmpeg source and complete the installation:

 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 it works

+42
Feb 27 '13 at 6:52
source share



All Articles