Render with custom frame size

Marty111 wrote on 8/25/2019, 1:44 PM

Good evening everyone !

I am currently cleaning all my old videos because nearly all of them have resampling issues, and I though while I'm at it, why not also get rid of the black bars on the top/bottom or sides of my rendered videos.

Now I don't know if and how custom frame size will be handled by streaming websites like youtube, but I'd like to try, I will see.

I have a problem through : I need to determine the exact value of that weird custom frame size in Vegas pro 13 rendering dialogue box, (something like "1140x720" for the project I was just trying to render). I can get close to the value by trying until I don't see a black bar anywhere, But If I had a way to know the good value each time without trying, it would be a lot easier.

Does anyone know how to do that ?

Also it seems that I can't enter any value I want to, I tried "1150x720" and got the following message : "An error occurred while creating the media file (file name.avi). The selected codec does not support the current settings."


Here is the codec I use to render (I know it's not the best, but I determined it was the best in my case for various reasons, I hope I won't have to switch to another) :
"HD 720-60p, using Sony YUV codec. OpenDML compatible.
Audio: 48 000 Hz; 24 Bit; Stereo; PCM
Video: 29,970 fps; 1280x720 Progressive; Xvid
Pixel Aspect Ratio: 1,000"

Comments

Musicvid wrote on 8/25/2019, 5:26 PM

Also it seems that I can't enter any value I want to, I tried "1150x720" and got the following message : "An error occurred while creating the media file (file name.avi). The selected codec does not support the current settings."

Legacy AVI codecs require that both dimensions be exact multiples of four. So 1152 should work, all else being format-compliant.

Nonstandard resolutions may appear in YouTube players with black bars, not a ptoblem for most.

For additional peer support, start here:

https://www.vegascreativesoftware.info/us/forum/faq-how-to-post-mediainfo-and-vegas-pro-file-properties--104561/

 

 

john_dennis wrote on 8/25/2019, 6:35 PM

You're pissing into the wind. Render your videos to 1280x720, leaving the black bars and move on to solving the next most important of the world's problems.

Musicvid wrote on 8/25/2019, 7:32 PM

It's good to review simple arithmetic ratios and factors. like 1280x720 = 16:9 = 1.7777_ DAR

So, if your video is 1152 wide at 1.0 PAR, 1152/16*9 = 648, so 1152x648 to fill a 16:9 player screen.

https://en.wikipedia.org/wiki/Display_aspect_ratio

Most people promptly forget this their last day of fifth grade, but it is critically essential arithmetic for video editors.

More video math questions here:

https://www.vegascreativesoftware.info/us/forum/math-review-for-editors-10-questions--111980/

 

Marty111 wrote on 8/25/2019, 10:14 PM

Thanks a lot Music vid for the "multiple of four" rule. You sir are an Encyclopædia.

I know I shouldn't care about black bars. I just want it to be clean if it's not too demanding. The point is many of my videos have weird size when I remove the black bars. It is because I had to crop a lot of source footage that had logos from tv channels, subtitles, title bars etc... These wouldn't look good on my works. I could of course zoom more, or stretch, in order to have either 4:3 and 16:9 "barless" videos, but both methods stretching and zooming have their drawbacks, it either crop some more picture, or distort the picture.

Marty111 wrote on 8/25/2019, 10:34 PM

Sorry to ask again, but apart from that, are there no solution for the main issue? :

"I have a problem through : I need to determine the exact value of that weird custom frame size in Vegas pro 13 rendering dialogue box, (something like "1140x720" for the project I was just trying to render). I can get close to the value by trying until I don't see a black bar anywhere, But If I had a way to know the good value each time without trying, it would be a lot easier."

It wouldn't be such a big problem of course, if I didn't have to remove black bars on about 30 videos...

Musicvid wrote on 8/25/2019, 10:54 PM

I told you how:

Divide 1140 by 16 and multiply the answer by 9 to get the height; or,

Divide 720 by 9 and multiply the answer by 16 to get the DAR width.

1280:720 = 1280/720 = 16/9 = 1.777_

Beginning to remember now?

