Video Corruption when combining videos with Different Resolution

hitman47 wrote on 4/15/2024, 9:13 AM

Hallo, i just have upgraded to Vegas Pro 21 Bundle 300.

However i have a huge problem. When i insert videos with different reolution and aspect ratio, the videos with the lower resolution are getting corrupted.

I am inserting low resolution vidoes from my old camera, 720x576 and HD videos 1920x1080. I have tried everything. FPs->film=24000, SD projects, project adjustments to my footage etc...

Whatever i try, it fails. If i insert only Sd videos, the just work fine. When i mix them with HD, the are getting corrupter. From blurres, noise distortion to very shaky instant image. I understand that vegas tries to stretch the video to fit the screen and the template that is made fro HD videos and this damages th videos.

I have even tried lower versions, Vegas PRO 19 and 21. Only in my oldest version works fine, but there the videos are not streched to to fit the whole screen, so a black gap exists on the gaps, which is annoying.

Please help. I am very disappointed with the product. I was using it for years and i not i feel very sad that i may have to abandon it.

Thanks.

Comments

RogerS wrote on 4/15/2024, 9:21 AM

What do you mean by corrupted exactly? Can you share screenshots please? Prtscn or windows + shift + s.

VEGAS can work at whatever aspect ratio you like- it does not have to stretch or otherwise damage old videos. The resolutions you listed above have different ratios- divide height by width and you'll get different numbers. If you put a video on a timeline with a different aspect ratio it has to be stretched or you need black bars (or you can attempt "pan and scan" like VHS tapes from the '80s but I wouldn't).

Under pan/crop you'll find settings like "match source aspect" and "match output aspect". I think you will quickly figure out which one works with which combination of project and media resolution.

For blurs and distortion is that an issue with decoding? If it's AVC/ h264 media you could try clicking "enable legacy AVC decoding" in options/preferences/ file io which returns it to what it was like in 19.

hitman47 wrote on 4/15/2024, 10:09 AM

It's instant i can't catch it with printscreen. I will post a link from my youtube channel where i will upload temporarelly the test project.

Also i already have tried avc decoder. Furthermore, i have mentioned that i EVEN tried VEGAS PRO 19 and the problem still existed.

So at the link bellow, check from 1:55 until the end. Its just one minute till the end( 3 minutes the the whole project). Watch how the screen tickles and flicks and also the color distortion. Its so annoynig

RogerS wrote on 4/15/2024, 10:16 AM

Thanks for sharing that. I assume you have the cropping/stretching issue worked out.

I understand about this not being a new issue to 21.

For the flicker my guess is that there is an issue with the source media in VEGAS. It looks normal in a media player? If so, would go into ShutterEncoder and convert it to output codec h264 and in advanced options set GOP to the framerate (50, 25, etc.) Then replace the media in VEGAS (find it in project media and right-click to replace it). Try it for one piece of media and if it helps you can convert any other ones that are problematic in the same way. If you don't mind larger file sizes ShutterEncoder can also do ProRes which is very lightly compressed and easy to edit.

hitman47 wrote on 4/15/2024, 10:23 AM

yes in all my media players it looks ok. It also looks ok in VEGAS 16, but there as i mentioned, it is not stretched and i am getting black bars.

I will try what you suggested. Large files are a huge issue. Thats why i used my old camera and didnt buy a new one. New cameras->better technology->High resolutions->Large Files->High Volume Pcs and mine is not so high end devise. It needs upgrade. Thats also the reason i hate 4k. Its a nightmare. 4k = 5x HD

RogerS wrote on 4/15/2024, 10:54 AM

Great, do give it a try. If there is a piece of footage (short is good) you'd like us to test, it could help get the problem resolved. Just upload a sample via Dropbox, box, Google Drive, etc. (uploading to the forum here is just for viewing)

Conversions are just workarounds and the good news is that there's a lot of development happening around VEGAS's media decoder now so a decent chance of getting it fixed.

mark-y wrote on 4/15/2024, 11:06 AM

Probably not related to your flickers at 2:00, but set your project resampling to optical flow. This will smooth out the frame rate cadence at the 20 second intro.

hitman47 wrote on 4/15/2024, 11:55 AM

No the problem is that after the conversion the sourse videos dont seem so natural any more. When there is a movement of the camera, there a small stop, a very small instant freeze which bothers me. Th problem is my original files are in a simple mpg format. Not mp4. Is there any other solution?

RogerS wrote on 4/15/2024, 11:57 AM

Please upload a sample file.

john_dennis wrote on 4/15/2024, 12:11 PM

@hitman47

I downloaded your youtube video. I see what appears to be misplaced frames which I suspect is the root of your complaint. You'll have to share much more information about your hardware for us to help.

Work this: ❗ **IMPORTANT!** - INFORMATION REQUIRED TO HELP YOU

