[FFmpeg-user] x264: pixel aspect ratio overriden?
Peter B.
pb at das-werkstatt.com
Mon Apr 23 11:38:11 CEST 2012
Quoting "Peter B." <pb at das-werkstatt.com>:
> On 04/19/2012 08:22 PM, Boštjan Strojan wrote:
>> option a:
>>
>> add setsar=1:1 to the end of your filter chain, like for example:
>>
>> -vf "scale=1024:576,setsar=1:1"
>>
>> option b:
>>
>> use aspect flag, like -aspect 1.778
>>
>
> @Boštjan:
> Will try that. Thanks!
It worked!
Using the videofiler "-vf" argument for scaling and SAR works
perfectly! Thank you very much for that hint.
Here is the commandline I'm now using for rescaling anamorphic 5:4
back to 16:9 with SAR=1:1:
//----------------
ffmpeg -i input.mpg -flags +ilme+ildct -vcodec libx264 -deinterlace
-vf "scale=720:400,setsar=1:1" -acodec libfaac -b 850k -ab 128k
test-SAR1_1.flv
//----------------
In case someone would avoid pixel resizing, here's a solution for
dynamic resizing on the player side, using the "setdar" vf-option:
//----------------
ffmpeg -i input.mpg -flags +ilme+ildct -vcodec libx264 -deinterlace
-vf "scale=720:576,setdar=16:9" -acodec libfaac -b 850k -ab 128k
test-DAR16_9.flv
//----------------
Thanks again,
Pb
More information about the ffmpeg-user
mailing list