Is it possible to do this? I want to make the beginning of my video be in 16:9 aspect ratio, and the remainder of the video should be in 4:3 aspect ratio with black bars on each side.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 28 of 28
Thread
-
-
What is the source resolution and what is the your intended target resolution?
These days, mixed 16x9 and 4x3 is usually represented in a 16x9 box with black bars at the sides for the 4x3 content.
What is the problem? -
I am recording footage of a game in 320x240 resolution, which is 4:3. I’m stretching it to widescreen 16:9. I would like for the beginning of the footage to be stretched 4:3 footage, and the end of the footage to be 4:3 footage with black bars surrounding.
I’ll post the video I want to do it with so you can understand better: https://youtube.com/watch?v=TBxwXcHPE5I
From 0:00 until 0:36, I would like to have a 4:3 image stretched into 16:9 video. This is currently how it already is. From 0:36 to 0:40, I would like to have that 16:9 video squished into a 4:3 image, with black bars on each side of the video. -
Upload your original 320x240 video directly here to this thread.
I don't understand your goal; the Youtube image is already stretched to 16x9 -
Yes, I'm aware the video is already stretched to 16:9. That's the problem. I want the ending to be 4:3 with black bars on the side. Read the last sentence of my previous post to understand my goal.
-
You have to encode the first part as 16:9 footage, g.e. 1280x720. The second part will be encoded 960x720, with black bars of 160 pixels left and right, and aspect ratio of 16:9.
-
Yeah, exactly like that. Any way to do that just with VirtualDub, or will I need to use another program? VirtualDub is great for uploading this speedrun footage quickly with high quality (since I can rescale it to get VP9 encoding from YouTube, *and* I can stretch it to better match the widescreen setting I'm using in the game), so if I can avoid needing to use anything else, that's preferable. If I would need to use other software to do it, though, please make a recommendation.
-
Are you able to use the resize or some other filter to manipulate the videos the way you want?
If so, you could always encode two separate videos using the exact same encoder settings and then join them together.
I used an Avisynth script (very simple only 4 or 5 lines) to modify those last few seconds within the script,
then just encode it once in Virtualdub. if you're interested in trying this I'll post the script -
This is the script I used, bear in mind it relates to the Youtube source dimension (640x360) that I downloaded and used.
Code:lwlibavvideosource("I:\bin\Depot Agent 0_25-TBxwXcHPE5I.mp4") # open the source a=trim(0,1110) # game footage up to frame 1110 b=trim(1111,0) # title at frame 1111 to the end b=b.spline36resize(480,360).addborders(80,0,80,0) # resize the titles/add the borders a+b # return both parts
-
When attempting to run the script in VirtualDub, I receive the following error: "Error during script execution at line 1, column 19: Variable 'lwlibavvideosource' not found"
Is there anything in particular I would need to do to set this up? I installed Avisynth with the latest build on the website.Last edited by Ohrami; 17th Feb 2021 at 01:23.
-
Did you download and install the source filter Lsmash/LWLibAV
https://github.com/HolyWu/L-SMASH-Works/releases/
Otherwise post your complete script -
I just downloaded the filter you sent and put it into my plugins folder in AviSynth, but didn't do any further setup. My full script:
Code:lwlibavvideosource("F:\Users\Ohrami\Speedrunning Records\Depot Agent 25.avi") # open the source a=trim(0,2210) # game footage up to frame 1110 b=trim(2210,0) # title at frame 1111 to the end b=b.spline36resize(1920,1440).addborders(320,0,320,0) # resize the titles/add the borders a+b # return both parts
-
Did you create your script in Notepad and ensure it has the .avs extension?
Put the script on the desktop,
open Virtuldub and drag the script icon into the main window -
Yes, I did that. Your suggestion does not work, not even with a script that just says Version(). It just says "AVI Import Filter error: (Unknown) (80040154)" and opens a text file within VirtualDub called "VirtualDub2 Script Editor" which simply lists my already existing script within it.
-
You can do the whole operation with my clever FFmpeg-GUI.
Load your file, main, modify video stream, continue, check Avisynth, create script. A basic Avisynth script is created. Modify them as you like, test it with virtualdub2 , set the encoder you like, set DAR to 16:9 and click convert. Then click on multiplex, the new created videostream is already loaded as video file, click on Audio file, accept the proposed file (your original file), set the container (mkv, mp4) you like, click multiplex, ALL DONE.
[Attachment 57423 - Click to enlarge]Last edited by ProWo; 17th Feb 2021 at 09:14.
-
So, these recordings are part of a much larger and much longer recording that I then must cut down to size. How can I use either your tool or VirtualDub (preferably the latter) to ensure that the audio is cut properly to perfectly sync with my new, cut recording?
-
You can easily do it all in VirtualDub. Encode the first section as 16:9. Encode the second section with the 4:3 video in a 16:9 frame of the same size. Encode the third section as 16:9 like the first. Then open the first section, append the second section, and append the third section. Save the final result with Direct Stream Copy.
-
There's actually another way in Virtualdub, I only just found out about it myself today.
Set up the resize filter, highlight it in the list then select the "Blending" button on the right -
allows you set a frame range it should apply to.
See Antons post on 2020-03-23
https://sourceforge.net/p/vdfiltermod/tickets/314/Last edited by davexnet; 19th Feb 2021 at 14:27.
-
-
Yes, I tried it and go the same thing. The first resize was applied to the whole video. The blending functiont works with other filters though.
Resize to the 4:3 size you want in the top part of the resize dialog. Enable "Letterbox/Crop To SIze" and set the full frame size you want in the Framing Options further down in the dialog.
Similar Threads
-
Incorrect aspect ratio on video?
By hairychickenlegs in forum Software PlayingReplies: 2Last Post: 22nd Jan 2021, 09:57 -
How to apply a filter to only one part of a video.
By Fraugster in forum EditingReplies: 26Last Post: 13th Sep 2019, 13:14 -
Converting 1:85 aspect ratio to 2:39 aspect ratio using Virtual Dub
By maxgremlin in forum EditingReplies: 1Last Post: 8th Jun 2017, 22:06 -
VIrtualDub issue with aspect ratio
By david.dgc in forum EditingReplies: 17Last Post: 8th May 2017, 00:12 -
virtualdub not keeping aspect ratio on render
By steveracer in forum Newbie / General discussionsReplies: 4Last Post: 7th Aug 2016, 22:03