[FFmpeg-user] Remove black border on both up/down and left/bottom
Richard Bartczak
richard.bartczak at gmx.de
Fri May 23 02:26:17 EEST 2025
Am 23.05.25 um 00:46 schrieb Richard Bartczak via ffmpeg-user:
> Am 20.05.25 um 14:16 schrieb 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 ?
>>
>> Best regards
>>
>> Richard
>>
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>
> What I have : 720x576 [SAR 16:15 DAR 4:3]
>
> What I want : 720x576 [SAR 64:45 DAR 16:9]
>
> What I get if I use -vf scale=720:576,setsar=64:45,setdar=16:9
>
> will be the following : 720x576 [SAR 221:125 DAR 221:100]
>
> Therefore the question, what I must do, to get with -vf the following
> result : 720x576 [SAR 64:45 DAR 16:9]
>
> There is mothing to crop.
>
> Best regards
>
> Richard
>
>
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
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 ?
Best regards
Richard
More information about the ffmpeg-user
mailing list