[FFmpeg-user] Remove black border on both up/down and left/bottom

Terje J. Hanssen terjejhanssen at gmail.com
Thu May 22 23:10:08 EEST 2025



Den 20.05.2025 14:16, skrev Richard Bartczak via ffmpeg-user:
> Hello,
>
> video recorded for 4/3 :
>
> Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), 
> yuv420p(tv, bt470bg, top first), *720x576 [SAR 16:15 DAR 4:3]*, 25 
> fps, 25 tbr, 90k tbn
>
> (container ts).
>
> What I want to have is something like that :
>
> Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), 
> yuv420p(tv, top first), *720x576 [SAR 64:45 DAR 16:9]*, 25 fps, 25 
> tbr, 90k tbn
>
> Did some tries with -vf scale=720:576,setsar=64:45,setdar=16:9 or 
> something like that. But the result neither have the expected size nor 
> the video quality will be acceptable.
>
> To resize the video via TV-settings will be possible, I hope the 
> transformation will also be possible without reencoding.
>
> Any idea what to do ?


I'm not quite sure what you really want to do. But it seems to me that 
your recorded input is a PAL SD 4:3 video format that you want to 
transform to a SD Wide anamorphic wide video format to display without 
black borders on a 16:9 wide screen (possibly in a "DVD Wide compliant" 
mpeg2 format?)

If so, it seems to me you'll need to crop top and bottom borders from 
your input format to get a 16:9 aspect frame, that is 720x405 px.

There are several posts and references about cropping to look at.

But first I'll suggest to take a look at these illustrative figures to 
clarify your actual case:

Widescreen with SD video
https://www.sandelinmedia.com/widescreen/

We also discussed a similar topic on the Cinelerra-GG mailing list

Missing preset for SD 16:9 Anamorphic Wide DV(D)
https://www.mail-archive.com/cin@lists.cinelerra-gg.org/msg02081.html

Terje J. Hanssen













More information about the ffmpeg-user mailing list