How can I add horizontal borders to the video so that it is in 4:3 format? I have a video that originally contains stripes on the right and left sides, but it was stretched to 16:9, I want to return it to 4:3 by adding the stripes, what script do I use in Avisynth to do this?
+ Reply to Thread
Results 1 to 6 of 6
-
-
Code:
Spline36Resize(height*4/3, height) # resize to 4:3 AddBorders(height*2/9, 0, height*2/9, 0) # add borders to create a 16:9 frame
-
-
IMO, these days you shouldn't be adding any borders. Every TV I've used will faithfully display a 4:3 video without stretching it, as will any decent computer media player eg VLC.
What adding hard borders does do is mess up how the video is displayed on a portrait screen when it is held upright eg phone (compressed video area), and worse, on a 4:3 screen such as a ipad, even when held in landscape, the actual video frame will not display across the full screen. Ipad example:
[Attachment 87266 - Click to enlarge]
[Attachment 87267 - Click to enlarge]
Youtube videos should also not have burned-in bars, as they look positively ugly IMO.Last edited by Alwyn; 2nd Jun 2025 at 02:39.
-
This Videohelp post shows what happens when borders are hard-coded into a video.
-
No need to add borders, you can simply change the aspect ratio to 4:3, without re-encoding.
You can do this with clever Ffmpeg-GUI.
Similar Threads
-
Cropping borders on a 16:9 video to 4:3 in Premiere Pro
By techmot in forum Video ConversionReplies: 3Last Post: 2nd Mar 2025, 13:13 -
What are the Black borders at side of my Video in VSDC?
By Frank Sebem in forum Newbie / General discussionsReplies: 6Last Post: 24th Aug 2023, 07:59 -
VirtualDub video borders getting filled with pixels
By VidNoob123 in forum Newbie / General discussionsReplies: 6Last Post: 4th Jun 2023, 12:31 -
Need to cut out video sections at segment borders, how?
By BosseB in forum Video ConversionReplies: 12Last Post: 24th May 2023, 00:18 -
ffmpeg - output metadata, add/remove modification then add it to the video
By kalemvar1 in forum Video ConversionReplies: 3Last Post: 30th Jul 2021, 01:29