[download code]-Ffmpeg:git clone Git://source.ffmpeg.org/ffmpeg.git-openh264:git clone https://github.com/cisco/openh264.git-x264 : Git clone git://git.videolan.org/x264.git
[Compile openh264]Makesudo make Install
[Compile x264]./configure--enable-sharedMake
sudo make install
[Compile FFmpeg]
./configure \
--enable-shared \
--enable-libopenh264 \
--enable-libx264 \
--ENABLE-GPL \
--prefix=/usr/local/ffmpeg
[Configuration Environment] cd/etc/ld.so.conf.d/
Create ffmpeg.conf, write "/usr/local/ffmpeg/lib"
sudo ldconfig
sudo ln-s/usr/local/ffmpeg/bin/ffmpeg/usr/local/bin/sudo ln-s/usr/local/ffmpeg/bin/ffprobe/usr/local/bin/sudo LN- s/usr/local/ffmpeg/bin/ffserver/usr/local/bin/
[Verify FFmpeg]FFmpeg--help
[using FFmpeg]Convert AVI video to MP4 video using openh264:ffmpeg-y-I in.avi-vcodec libopenh264 out.mp4
Notes Ubuntu under compilation ffmpeg+openh264+x264