[FFmpeg-user] Upscaling SD 4x3 to FullHD 16x9 - Aspect Ratio problem

Christoph Gerstbauer christoph.gerstbauer at gmail.com
Mon Jun 25 12:02:41 EEST 2018


Gyan Doshi

thank you, that worked fine!

2018-06-22 15:09 GMT+02:00 Gyan Doshi <gyandoshi at gmail.com>:

>
>
> On 22-06-2018 06:13 PM, Christoph Gerstbauer wrote:
>
>
>> CommandLineOutput:
>>
>> ffmpeg -i "F:\scaler test\_5sec.avi" -vf "crop=720:576:0:32, setfield=tff,
>> yadif=1:0:0, scale=-1:1080, tinterlace=interleave_top, fieldorder=tff"
>> -vcodec ffvhuff -an -s 1920x1080 -aspect 16:9 "F:\scaler
>>
>
> Since you're scaling proportionally ("-1:1080"), you need to pad out the
> frame to FHD.
>
>     ffmpeg -i in -vf "crop=720:576:0:32,setfield=tff,yadif=1:0:0,
>                       scale=-1:1080,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,
>                       tinterlace=interleave_top, fieldorder=tff,
>                       setsar=1"
>            -c:v ffvhuff -an -aspect 16:9   out
>
> Additionally, since your input isn't square-pixels, the following scale
> may be more accurate,
>
>     scale=oh*4/3:1080
>
> Regards,
> Gyan
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-user mailing list