I want to generate a video with the exact same settings as an existing video. I can run:
ffmpeg -i original.mp4
To get human-readable info about the contents:
Duration: 00:05:32.32, start: 0.000000, bitrate: 474 kb/s
Stream #0.0(und): Video: h264, yuv420p, 480x360, 25 tbr, 25 tbn, 50 tbc
Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16
But what I'd like is to get the command-line I'd need to convert another video into the exact same format, so something like:
ffmpeg -i source.mp4 -vcodec h264 - ....
Any ideas if such a thing is possible?
h264
video withffmpeg
/libav
you needlibx264
. With it installed you would doffmpeg ... -vcodec x264 ..
. Mapping the rest of the options can be difficult though since the usual ones don't apply, here is a guide - trac.ffmpeg.org/wiki/x264EncodingGuide