Re: [Hampshire] re-encoding video on linux

Top Page

Reply to this message
Author: Alan Pope
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] re-encoding video on linux
On Wed, 2008-07-23 at 20:10 +0100, Stephen Rowles wrote:
> Tony Whitmore wrote:
> >
> > ffmpeg supports bitrate arguments for both video and audio, so try
> > specifying them manually. For video it is the -b argument, e.g.
> >
> > ffmpeg -i file.avi -b 600k output.mpeg
> >
> > HTH,
> >
> > Tony
> >
> >
> Great, that is idea, I've moved to using x264 video and -b 1800 which
> gives much better quality but still a small file size:
>
> ffmpeg -i rmov0506.avi -b 1800k -vcodec libx264 -acodec libmp3lame mov1.mkv


You might also want to do two-pass to get better quality with x264.

ffmpeg -i rmov0506.avi -b 1800k -vcodec libx264 -pass 1 -acodec
libmp3lame mov1.mkv
ffmpeg -i rmov0506.avi -b 1800k -vcodec libx264 -pass 2 -acodec
libmp3lame mov1.mkv

Cheers,
Al.