H.264 Software
From esoterum.org
Contents
ffmpeg
Acronyms
- BSF: Bitstream Filter
References
- ffmpeg documentation
- ffmpeg mailing lists
- Information on configureing ffmpgeg H.264 for multithreading
ffmpeg -i video.264 video.yuv
(conversion, decode, .264 to .yuv)ffmpeg -s hd1080 -i video.264 video.yuv
ffmpeg -vframes [num frames] -i video.264 video.yuv
configure
- [Command-line Arguments|/Command-line Arguments]
configure --enable-gprof --disable-optimizations --disable-mmx --disable-mmx2 --disable-ssse3 --disable-armv5te --disable-armvfp --disable-iwmmxt --disable-network --disable-ipv6 --disable-zlib --disable-bzlib --disable-vhook --disable-mpegaudio-hp --disable-ffserver --disable-ffplay
- Disable all decoders except for h264:
configure --disable-decoder=aasc --disable-decoder=amv --disable-decoder=asv1 --disable-decoder=asv2 --disable-decoder=avs --disable-decoder=bethsoftvid --disable-decoder=bfi --disable-decoder=bmp --disable-decoder=c93 --disable-decoder=cavs --disable-decoder=cinepak --disable-decoder=cljr --disable-decoder=cscd --disable-decoder=cyuv --disable-decoder=dnxhd --disable-decoder=dsicinvideo --disable-decoder=dvvideo --disable-decoder=dxa --disable-decoder=eacmv --disable-decoder=eatgv --disable-decoder=eightbps --disable-decoder=eightsvx_exp --disable-decoder=eightsvx_fib --disable-decoder=escape124 --disable-decoder=ffv1 --disable-decoder=ffvhuff --disable-decoder=flashsv --disable-decoder=flic --disable-decoder=flv --disable-decoder=fourxm --disable-decoder=fraps --disable-decoder=gif --disable-decoder=h261 --disable-decoder=h263 --disable-decoder=h263i --disable-decoder=huffyuv --disable-decoder=idcin --disable-decoder=indeo2 --disable-decoder=indeo3 --disable-decoder=interplay_video --disable-decoder=jpegls --disable-decoder=kmvc --disable-decoder=loco --disable-decoder=mdec --disable-decoder=mimic --disable-decoder=mjpeg --disable-decoder=mjpegb --disable-decoder=mmvideo --disable-decoder=motionpixels --disable-decoder=mpeg_xvmc --disable-decoder=mpeg1video --disable-decoder=mpeg2video --disable-decoder=mpeg4 --disable-decoder=mpegvideo --disable-decoder=msmpeg4v1 --disable-decoder=msmpeg4v2 --disable-decoder=msmpeg4v3 --disable-decoder=msrle --disable-decoder=msvideo1 --disable-decoder=mszh --disable-decoder=nuv --disable-decoder=pcx --disable-decoder=png --disable-decoder=ptx --disable-decoder=qdraw --disable-decoder=qpeg --disable-decoder=qtrle --disable-decoder=rawvideo --disable-decoder=rl2 --disable-decoder=roq --disable-decoder=rpza --disable-decoder=rv10 --disable-decoder=rv20 --disable-decoder=sgi --disable-decoder=smacker --disable-decoder=smc --disable-decoder=snow --disable-decoder=sp5x --disable-decoder=sunrast --disable-decoder=svq1 --disable-decoder=svq3 --disable-decoder=targa --disable-decoder=theora --disable-decoder=thp --disable-decoder=tiertexseqvideo --disable-decoder=tiff --disable-decoder=truemotion1 --disable-decoder=truemotion2 --disable-decoder=tscc --disable-decoder=txd --disable-decoder=ulti --disable-decoder=vb --disable-decoder=vc1 --disable-decoder=vcr1 --disable-decoder=vmdvideo --disable-decoder=vmnc --disable-decoder=vp3 --disable-decoder=vp5 --disable-decoder=vp6 --disable-decoder=vp6a --disable-decoder=vp6f --disable-decoder=vqa --disable-decoder=wmv1 --disable-decoder=wmv2 --disable-decoder=wmv3 --disable-decoder=wnv1 --disable-decoder=xan_wc3 --disable-decoder=xl --disable-decoder=xsub --disable-decoder=zlib --disable-decoder=zmbv --disable-decoder=ac3 --disable-decoder=alac --disable-decoder=ape --disable-decoder=atrac3 --disable-decoder=cook --disable-decoder=dca --disable-decoder=dsicinaudio --disable-decoder=flac --disable-decoder=imc --disable-decoder=mace3 --disable-decoder=mace6 --disable-decoder=mlp --disable-decoder=mp2 --disable-decoder=mp3 --disable-decoder=mp3adu --disable-decoder=mp3on4 --disable-decoder=mpc7 --disable-decoder=mpc8 --disable-decoder=nellymoser --disable-decoder=qdm2 --disable-decoder=ra_144 --disable-decoder=ra_288 --disable-decoder=shorten --disable-decoder=smackaud --disable-decoder=sonic --disable-decoder=truespeech --disable-decoder=tta --disable-decoder=vmdaudio --disable-decoder=vorbis --disable-decoder=wavpack --disable-decoder=wmav1 --disable-decoder=wmav2 --disable-decoder=ws_snd1 --disable-decoder=pcm_alaw --disable-decoder=pcm_dvd --disable-decoder=pcm_f32be --disable-decoder=pcm_mulaw --disable-decoder=pcm_s8 --disable-decoder=pcm_s16be --disable-decoder=pcm_s16le --disable-decoder=pcm_s16le_planar --disable-decoder=pcm_s24be --disable-decoder=pcm_s24daud --disable-decoder=pcm_s24le --disable-decoder=pcm_s32be --disable-decoder=pcm_s32le --disable-decoder=pcm_u8 --disable-decoder=pcm_u16be --disable-decoder=pcm_u16le --disable-decoder=pcm_u24be --disable-decoder=pcm_u24le --disable-decoder=pcm_u32be --disable-decoder=pcm_u32le --disable-decoder=pcm_zork --disable-decoder=interplay_dpcm --disable-decoder=roq_dpcm --disable-decoder=sol_dpcm --disable-decoder=xan_dpcm --disable-decoder=adpcm_4xm --disable-decoder=adpcm_adx --disable-decoder=adpcm_ct --disable-decoder=adpcm_ea --disable-decoder=adpcm_ea_maxis_xa --disable-decoder=adpcm_ea_r1 --disable-decoder=adpcm_ea_r2 --disable-decoder=adpcm_ea_r3 --disable-decoder=adpcm_ea_xas --disable-decoder=adpcm_g726 --disable-decoder=adpcm_ima_amv --disable-decoder=adpcm_ima_dk3 --disable-decoder=adpcm_ima_dk4 --disable-decoder=adpcm_ima_ea_eacs --disable-decoder=adpcm_ima_ea_sead --disable-decoder=adpcm_ima_qt --disable-decoder=adpcm_ima_smjpeg --disable-decoder=adpcm_ima_wav --disable-decoder=adpcm_ima_ws --disable-decoder=adpcm_ms --disable-decoder=adpcm_sbpro_2 --disable-decoder=adpcm_sbpro_3 --disable-decoder=adpcm_sbpro_4 --disable-decoder=adpcm_swf --disable-decoder=adpcm_thp --disable-decoder=adpcm_xa --disable-decoder=adpcm_yamaha --disable-decoder=dvbsub --disable-decoder=dvdsub --disable-decoder=liba52 --disable-decoder=libamr_nb --disable-decoder=libamr_wb --disable-decoder=libdirac --disable-decoder=libfaad --disable-decoder=libgsm --disable-decoder=libgsm_ms --disable-decoder=libschroedinger --disable-decoder=mpeg4aac
- Disable all encoders except for rawvideo:
configure --disable-encoder=asv1 --disable-encoder=asv2 --disable-encoder=bmp --disable-encoder=dnxhd --disable-encoder=dvvideo --disable-encoder=ffv1 --disable-encoder=ffvhuff --disable-encoder=flashsv --disable-encoder=flv --disable-encoder=gif --disable-encoder=h261 --disable-encoder=h263 --disable-encoder=h263p --disable-encoder=huffyuv --disable-encoder=jpegls --disable-encoder=ljpeg --disable-encoder=mjpeg --disable-encoder=mpeg1video --disable-encoder=mpeg2video --disable-encoder=mpeg4 --disable-encoder=msmpeg4v1 --disable-encoder=msmpeg4v2 --disable-encoder=msmpeg4v3 --disable-encoder=pam --disable-encoder=pbm --disable-encoder=pgm --disable-encoder=pgmyuv --disable-encoder=png --disable-encoder=ppm --disable-encoder=qtrle --disable-encoder=roq --disable-encoder=rv10 --disable-encoder=rv20 --disable-encoder=sgi --disable-encoder=snow --disable-encoder=svq1 --disable-encoder=targa --disable-encoder=tiff --disable-encoder=wmv1 --disable-encoder=wmv2 --disable-encoder=zlib --disable-encoder=zmbv --disable-encoder=ac3 --disable-encoder=flac --disable-encoder=mp2 --disable-encoder=sonic --disable-encoder=sonic_ls --disable-encoder=vorbis --disable-encoder=wmav1 --disable-encoder=wmav2 --disable-encoder=pcm_alaw --disable-encoder=pcm_f32be --disable-encoder=pcm_mulaw --disable-encoder=pcm_s8 --disable-encoder=pcm_s16be --disable-encoder=pcm_s16le --disable-encoder=pcm_s24be --disable-encoder=pcm_s24daud --disable-encoder=pcm_s24le --disable-encoder=pcm_s32be --disable-encoder=pcm_s32le --disable-encoder=pcm_u8 --disable-encoder=pcm_u16be --disable-encoder=pcm_u16le --disable-encoder=pcm_u24be --disable-encoder=pcm_u24le --disable-encoder=pcm_u32be --disable-encoder=pcm_u32le --disable-encoder=pcm_zork --disable-encoder=roq_dpcm --disable-encoder=adpcm_adx --disable-encoder=adpcm_g726 --disable-encoder=adpcm_ima_qt --disable-encoder=adpcm_ima_wav --disable-encoder=adpcm_ms --disable-encoder=adpcm_swf --disable-encoder=adpcm_yamaha --disable-encoder=dvbsub --disable-encoder=dvdsub --disable-encoder=libamr_nb --disable-encoder=libamr_wb --disable-encoder=libdirac --disable-encoder=libfaac --disable-encoder=libgsm --disable-encoder=libgsm_ms --disable-encoder=libmp3lame --disable-encoder=libschroedinger --disable-encoder=libtheora --disable-encoder=libvorbis --disable-encoder=libx264 --disable-encoder=libxvid
- Disable all parsers except h264: --disable-parser=aac --disable-parser=ac3 --disable-parser=cavsvideo --disable-parser=dca --disable-parser=dirac --disable-parser=dvbsub --disable-parser=dvdsub --disable-parser=h261 --disable-parser=h263 --disable-parser=mjpeg --disable-parser=mlp --disable-parser=mpeg4video --disable-parser=mpegaudio --disable-parser=mpegvideo --disable-parser=pnm --disable-parser=vc1 --disable-parser=vp3
Standard options:
--help print this message --logfile=FILE log tests and output to FILE [config.err] --disable-logging do not log configure debug information --prefix=PREFIX install in PREFIX [] --bindir=DIR install binaries in DIR [PREFIX/bin] --libdir=DIR install libs in DIR [PREFIX/lib] --shlibdir=DIR install shared libs in DIR [PREFIX/lib] --incdir=DIR install includes in DIR [PREFIX/include] --mandir=DIR install man page in DIR [PREFIX/share/man] --enable-static build static libraries [default=yes] --disable-static do not build static libraries [default=no] --enable-shared build shared libraries [default=no] --disable-shared do not build shared libraries [default=yes] --enable-gpl allow use of GPL code, the resulting libav* and ffmpeg will be under GPL [default=no] --enable-nonfree allow use of nonfree code, the resulting libav* and ffmpeg will be unredistributable [default=no] --enable-postproc enable GPLed postprocessing support [default=no] --enable-swscale software scaler support [default=no] --enable-avfilter video filter support (replaces vhook) [default=no] --enable-avfilter-lavf video filters dependant on avformat [default=no] --enable-beosthreads use BeOS threads [default=no] --enable-os2threads use OS/2 threads [default=no] --enable-pthreads use pthreads [default=no] --enable-w32threads use Win32 threads [default=no] --enable-x11grab enable X11 grabbing [default=no]
External library support:
--enable-mlib use Sun medialib [default=no] --enable-liba52 enable GPLed liba52 support [default=no] --enable-liba52bin open liba52.so.0 at runtime [default=no] --enable-avisynth allow reading AVISynth script files [default=no] --enable-libamr-nb enable libamr-nb floating point audio codec --enable-libamr-wb enable libamr-wb floating point audio codec --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394 and libraw1394 [default=no] --enable-libdirac enable Dirac support via libdirac [default=no] --enable-libfaac enable FAAC support via libfaac [default=no] --enable-libfaad enable FAAD support via libfaad [default=no] --enable-libfaadbin open libfaad.so.0 at runtime [default=no] --enable-libgsm enable GSM support via libgsm [default=no] --enable-libmp3lame enable MP3 encoding via libmp3lame [default=no] --enable-libnut enable NUT (de)muxing via libnut, native demuxer exists [default=no] --enable-libschroedinger enable Dirac support via libschroedinger [default=no] --enable-libtheora enable Theora encoding via libtheora [default=no] --enable-libvorbis enable Vorbis encoding via libvorbis, native implementation exists [default=no] --enable-libx264 enable H.264 encoding via x264 [default=no] --enable-libxvid enable Xvid encoding via xvidcore, native MPEG-4/Xvid encoder exists [default=no]
Advanced options (experts only):
--source-path=PATH path to source code [/home/mbaker/workspace/ffmpeg] --cross-prefix=PREFIX use PREFIX for compilation tools [] --enable-cross-compile assume a cross-compiler is used --target-os=OS compiler targets OS [linux] --cc=CC use C compiler CC [gcc] --extra-cflags=ECFLAGS add ECFLAGS to CFLAGS [ -D_ISOC9X_SOURCE] --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS [] --extra-libs=ELIBS add ELIBS [] --build-suffix=SUFFIX suffix for application specific build [] --arch=ARCH select architecture [i686] --cpu=CPU selects the minimum cpu required (affects instruction selection, may crash on older CPUs) --enable-powerpc-perf enable performance report on PPC (requires enabling PMC) --disable-mmx disable MMX usage --disable-mmx2 disable MMX2 usage --disable-ssse3 disable SSSE3 usage --disable-armv5te disable armv5te usage --disable-armv6 disable armv6 usage --disable-armvfp disable ARM VFP usage --disable-iwmmxt disable iwmmxt usage --disable-altivec disable AltiVec usage --disable-network disable network support [default=no] --disable-ipv6 disable ipv6 support [default=no] --disable-zlib disable zlib [default=no] --disable-bzlib disable bzlib [default=no] --disable-vhook disable video hooking support --disable-mpegaudio-hp faster (but less accurate) MPEG audio decoding [default=no] --enable-gray enable full grayscale support (slower color) --disable-ffmpeg disable ffmpeg build --disable-ffserver disable ffserver build --disable-ffplay disable ffplay build --enable-small optimize for size instead of speed --enable-hardcoded-tables use hardcoded tables instead of runtime generation --enable-memalign-hack emulate memalign, interferes with memory debuggers --disable-encoder=NAME disables encoder NAME --enable-encoder=NAME enables encoder NAME --disable-decoder=NAME disables decoder NAME --enable-decoder=NAME enables decoder NAME --disable-encoders disables all encoders --disable-decoders disables all decoders --disable-muxer=NAME disables muxer NAME --enable-muxer=NAME enables muxer NAME --disable-muxers disables all muxers --disable-demuxer=NAME disables demuxer NAME --enable-demuxer=NAME enables demuxer NAME --disable-demuxers disables all demuxers --enable-parser=NAME enables parser NAME --disable-parser=NAME disables parser NAME --disable-parsers disables all parsers --enable-bsf=NAME enables bitstream filter NAME --disable-bsf=NAME disables bitstream filter NAME --disable-bsfs disables all bitstream filters --enable-protocol=NAME enables protocol NAME --disable-protocol=NAME disables protocol NAME --disable-protocols disables all protocols --disable-devices disables all devices --list-decoders show all available decoders --list-encoders show all available encoders --list-muxers show all available muxers --list-demuxers show all available demuxers --list-parsers show all available parsers --list-protocols show all available protocols --list-bsfs show all available bitstream filters --list-indevs show all available input devices --list-outdevs show all available output devices
Developer options (useful when working on FFmpeg itself):
--disable-debug disable debugging symbols --enable-debug=LEVEL set the debug level [] --enable-gprof enable profiling with gprof [] --disable-optimizations disable compiler optimizations --enable-extra-warnings enable more compiler warnings --disable-stripping disable stripping of executables and shared libraries
JM Reference Code
Simulation Software
- Videolan.org (from Dr. Chatha)
- -No linux support yet?