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

Mark Filipak markfilipak.imdb at gmail.com
Fri May 23 03:07:43 EEST 2025


On 22/05/2025 20.04, Richard Bartczak via ffmpeg-user wrote:
> Am 23.05.25 um 01:49 schrieb Mark Filipak:
>> On 20/05/2025 08.16, Richard Bartczak via ffmpeg-user wrote:
>>> Hello,
>>>
>>> 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
>>
>> There are no black borders in the pictures. Your player is applying SAR to get 768x576 and then 
>> adding the black borders for your 16x9 display.cribe".
> 
> Yes of course :
> 
> ... by me : There is mothing to crop.
> 
> But I agree the "Head : Remove black border ..." is not the best formulation.
> 
> To make it complete, again :
> 
> Only the syntax must be changed :  -vf scale=720x576,setsar=64/45,setdar=16/9 then I get 720x576 
> [SAR 64:45 DAR 16:9]
> 
> But the video quality is very bad. I did try it with -crf 0, but this parameter will not be used by 
> ffmpeg in this context.
> 
> Is there a way not use somethung like that : -vcodec libx265 -crf 16 to improve the video quality ?

What is your FFmpeg command line, Richard?



More information about the ffmpeg-user mailing list