svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
apt-get install ffmpeg). Windows availability: I have successfully built FFMPEG on Windows, but it is a convoluted process, requiring the installation of a unix-like POSIX shell (MSYS) and libraries (MinGW). Note: you do not need Cygwin. The resulting DLLs can be used in a normal MS Visual C++ development environment. The build process is documented on the Salyen's Building FFmpeg on Windows site.
ffmpeg -versionTo determine FFMPEG's supported formats/codecs, run
ffmpeg -formatsFor a dump of FFMPEG info, just run
ffmpeg, with no parameters. An example of a simple video conversion:
ffmpeg -i INPUT.avi -s 320x240 -t 180 -ar 44100 OUTPUT.flv
-iidentifies the input video,
-sspecifies the output video dimensions,
-ttruncates the video to 180 seconds,
-arsets the output audio bitrate. FFMPEG will use the input/output file extentions to determine the media formats/codecs to use; this can be overridden by other parameters.
NOTE: As of this writing, the latest source from SVN breaks when trying to
build vhooks. The following warning has been added by an FFMPEG contributor to framehook.h:
logo.c) that composites a PNG logo (with alpha channels) or GIF (with transparency) onto a video; it demonstrates a fairly straight-forward way of using libavformat's
av_read_imageto load static images. I intend to submit this to the FFMPEG source base.
AVImageFormatfor png in libavformat/allformats.h uncomment
av_register_image_fromatfor png in libavformat/allformats.c rebuild FFMPEG
logo.cdocumentation in Doxygen format. Here are PNG and GIF sample logos to test with:
ffmpeg -i sample.wmv -vhook 'vhook_path/logo.so -f logo.png -x -10 -y -10 -w 4 -h 4' sample.mpg