[FFmpeg-devel] [PATCH] Fix issue2359: ffmpeg -aspect 16:9 doesn't work
Wed Feb 2 20:55:13 CET 2011
Stefano Sabatini wrote:
> On date Wednesday 2011-02-02 11:41:12 -0500, Mike Scheutzow encoded:
>> This patch fixes the -aspect option for me. ffmpeg now correctly
>> overrides the image aspect ratio at the input to the encoder.
>> This patch is has been tested with "-vcodec mpeg4", "-vcodec copy"
>> and "-vf scale=w:h".
>> When testing, make sure you encode with a codec that implements
>> arbitrary aspect ratio (mpeg4 does, mpeg2 does not.)
>> Also, do not be confused by an unrelated bug. The ffmpeg status msg
>> for the output file SAR & DAR shows the wrong values if the input file
>> SAR is not exactly equal to the output file SAR.
>> However, 'ffmpeg -i infile' seems to accurately report the SAR and DAR,
>> so you can use this to check how a file was encoded.
> The patch is mangled so it is not very readable. But note that Michael
> committed a proper fix to the videolan repo, I don't know which is the
> plan for synching it with the ffmpeg.git repo.
Apologies for mangling the patch with cut/paste. I've attached it here for
I was not aware that michaelni fixed this. It seemed that the thread
"Re: [FFmpeg-devel] [RCF] lavfi aspect ratio setting path" from mid-january
had died without resolution.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the ffmpeg-devel