[ubuntu-in] FFMPEG Video to Mp4, Mp4 to video/audio problem

Mehul Ved mehul.n.ved at gmail.com
Mon Nov 9 18:51:13 GMT 2009


2009/11/9 Mallikarjun <mallik.v.arjun at gmail.com>:
> On Mon, Nov 9, 2009 at 11:16 PM, Moz <listmoz at gmail.com> wrote:
>> mp4 is only a container format, the codec used to encode the video is what
>> matters, container could be any of the available ones. Perhaps you do not
>> have the right codecs. Usually mencoder can do all this very well, but
>> ffmpeg is also very good as well. Checkout http://en.wikipedia.org/wiki/Mp4
>> for the format.
>> Moz
>>
>
> Oh, Thanks MOZ,
> I had been using ffmpeg all these days, but will give mencoder a try and let
> you know.

mencoder is a great program too but I have been successfully using
ffmpeg to convert video files to 3gp. Will be blogging on this quite
soon.
Following command worked for me to convert a file to mp4
ffmpeg -i inputfile.flv -acodec copy -s 480x320 -r 30 -b 768 -ar 44100
-ab 64 -y outputfile.mp4
Remember to put -acodec copy otherwise ffmpeg uses aac which will not
give you any sound. You can play around with size(-s), frame rate(-r),
bitrate(-b), audio rate(-ar) and audio bitrate(-ab).



More information about the ubuntu-in mailing list