>

2014년 11월 21일 금요일

ffmpeg install & usage

* Install: Just copy and paste the following.

$ brew install ffmpeg --with-fdk-aac --with-ffplay --with-fontconfig --with-freetype --with-frei0r --with-libass --with-libbluray --with-libcaca --with-libquvi --with-libsoxr --with-libvidstab --with-libvo-aacenc --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with-openssl --with-opus --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools --with-x265

* Horizontal flip (with lossless compression)

$ ffmpeg -i input.avi -vf hflip -c:v ffv1 -c:a copy output.avi

* Making an avi from several image frames with lossless compression

$ ffmpeg -i image-%04d.png  -c:v ffv1   output.avi


* best quality of MPEG4 encoding (1~31)

$ ffmpeg -i frame-%04d.png -c:v mpeg4 -q:v 1 output.mp4

* playing a video

$ ffplay video.avi

댓글 없음:

댓글 쓰기