|Subject:||RE: [Fsuk-manchester] query|
|Date:||Mon, 21 Feb 2011 09:22:27 +0000|
ffmpeg will convert just about anything to anything, although the syntax and scruples can be a little obscure at times. It’s also very processor dependent in terms of speed, so if you are converting long HD videos, go for a box with a meaty CPU.
As an example, I use the following to convert mp4 from iPlayer to DivX avi to play on my usb-enabled tv:
ffmpeg -i inputfile.mp4 -vtag DIVX -f avi -sameq -vcodec mpeg4 -aspect 16:9 -b 1024k -s 640x384 -ab 128k -ac 2 outputfile.avi
Generally the syntax is:
ffmpeg -i <inputfile> <options> <outputfile>
It’s pretty good at guessing formats and options itself, so often something like this will work:
ffmpeg -i inputfile.mp4 outputfile.avi
The options are really only needed to control the finer details of the encoding. As a rule, whacking in “-sameq” is a good starting point (same output quality as input quality), although you might need to play with the bitrate “-b” and audio bitrate “-ab” to get good results. You might also need to play around with “-qmin” and “-qmax” to get good quality encoding – be aware that the numbers used are counter-intiutive, so qmax refers to “maximum compression”, not “maximum quality”.
You might need to install various restricted/universe/mediabunu repositories to get ffmpeg properly working, as the free version that ships is pretty restricted in what it can do, especially if you are wanting to encode to proprietary formats like wmv.
query from a pall. any answers?
|[Prev in Thread]||Current Thread||[Next in Thread]|