If that is just camera movement, you're really going to have to buy a tripod.

hitman47 wrote on 4/15/2024, 12:12 PM

I send a link with 3 files. The original which is mpeg format, 720x576, 25fps and two convertions. mp4, HS64 Decoder, 1920X1080, 25FPS and 30fps. The one with 25fps is not so natural. I think the one with 30 fps is the most natural.

So i have concluded that the only solution is to convert the source files, because Vegas has problems processing them. Also this the last time i am using this camera. But for now i must find a solution. Every help is welcomed.

Wetransfer link: https://we.tl/t-Go3CGl4Ck7

RogerS wrote on 4/15/2024, 9:25 PM

Thanks very much for the file.

So the original is interlaced 25fps footage based on the MediaInfo I found below.
So we want to keep the 25fps but also make it progressive.

Here's my attempt to do this in ShutterEncoder. link
I don't see it as any less smooth than the original footage and is much clearer by being progressive.

You could try different deinterlace modes in ShutterEncoder. Instructions.

In VEGAS 21.300 I tried with these settings:

and also "blend" but I also see stutter and out of order frames. MPEG opens with the new MXCompound decoder. I don't see a way to avoid this ("legacy AVC" decoding doesn't apply to mpeg) so I also don't think you can edit this media in VP 21.300.

General
Complete name                  : M2U01167_old.MPG
Format                         : MPEG-PS
File size                      : 18.3 MiB
Duration                       : 23 s 40 ms
Overall bit rate mode          : Variable
Overall bit rate               : 6 667 kb/s
Frame rate                     : 25.000 FPS

Video
ID                             : 224 (0xE0)
Format                         : MPEG Video
Format version                 : Version 2
Format profile                 : Main@Main
Format settings                : CustomMatrix / BVOP
Format settings, BVOP          : Yes
Format settings, Matrix        : Custom
Format settings, GOP           : M=3, N=12
Format settings, picture struc : Frame
Duration                       : 23 s 40 ms
Bit rate mode                  : Variable
Bit rate                       : 6 279 kb/s
Maximum bit rate               : 9 100 kb/s
Width                          : 720 pixels
Height                         : 576 pixels
Display aspect ratio           : 16:9
Frame rate                     : 25.000 FPS
Standard                       : PAL
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Interlaced
Scan order                     : Top Field First
Compression mode               : Lossy
Bits/(Pixel*Frame)             : 0.606
Time code of first frame       : 00:00:00:00
Time code source               : Group of pictures header
GOP, Open/Closed               : Closed
Stream size                    : 17.2 MiB (94%)

Audio
ID                             : 189 (0xBD)-128 (0x80)
Format                         : AC-3
Format/Info                    : Audio Coding 3
Commercial name                : Dolby Digital
Muxing mode                    : DVD-Video
Duration                       : 23 s 40 ms
Bit rate mode                  : Constant
Bit rate                       : 256 kb/s
Channel(s)                     : 2 channels
Channel layout                 : L R
Sampling rate                  : 48.0 kHz
Frame rate                     : 31.250 FPS (1536 SPF)
Compression mode               : Lossy
Stream size                    : 720 KiB (4%)
Service kind                   : Complete Main

 

hitman47 wrote on 4/16/2024, 2:43 AM

yes its smooth i agree. Could you give me detailed instructions on what did you do? You Converted it in ShutterEncoder with what setings? And after that did you try it with other media of different resolutions?

the problem occurs when i insert in the timeline videos of different resolutions, ex 1920x1080. If its only mpeg resolutions its ok.

hitman47 wrote on 4/16/2024, 3:06 AM

Update. When i insert the vdeio you uploaded in VP 21 timeline, its a disaster. Both alone and with other video resolutions. Tottaly corrupted.

So is there any other solution or i should try other software?

RogerS wrote on 4/16/2024, 3:35 AM

Hi @hitman47 do you have any other versions of VEGAS available? I would not use 21.300 for this media; there are too many problems.

In VP 19, it works fine; however for your original interlaced video VEGAS seems to have the wrong pixel aspect selected. To me it looks most natural at 1.4222. You can set this in the media properties (right click on media).

It also seems to be color range full, so set that too and the highlights will have more detail.

I just opened your original file and ShutterEncoder conversion and they look fine in VP 19.

If you want to work in 21.300 you can't use mpeg media and have to make this setting change for the ShutterEncoder mp4s.

"enable legacy AVC"

If you do decide to convert the media, please click on the screenshot above that I posted of ShutterEncoder which has all the settings you need. Convert to output format h264 and see the interlacing settings on the bottom right side of the image.

For the aspect ratio issue, what resolution project do you want? 1920x1080? Start with that first and then just add your mpeg media. It seems fine here.
 

 

