[FFmpeg-user] Upscaling SD 4x3 to FullHD 16x9 - Aspect Ratio problem
Gyan Doshi
gyandoshi at gmail.com
Fri Jun 22 16:09:35 EEST 2018
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
More information about the ffmpeg-user
mailing list