I have a clip of a video which is in widescreen format (~21:9). I would like to re-encode this video to the standard format (4:3).
Tried Handbrake, VirtualDub2, and ffmpeg but I'm not getting good results. Usually the final processed clip shows everything as being squeezed which is not what I want.
Here is the clip.
Here is MediaInfo on this clip -
[Attachment 77645 - Click to enlarge]
So is it possible to re-encode this widescreen video clip into the standard size video so that there is no squeezing of the imagery and there are no black bars either (on top/bottom of the clip, nor on sides of the clip)? I don't want to crop the clip either, if possible, as this might cause loss of some important details.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 24 of 24
Thread
-
-
You MUST compromise on one/some of those requirements - either shape (Aspect), letter/pillar-boxing, or cropping. This is analogous to square peg & round hole.
Scott -
-
I would keep the width. The source video has an aspect ratio of 2.33:1, but the original is 2.35:1, so the height must be corrected to 818 before padding.
Afterwards padding to 1920x1440 (4:3).
[Attachment 77650 - Click to enlarge] -
Impossible what you request without distorting the picture. You can crop or pad.
In ffmpeg try the options
a) to fill the 4:3 screen and keeping the height as is, try
Code:ffmpeg -y -i "%~1" -c:a aac -c:v libx264 -preset slow -crf 20 -filter:v "scale=w=1098:h=824:force_original_aspect_ratio=increase,crop=1098/sar:824" "%~1_cropped.mp4"
Code:ffmpeg -y -i "%~1" -c:a aac -c:v libx264 -preset slow -crf 20 -filter:v "scale=w=1098:h=824:force_original_aspect_ratio=decrease,pad=1098/sar:824:-1:-1:color=black" "%~1_padded.mp4"
-
-
Thanks for the replies, especially the detailed replies!
The cropping option is not really a good solution as it removes some details from the imagery.
The better option seems to be with the black bars, and although I'm not happy with this option either, it at least preserves all of the imagery.
Still experimenting with the test clip trying to get the best possible result (minimal black bars). -
Still experimenting with the test clip trying to get the best possible result (minimal black bars).
If you will accept black bars, just use the file as-is. Players should fill the screen laterally and you'll have letterboxing ie black bars top and bottom.
Or you could reduce the letterboxing by going to 16:9. You'll lose a bit off the sides, but not as much as if you cropped to 4:3.
16:9 video attached. 228 pixels cropped off each side. -
-
Cropping the video means having to remove some of the imagery from the video, which is a destructive process and is not wanted.
With the black bar option, all of the imagery is preserved and is therefore a non-destructive process and is the better option of the two. -
OK, then the whole topic is pointless. You obviously cannot "get rid of" the black bars without causing distortion (vertical stretching). Just play the file as-is and accept that you'll have black bars top and bottom (Letterboxing).
-
I'm not entirely sure why the OP wants to view a widescreen material on a 4:3 aspect ratio, Is it a monitor limitation? If so you can do some editing called pan and scan that was used by major production companies to fit widescreen materials into an old school CRT TVs by using a NLE editor with keyframes with minimum damage to the original content, Basically sliding a 4:3 rectangle within the widescreen frame left or right depends on where the important area of viewing or the subject is located.
Select the 4:3 rectangle within the widescreen frame and go scene by scene, If the scene has the subject on the left, position the 4:3 rectangle on the left for the entire scene, the same for the right or anywhere in between. If the subject is moving in the scene, you use keyframes, select the subject initial position at the beginning of the scene, Select the subject final position at the end of the scene, The frame would move along the scene from the initial to the final position as the scene moves, this is called linear pan or something like that, you can do non-linear pan by selecting more than 2 key frames at different positions in the scene. It's time consuming though. -
@meeshu: After all, why would you want to make it "standard 4:3"? Is your TV 4:3?
As Alwyn suggested, for todays TVs, mobile phones and monitors better put it onto a "standard 16:9" canvas. Here 3 variants cropped or padded to 16:9.
- for 16:9 cropping
Code:ffmpeg -y -i "%~1" -c:a aac -c:v libx264 -preset slow -crf 20 -filter:v "scale=w=1280:h=720:force_original_aspect_ratio=increase,crop=1280/sar:720" "%~1_cropped.mp4"
Code:ffmpeg -y -i "%~1" -c:a aac -c:v libx264 -preset slow -crf 22 -filter:v "scale=w=1280:h=720:force_original_aspect_ratio=decrease,pad=1280/sar:720:-1:-1:color=black" "%~1_padded.mp4"
- or you could apply some compromize cropping to reduce the size of the letterbox pads.
Code:ffmpeg -y -i "%~1" -c:a aac -c:v libx264 -preset slow -crf 20 -filter:v "scale=w=1440:h=1080:force_original_aspect_ratio=decrease,pad=1440/sar:1080:-1:-1:color=black,crop=1280/sar:720" "%~1_crop-pad.mp4"
Last edited by Sharc; 14th Mar 2024 at 03:33. Reason: 3rd variant added
-
-
-
-
-
You need to add 308 pixels to top and to bottom (1440-824=616/2=308). You'll then have an in-proportion 1920x1440 frame (given the original video is 1920 wide).
I don't know the ffmpeg commands for adding/padding/letterboxing. -
It is as simple as adjusting commandline b) of post #5 accordingly (changes are in red):
Code:ffmpeg -y -i "%~1" -c:a aac -c:v libx264 -preset slow -crf 20 -filter:v "scale=w=1920:h=1440:force_original_aspect_ratio=decrease,pad=1920/sar:1440:-1:-1:color=black" "%~1_padded.mp4"
No need for a calculator on your desk (or on your knees).Last edited by Sharc; 15th Mar 2024 at 02:01. Reason: Sidenote added
-
Thanks Alwyn and Sharc for the comments.
In ffmpeg, I thought I did just change the pixel values for width and height, but I must have accidentally mistyped something within ffmpeg command leading to squeezed imagery on the output video clip(?)
Tried again, and this time got a better result!
Thank you. -
The infamous ice factory fight was in the film - The Big Boss.
https://www.imdb.com/title/tt0067824/?ref_=tt_sims_tt_t_1
Similar Threads
-
Conversion of Frame Size and Pixel Aspect Ratio
By gs684 in forum EditingReplies: 0Last Post: 3rd Jul 2022, 20:54 -
Aspect Ratio Conversion
By rw1954 in forum Newbie / General discussionsReplies: 1Last Post: 25th May 2022, 18:56 -
Which Video Conversion Programs allow for Custom Aspect Ratio?
By Dart77 in forum Video ConversionReplies: 13Last Post: 5th Feb 2022, 09:25 -
Best Conversion Settings for a Pal VHS Tape With an Aspect Ratio of 14:9
By TazDave in forum CapturingReplies: 35Last Post: 3rd Nov 2021, 06:57 -
Frame Size / Aspect Ratio conversion in Vegas Pro
By Joey Bagodonuts in forum Video ConversionReplies: 3Last Post: 22nd May 2020, 14:47