[FFmpeg-user] Converting numerous files to h264

Dielson Sales dielsonscarvalho at gmail.com
Sun Nov 11 20:59:57 CET 2012

2012/11/10 Carl Eugen Hoyos <cehoyos at ag.or.at>

> neoculture23 <neoculture23 <at> gmail.com> writes:
> > ffmpeg -i old_file.<ext> -c:a copy -c:s copy -c:d copy
> > -c:t copy -c:v libx264 -preset slower old_file.mkv
> Completely apart from the fact that this is missing a bitrate
> and -map 0 (or similar to ensure all tracks are copied and
> not just one of each kind):
> I fear that what you want will not work in the general case
> because not all codecs are supported in all containers.
> (I mean specification-wise, additionally FFmpeg is not bug-
> free and you will find that for example stream copy from
> h264-in-mpegts to matroska will sometimes not work.)

I would follow this guide[1] and choose a crf value instead of defining a
bitrate, hence
you can think of quality instead of bitrate. If I'm not mistaken, choosing
a fixed bitrate
value can lead to different results depending on the input characteristics,
such as
resolution, am I right?

[1] http://ffmpeg.org/trac/ffmpeg/wiki/x264EncodingGuide

More information about the ffmpeg-user mailing list