Short Notes on ffmpeg

From PaskvilWiki
Revision as of 22:51, 1 June 2012 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The ffmpeg is probably the most versatile encoder/transcoder for video and audio. It supports every format there is, and some of those that do not exist ;-).

Rip DVD into FLV (or anything else)

This is trivial, just few parameters need tweaking, and is you wanna use mp3 for your FLV, you either wanna compile ffmpeg by hand, or - in Ubuntu - install extras for libavcodec - libavcoded-extra-53 in 11.10, and libavcoded-extra-52 in 11.04.

Of course, you may use any vcodec and acodec you want.

Then, all you have to do is:

cat /media/mydisk/VIDEO_TS/VTS_01_[1234].VOB | \
    ffmpeg -i - -s 640x480 -deinterlace -vcodec flv -acodec libmp3lame -vb 1500k -ab 128k -ar 44100 ~/output.flv