Best get to studying, there will be a quiz! In fact, its linked above.

Marty111 wrote on 8/26/2019, 12:00 PM

well I'm not looking for the ratio, all videos will have different size and ratio once the bars are removed. 1140 was good for only one of them after trying different sizes.

Musicvid wrote on 8/26/2019, 12:28 PM

all videos will have different size and ratio once the bars are removed.

No, they will have the same Display Aspect Ratio, in this case 16x9.

well I'm not looking for the ratio,

well in twenty-three years of teaching, that's the only way I know to do it.

To make a video fill a screen without black bars, you use the ratio to adjust the dimensions,

Best of luck, try it.

Musicvid wrote on 8/26/2019, 12:43 PM

Online display aspect calculator

https://andrew.hedges.name/experiments/aspect_ratio/

Marty111 wrote on 8/26/2019, 2:22 PM

Thanks for the calculator Musicvid, but I don't know the ratio and the size...
Sorry I'm very bad at describing something technical in English

Here is what I have typically on all my projects : An original footage (usually old) that I cropped to get rid of the tv channel logo and the dirty discolored borders (it's just an example, I'm not into Japanese cartoons :)
https://nsa40.casimages.com/img/2019/08/26/190826085452468068.png

Logos are always different have different size are located in different places on the screen depending on the source footage. So basically I will end up with a different non standard frame size on each video, none will have the same size except that they will share either the width (1280p) or the height (720p), So fo instance one video will have a 720*1140 size, the second one a 720*1090, the third 690*1280, the fourth 670*1280, the fifth 720*1160 and so on...

With this Japanese cartoon if I render with my usual template, Vegas will create two black bars : One on the left, and one on the right. I want to avoid the two black bars, so in the here after dialog box I'll keep the 720 value for the height. What I need is to find for each video the exact value for the width :

https://nsa40.casimages.com/img/2019/08/26/190826085451429841.png

Otherwise I have to enter a width value, then start rendering, check the rendered video, then try another value until there are no black bars at all...

Musicvid wrote on 8/26/2019, 2:27 PM

You seem to want a custom frame size that will play without bars in a standard 16x9 player. You can't have it both ways.

john_dennis wrote on 8/25/2019, 5:35 PM

You're pissing into the wind. Render your videos to 1280x720, leaving the black bars and move on to solving the next most important of the world's problems

 

Marty111 wrote on 8/26/2019, 3:22 PM

I've done it, it plays without bars (or nearly) in mpchc :
Video: Xvid 1140x720 25fps 5660kbps [V: mpeg4 advanced simple profile, yuv420p, 1140x720, 5660 kb/s]
Audio: PCM 48000Hz stereo 2304kbps [A: pcm_s24le, 48000 Hz, 2 channels, s24, 2304 kb/s]

I just wish I knew how to make it quicker.

Marty111 wrote on 9/22/2019, 1:13 PM

"well in twenty-three years of teaching, that's the only way I know to do it. To make a video fill a screen without black bars, you use the ratio to adjust the dimensions. Best of luck, try it."


I think there was a misunderstanding. I don't want the video to fill a screen without black bars. Only a video that wouldn't have black bars in MPCHC's "restored" window. (here's what I mean by restored window : https://i.stack.imgur.com/bcKkM.gif )

Musicvid wrote on 9/22/2019, 1:51 PM

Handbrake does this for you as it's default behavior. It also saves a little space.

fr0sty wrote on 9/22/2019, 1:58 PM

"I just wish I knew how to make it quicker."

If you have an Nvidia or AMD graphics card released within the past 4-5 years, you can utilize Nvidia's NVENC or AMD's VCE to speed up Magix AVC encodes. If you have one installed in your system, and the drivers are correctly installed for it, you'll see NVENC or VCE appear next to some of the Magix AVC render templates. Choose those for faster renders.

Systems:

Desktop

AMD Ryzen 7 1800x 8 core 16 thread at stock speed

64GB 3000mhz DDR4

Geforce RTX 3090

Windows 10

Laptop:

