- libavcodec is a library containing all the FFmpeg audio/video encoders and decoders. Most codecs were developped from scratch to ensure best performances and high code reusability.
- libavformat is a library containing parsers and generators for all common audio/video formats.
ffmpeg -i jokes.flv -ab 56 -ar 22050 -b 500 -s 320×240 jokes.mpg
jokes.flv is the file you want to convert, so the name must be the same as the source file.You can name jokes.mpg whatever you want as long as it has the .mpg extension.
-b bitrate: set the video bitrate in kbit/s (default = 200 kb/s)
-ab bitrate: set the audio bitrate in kbit/s (default = 64)
-ar sample rate: set the audio samplerate in Hz (default = 44100 Hz)
-s size: set frame size. The format is WxH (default 160×128 )
Using mencoder :
This might not work.
To convert flv (flash video) files to AVI using open source mencoder. To perform the conversion, you just need to type :
mencoder -oac copy -ovc lavc -o video.avi video.flv
You can convert the FLV files into other format too. In order to do that, make sure you have all the necessary codecs to perform the conversion. If you're in doubt, install w32codecs, add this line in your repository to enable w32codecs installation (assuming you use Ubuntu Edgy Eft).
deb http://packages.freecontrib.org/ubuntu/plf/ edgy free non-free
deb-src http://packages.freecontrib.org/ubuntu/plf/ edgy free non-free
[source]
Comments