It has a bunch of codecs including x264 and MP3. My Ubuntu has some codecs on it so I needed to encode my media files into a suitable format to play them.
I received the error:
Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
And finally arrived at the following:
ffmpeg -i ./test.flv -acodec libmp3lame -vcodec libx264 -vpre medium test.avi
You can find helpful details on encoding on the blog:
http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/
including a handy list of encoding quality vs speed presets.
Update
It may be worth running ffmpeg -i test.
If either of the streams are mp3 or h264 then you can save time by passing 'copy' as the -acodec or -vcodec respectivly.
No comments:
Post a Comment