ASUS Zenbook Pro Duo 32GB (9980HK CPU, RTX 2060 GPU, dual 4K touch screens, main one OLED HDR)

Marty111 wrote on 9/22/2019, 2:33 PM

No no, encoding is fast I have small videos and a monster computer. I was talking about workflow : Find a better approach than the empirical one, you now try a value than another one, until It's good.

So Musicvid, you're suggesting I would be better off rendering with Vegas with bars, then using handbreak to remove the bars. I was hopping to do it with Vegas.

Marty111 wrote on 9/22/2019, 11:02 PM

I don't understand why I'm stuck, there must be a way.

Using handbrake would complicate things a lot. For instance if in a few months I discover a misspell in my subtitles then I would have to apply the correction in Vegas then re-render it with handbrake remembering handbrake 's settings for each video etc.. That's even if I can learn to use handbrake properly.


You guys just don't understand the work involved, I have 80 songs, am doing new ones all the time. I'm not a shopkeeper selling my hours to a client and call it a day. I'm singing, remixing my old songs all the time, changing words in the text, changing the way I sing, and now that I know more or less how to make a clean video, cleaning the video part so that it looks perfectly clean and not amateur anymore. It's a an endless work. There are actually very few songs I'm sure I won't touch again.

Sylk wrote on 9/23/2019, 1:39 AM
I don't want the video to fill a screen without black bars. Only a video that wouldn't have black bars in MPCHC's "restored" window.
 

Right click > Zoom > AutoFit

Software:
[OS]  : Windows 10 Ent. x64 v1903 (18362.535)
[NLE] : Vegas Pro 17.0 (Build 321) // (Build 284 if posted before 9/24/19)
[DRV] : Studio 536.23 (Display, PhysX, HD Audio) // (Game Ready 436.15 if posted before 9/24/19)
Hardware:
[GPU] : Gainward RTX 4090 Phantom / GTX 1080 Phoenix GLH
[CPU] : Intel Core i7-2600K @3.4GHz OC@4.5GHz (HyperThreaded) | AirCooling: Noctua NH-D14
[RAM] : 16GB (4x 4GB GSkill Ripjaws X DDR3 1600MHz 9-9-9-24) @1333MHz
[SSD] : Samsung 860 Pro 1TB
[MOB] : Asus P8P67 Deluxe (Rev.1), No iGPU support
[SND] : Asus Xonar Essence STX
[PSU] : Corsair HX750
Devices:
[DSP1]: 30" DELL UltraSharp U3011 @2560x1600
[DSP2]: 28" Samsung U28D590 @3840x2160

[UPS] : Eaton 5PX 2200i RT

[CAM] : GoPro Hero8/4/3 Black. Apple iPhone 11Pro/6S.
[REC] : Zoom Handy Recorder H4.
Marty111 wrote on 9/23/2019, 7:39 AM

Thanks, but I tried to right click on several places, I can't find zoom or "autofit". (Using vegas pro 15 )

Marty111 wrote on 9/23/2019, 7:58 AM

There must be a way to render with a custom ratio and get rid of the logos and black bars :
https://nsa40.casimages.com/img/2019/08/26/190826085452468068.png

I still get a tiny black bar of one or two pixels whatever I do.

Dexcon wrote on 9/23/2019, 8:21 AM

@Marty111 … I might have missed it in this now getting rather lengthy thread, but have you tried going to pan/crop on the video event/s and selecting "16:9 Widescreen TV aspect ratio" and then adjusting the pan/crop framing to fill the screen horizontally/horizonatlly? Obviously, if your original footage is other then 16:9, you are going to lose some of the image either vertically or horizontally to avoid black bars unless you opt for a squeeze solution.

Cameras: Sony FDR-AX100E; GoPro Hero 11 Black Creator Edition

Installed: Vegas Pro 16, 17, 18, 19, 20 & 21, HitFilm Pro 2021.3, DaVinci Resolve Studio 18.5, BCC 2023.5, Mocha Pro 2023, Ignite Pro, NBFX TotalFX 7, Neat NR, DVD Architect 6.0, MAGIX Travel Maps, Sound Forge Pro 16, SpectraLayers Pro 11, iZotope RX10 Advanced and many other iZ plugins, Vegasaur 4.0