hitman47 wrote on 4/16/2024, 3:42 AM

I am bit confused. As i said mpeg with other resolutions together didnt work in VP 19 either. Only in VP 16 but with gaps and black bars in the sides, which i dont want.

So which are my options?

If i have understand correctly, there is nothing i cant do with my mpeg files in VP 21, even if i encode them with ShutterEncoder, is this OK?

Maby i have a chanse in VP 19, only after encoding with ShutterEncoder, because, as i said without encoding it didnt work either.

Please correct me where i am wrong.

 

 

RogerS wrote on 4/16/2024, 3:52 AM

@hitman47 I just tested your video with VP 19 and it works fine. Just fix the pixel aspect ratio which I showed you how to do. That gets rid of the squished image and black bars. The only thing that 21 can do right is read the pixel ratio so I copied that setting to 19.

For 21 enable legacy AVC and you can use the converted (ShutterEncoder) media and it seems fine.

hitman47 wrote on 4/16/2024, 4:56 AM

I confirm that the converted file you converted (with ShutterEncoder) runs good in VP 21, ONLY after enabling AVC decoder. However by enabling this decoder, my other mp4 files with 1920x1080 resolution, lose some of their quality. I upload a link with the toyr file and an original mp4 file of mine.

Can you test them both in VP 21 and 19 to tell me if there is any way, any settings that both could worl smoothly without loosing any quality? Untll now i havent found a way. As i have mentioned in the title, the main problem occurs after combining files with different resolutions.

hitman47 wrote on 4/16/2024, 4:57 AM

And the link https://we.tl/t-U17WpEB0iP

Wolfgang S. wrote on 4/16/2024, 5:11 AM

Maybe it is enough, to convert the footage with the interlaced structure. This footage seems to generate problems at the moment.

Desktop: PC AMD 3960X, 24x3,8 Mhz * RTX 3080 Ti (12 GB)* Blackmagic Extreme 4K 12G * QNAP Max8 10 Gb Lan * Resolve Studio 18 * Edius X* Blackmagic Pocket 6K/6K Pro, EVA1, FS7

Laptop: ProArt Studiobook 16 OLED * internal HDR preview * i9 12900H with i-GPU Iris XE * 32 GB Ram) * Geforce RTX 3070 TI 8GB * internal HDR preview on the laptop monitor * Blackmagic Ultrastudio 4K mini

HDR monitor: ProArt Monitor PA32 UCG-K 1600 nits, Atomos Sumo

Others: Edius NX (Canopus NX)-card in an old XP-System. Edius 4.6 and other systems

hitman47 wrote on 4/16/2024, 5:15 AM

All? I have about 300 small mpeg videos and other 200 mp4. I ama going crazy. i cant find a solution in order to use all of my files without loosing quality.

I dont care at this point if the solution exist in VP 19 or 21 o another software. My first choise is of Course VP, but i am loosing hope.

 

Wolfgang S. wrote on 4/16/2024, 5:43 AM

Maybe you can use batch-converter.

Desktop: PC AMD 3960X, 24x3,8 Mhz * RTX 3080 Ti (12 GB)* Blackmagic Extreme 4K 12G * QNAP Max8 10 Gb Lan * Resolve Studio 18 * Edius X* Blackmagic Pocket 6K/6K Pro, EVA1, FS7

Laptop: ProArt Studiobook 16 OLED * internal HDR preview * i9 12900H with i-GPU Iris XE * 32 GB Ram) * Geforce RTX 3070 TI 8GB * internal HDR preview on the laptop monitor * Blackmagic Ultrastudio 4K mini

HDR monitor: ProArt Monitor PA32 UCG-K 1600 nits, Atomos Sumo

Others: Edius NX (Canopus NX)-card in an old XP-System. Edius 4.6 and other systems

hitman47 wrote on 4/16/2024, 5:50 AM

To convert all my files?

Ok i can convert my 300 mpeg files. But as i said with AVC decoder, the quality of mp4 files is downgraded. I havent found a pattern in order all to work.

I want someone to tell me fo example In VP 21 you will decode mpeg files in X format, mp4 files to Y format and you will use template with Z settings like 1920x1080 30 fps.

there is no combination untill now in order all to work naturally.

I am a bit desperate and i will be very gratefull for any solution

 

RogerS wrote on 4/16/2024, 5:59 AM

And the link https://we.tl/t-U17WpEB0iP

Here I see one new video which is a mp4. It just looks like regular AVC in a MP4 container however it's variable framerate which can also cause problems in VEGAS (not just 21, all versions). Let me experiment with it in 19 and get back to you shortly.

