0% found this document useful (0 votes)
77 views

Ffmpeg 123

To encode video using H.264 with FFmpeg, libx264 must be compiled from source rather than using the repository version. The document provides instructions to remove the existing libx264 package, download the latest version from the VLC website, compile it with static support enabled, then compile FFmpeg while enabling libx264 encoding support.

Uploaded by

bkjklb
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views

Ffmpeg 123

To encode video using H.264 with FFmpeg, libx264 must be compiled from source rather than using the repository version. The document provides instructions to remove the existing libx264 package, download the latest version from the VLC website, compile it with static support enabled, then compile FFmpeg while enabling libx264 encoding support.

Uploaded by

bkjklb
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

FFMPEG normally doesn\'t build with codecs that require \"system dependencies\". That in particular applies to h.

264 codec, it can use it as input but not as ou tput. So in order to use it (in my case I wanted to used it as it was the same codec a s my input and I liked the results there) you must compile ffmpeg and libx264 fr om source. You might see in some places the \"solution\" of running ./configure --enable-encoder=libx264. This didn\'t work for me, it might have been something good for a previous version\'s configurefile. As of this post, the correct way is \"--enable-libx264 --enable-gpl\" but again, the repository version of libx246 i s outdated, so... First you must remove libx264-dev: sudo apt-get remove libx264-dev Get the latest x264 from vlc: wget ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2 tar --bzip2 -xvf last_x264.tar.bz2 cd x264-snapshot-XXXXXXXX-XXXX/ sudo ./configure --enable-static sudo make sudo make install And finally get the ffmpeg sourcecode: cd ../ git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg cd ffmpeg/ If you don\'t have git, just download the release (for example 0.11.2) wget http://ffmpeg.org/releases/ffmpeg-0.11.2.tar.bz2 tar --bzip2 -xvf ffmpeg-0.11.2.tar.bz2 cd ffmpeg-0.11.2/ And then compile: sudo ./configure --enable-encoder=libx264 sudo make sudo make install

You might also like