Windows 11

Dell Alienware Aurora 11

10th Gen Intel i9 10900KF - 10 cores (20 threads) - 3.7 to 5.3 GHz

NVIDIA GeForce RTX 2080 SUPER 8GB GDDR6 - liquid cooled

64GB RAM - Dual Channel HyperX FURY DDR4 XMP at 3200MHz

C drive: 2TB Samsung 990 PCIe 4.0 NVMe M.2 PCIe SSD

D: drive: 4TB Samsung 870 SATA SSD (used for media for editing current projects)

E: drive: 2TB Samsung 870 SATA SSD

F: drive: 6TB WD 7200 rpm Black HDD 3.5"

Dell Ultrasharp 32" 4K Color Calibrated Monitor

Marty111 wrote on 9/23/2019, 9:14 AM

It's already pan/cropped as it should. If I choose a preset like "16:9 Widescreen TV aspect ratio", then it changes the crop. As you just said, it's either squeezing or loosing, I want neither of these. I can't afford loosing because it would cut even more of the original video, and squeezing doesn't look good, it doesn't respect the original. I don't get it, it's so easy in paint shop pro to crop a jpeg to whatever picture format (even maybe 1pixel large by a thousand long). Why is it so hard with a video in Vegas ?

Dexcon wrote on 9/23/2019, 9:31 AM

Why is it so hard with a video in Vegas ?

I doubt it would be any different in any other NLE. If you want to fill the 16:9 frame in television, then you have to compromise width or height if the original image is not 16:9 - so yes, you have to change the crop. If you are not willing to lose (not loose) any of the original non-16:9 image, then you have to accept black bars either horizontally or vertically within the 16:9 frame.

In PaintShop, if you want to fit an image to create a 16:9 aspect ratio, you also have to crop to achieve that 16:9 ratio in a similar fashion as in an NLE ( I do it regularly in PaintShop). As a previous comment pointed out, you can't have it both ways.

Cameras: Sony FDR-AX100E; GoPro Hero 11 Black Creator Edition

Installed: Vegas Pro 16, 17, 18, 19, 20 & 21, HitFilm Pro 2021.3, DaVinci Resolve Studio 18.5, BCC 2023.5, Mocha Pro 2023, Ignite Pro, NBFX TotalFX 7, Neat NR, DVD Architect 6.0, MAGIX Travel Maps, Sound Forge Pro 16, SpectraLayers Pro 11, iZotope RX10 Advanced and many other iZ plugins, Vegasaur 4.0

Windows 11

Dell Alienware Aurora 11

10th Gen Intel i9 10900KF - 10 cores (20 threads) - 3.7 to 5.3 GHz

NVIDIA GeForce RTX 2080 SUPER 8GB GDDR6 - liquid cooled

64GB RAM - Dual Channel HyperX FURY DDR4 XMP at 3200MHz

C drive: 2TB Samsung 990 PCIe 4.0 NVMe M.2 PCIe SSD

D: drive: 4TB Samsung 870 SATA SSD (used for media for editing current projects)

E: drive: 2TB Samsung 870 SATA SSD

F: drive: 6TB WD 7200 rpm Black HDD 3.5"

Dell Ultrasharp 32" 4K Color Calibrated Monitor

Marty111 wrote on 9/23/2019, 1:17 PM

Sorry it must be because I'm french, and English isn't my native language, but I don't want to fill any monitor. On the contrary I want a non-standard aspect ratio, I couldn't care less about 16:9 or 4:3. I want a way to determine in each of my Vegas project the resolution (ratio, tool, or whatever) that will give a bar-free file without modifying the cropping I did.
So I know I will end up will weird resolutions for instance 658 by 1280 or 720 by 1198 (it's just an example) I know it will give me black bars if watching the video in full screen with a monitor, and that's perfectly fine by me. What I want is no bars when watching it "non full screen" with players like mpchc videolan, or embedded in a webpage.

I just want to get rid of all "hard-coded" black bars on my rendered videos.