General
Complete name                  : D:\My Documents\Dropbox\transfer settings\hitman47\1-PanamaCity09.mp4
Format                         : MPEG-4
Format profile                 : Base Media / Version 2
Codec ID                       : mp42 (isom/mp42)
File size                      : 29.7 MiB
Duration                       : 17 s 408 ms
Overall bit rate               : 14.3 Mb/s
Frame rate                     : 29.012 FPS
Encoded date                   : 2024-03-16 12:37:34 UTC
Tagged date                    : 2024-03-16 12:37:34 UTC
xyz                            : +08.9658-079.5375/
com.android.version            : 10

Video
ID                             : 1
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High@L4
Format settings                : CABAC / 1 Ref Frames
Format settings, CABAC         : Yes
Format settings, Reference fra : 1 frame
Format settings, GOP           : M=1, N=30
Codec ID                       : avc1
Codec ID/Info                  : Advanced Video Coding
Duration                       : 17 s 373 ms
Bit rate                       : 13.8 Mb/s
Width                          : 1 920 pixels
Height                         : 1 080 pixels
Display aspect ratio           : 16:9
Frame rate mode                : Variable
Frame rate                     : 29.012 FPS
Minimum frame rate             : 2.750 FPS
Maximum frame rate             : 29.821 FPS

Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Progressive
Bits/(Pixel*Frame)             : 0.229
Stream size                    : 28.6 MiB (96%)
Title                          : VideoHandle
Language                       : English
Encoded date                   : 2024-03-16 12:37:34 UTC
Tagged date                    : 2024-03-16 12:37:34 UTC
Color range                    : Limited
Color primaries                : BT.709
Transfer characteristics       : BT.709
Matrix coefficients            : BT.709
mdhd_Duration                  : 17373
Codec configuration box        : avcC

Audio
ID                             : 2
Format                         : AAC LC
Format/Info                    : Advanced Audio Codec Low Complexity
Codec ID                       : mp4a-40-2
Duration                       : 17 s 408 ms
Bit rate mode                  : Constant
Bit rate                       : 192 kb/s
Channel(s)                     : 2 channels
Channel layout                 : L R
Sampling rate                  : 48.0 kHz
Frame rate                     : 46.875 FPS (1024 SPF)
Compression mode               : Lossy
Stream size                    : 409 KiB (1%)
Title                          : SoundHandle
Language                       : English
Encoded date                   : 2024-03-16 12:37:34 UTC
Tagged date                    : 2024-03-16 12:37:34 UTC

 

RogerS wrote on 4/16/2024, 6:30 AM

After some testing I still see problems with the mpg files in VP 19. Because of that, my recommendation is to convert all of them. So far I'm not having issues with the phone files so you can skip converting them unless you have problems.

ShutterEncoder lets you do many files with the same settings at one time!

Under "drop files here", drop all the mpg files that are the same type. This can be 1, 2, or even 100 files.

Then I would recommend checking "add a suffix" and type some text to show that it's not the original (but up to you, this is optional).

  • Choose function - output codec h264.
  • Bitrates adjustment click on VBR until it becomes CQ. Try a value of 20 for pretty good quality.
  • Under advanced features check force deinterlacing and try TFF yadif
  • Set GOP to 30

In VEGAS right click on the media and set the color range to full so you have the highlights. That will make the blacks too light (I think, it looks like 16-255 footage) so I would recommend adding this levels Fx. Input start to 0.063

In VEGAS set the project to 1920x1080p. Is most of your footage the 25p camera or the 29.97p phone? I'd set the project for the one you have more of. In project properties you can try to make this look less bad by changing resample mode to optical flow. Don't let it change project settings based on the mpeg media.

I did a little editing and I think it is working okay with 19 and these settings. (21.300 with enable legacy AVC enabled should also work but there might be other problems I'm not aware of. I have a lot of experience with 19.

 

 

Last changed by RogerS on 4/16/2024, 6:31 AM, changed a total of 1 times.

Custom PC (2022) Intel i5-13600K with UHD 770 iGPU with latest driver, MSI z690 Tomahawk motherboard, 64GB Corsair DDR5 5200 ram, NVIDIA 2080 Super (8GB) with latest studio driver, 2TB Hynix P41 SSD and 2TB Samsung 980 Pro cache drive, Windows 11 Pro 64 bit https://pcpartpicker.com/b/rZ9NnQ

ASUS Zenbook Pro 14 Intel i9-13900H with Intel graphics iGPU with latest ASUS driver, NVIDIA 4060 (8GB) with latest studio driver, 48GB system ram, Windows 11 Home, 1TB Samsung SSD.

VEGAS Pro 21.208
VEGAS Pro 22.239

Try the
VEGAS 4K "sample project" benchmark (works with VP 16+): https://forms.gle/ypyrrbUghEiaf2aC7
VEGAS Pro 20 "Ad" benchmark (works with VP 20+): https://forms.gle/eErJTR87K2bbJc4Q7