Vegas Pro 22 encodes black frames - BIG ISSUE

_litz wrote on 8/18/2024, 4:16 PM

Running into a serious problem:

Have many files stored as intermediates in AVI format (mostly MagicYUV but others as well).

Encoding to MP4, Vegas is randomly encoding black frames for video. There is no rhyme or reason WHEN it does this, and it can do it on different source files on multiple render attempts. There is no connection to a specific file, or codec, other than "AVI" as the source.

This is a HUGE problem, as it means I can no longer trust output, and have to visually inspect EVERY element, EVERY frame to make sure it didn't drop video anywhere.

Vegas Pro 21 and older did not have this problem.

Anyone got any ideas?

Comments

johnny-s wrote on 8/18/2024, 7:35 PM

Try rendering using Mainconcept, Cpu, not Using Gpu.

Red or black frames usually indicate a gpu render issue.

Maybe supply a sample clip for others to test render.

Also add your PC/laptop specs that you are using, Cpu/Gpu etc to your signature.

Last changed by johnny-s on 8/18/2024, 7:38 PM, changed a total of 3 times.

PC 1:

Intel i9-9900K

32 GB Ram

AMD Radeon XFX RX 7900 XT

Intel UHD 630

Win 10

PC 2:

AMD Ryzen 9 7950X3D 16 core CPU

64 GB Ram

Nvidia 4090 GPU

Intel A770 GPU

Win 11

 

Laptop:

Intel 11th. Gen 8 core CPU. i9-11900K

64 GB Ram

Nvidia RTX 3080 GPU

Win 10

_litz wrote on 8/18/2024, 7:41 PM

Ahh, so you're thinking this is a GPU issue? I *am* using NVENC. Will try w/out.

This is an older I7 PC, with a 4070 GPU

johnny-s wrote on 8/18/2024, 7:53 PM

You can add items in your profile, they are then available for all to see as signature, saves repeating it every time, see my 2 posts here.

Voukoder will probably give better quality CPU only renders than MC, well worth installing if u find that you cannot use nvenc for these source files. Bedtime, best of luck.

PC 1:

Intel i9-9900K

32 GB Ram

AMD Radeon XFX RX 7900 XT

Intel UHD 630

Win 10

PC 2:

AMD Ryzen 9 7950X3D 16 core CPU

64 GB Ram

Nvidia 4090 GPU

Intel A770 GPU

Win 11

 

Laptop:

Intel 11th. Gen 8 core CPU. i9-11900K

64 GB Ram

Nvidia RTX 3080 GPU

Win 10

RogerS wrote on 8/18/2024, 9:52 PM

Is this only an issue with AVI sources? Haven't used any in a while but could check for black frames if that's the cause.

If not using NVENC doesn't help you could try turning off the GPU in preferences/video.

Hopefully we can figure out the cause and get this fixed.

_litz wrote on 8/18/2024, 10:39 PM

Yeah it's only with AVI video. I have, really, two problems with AVI ...

One is Smart Render; it doesn't recognize differences in format (frame size I suspect) and copies with the No Recompression message. Then it plays back black because the copied frames aren't legal

The option to disable smart render in the File IO tab also doesn't work (it's ignored so you can't turn it off).

 

Then there's the black frames in renders, in this use case going from AVI source (multiple codecs) rendering to MP4.

I'd thought it was just random files, but tonight I actually caught it rendering black on one clip, then in the middle of the clip, it started working. Very very weird.

 

Voukoder is definitely worth checking out, will do so.

Gid wrote on 8/19/2024, 2:54 AM

@_litz Hi, I created a MagicYUV MagicYUV 8-bit RGBA AVI in VP21, a video clip + a moving png that has transparency, I don't know if yours has transparency & if that's why you initially used AVI?

I imported it into VP22, changed the Alpha to Straight so the transparency showed & rendered as Magix AVC (NVENC), the render was fine.

Before render just to give an idea of what I created

So I guess more info about your AVI is needed or a sample shared on Google Drive.. + what render options you used in VP22, 'Encoding to MP4' is a bit vague?

 

Last changed by Gid on 8/19/2024, 2:55 AM, changed a total of 1 times.

Vegas Pro 18 - 22
Vegas Pro/Post 19
Boris Continuum & Sapphire, 
Silhouette Standalone + Plugin, 
Mocha Pro Standalone + Plugin, 
Boris Optics,
NewBlue TotalFX
Desktop PC Microsoft Windows 10 Pro - 64-Bit
ASUS PRO WS WRX80E-SAGE SE WIFI AMD Motherboard
AMD Ryzen Threadripper PRO 3975WX 3.5GHz 32 Core
Corsair iCUE H150i RGB PRO XT 360mm All-in-One Liquid CPU Cooler
RAM 256GB ( 8x Micron 32GB (1x 32GB) 2666MHz DDR4 RAM )
2x Western Digital Black SN850 2TB M.2-2280 SSD, 7000MB/s Read, 5100MB/s Write
(programs on one, project files on the other)
Graphics MSI GeForce RTX 3090 SUPRIM X 24GB OC GPU
ASUS ROG Thor 1200W Semi-Modular 80+ Platinum PSU 
Fractal Design Define 7 XL Dark TG Case with 3 Fans
Dell SE3223Q 31.5 Inch 4K UHD (3840x2160) Monitor, 60Hz, & an Acer 24" monitor.

At the moment my filming is done with a Samsung Galaxy S23 Ultra 5G & a GoPro Hero11 Black

I've been a Joiner/Carpenter for 40yrs, apprentice trained time served, I don't have an apprentice of my own so to share my knowledge I put videos on YouTube.

YouTube videos - https://www.youtube.com/c/Gidjoiner

 

_litz wrote on 8/19/2024, 9:19 AM

So, I'm getting the same issue with Voukoder when it uses NVENC. So either Vegas isn't parsing AVI correctly, or NVENC is broke.

I also saw the same issue rendering non-NVENC in Vegas.

I've tried using Voukoder in non NVENC mode and it runs .... slow. Like 10fps slow.

Vegas running none NVENC runs faster, but it's half the speed of NVENC.

None of this is acceptable - if there's something causing black frames, there should be an error message. I should not have to practically frame step 4 hours of video looking for dropouts.

Again, this isn't an issue on Vegas 21 and older. Only 22.

Regarding the comment above about transparency, no, no transparency. AVI here is just used as a lossless intermediate transport for a rendered video library. It's just straight video rendered into a library file.

I'm not even doing anything fancy like weird resolutions or anything, this is straight up normal 1080p stuff.

I'd give you a sample AVI, but there's absolutely no way to tell if what I give you will fail. Or when it will fail. You can run the same render, with the same file 10 times, and it'll render perfect, then fail on the 11th.

All I can say, is take a bunch of clips (10-20 of them), render to MagicYUV lossless, then assemble on a timeline, and render that to MP4, and see what happens. Repeat. Repeat. Repeat.

They don't have to be long, 30-120 seconds each.

RogerS wrote on 8/19/2024, 8:07 PM

If the issue is still happening with Voukoder it's probably before the encoding stage so NVENC is a red herring.

It's either a decoding issue or something with video processing. Do the black frames happen on a fade or transition or in the middle of an event?

_litz wrote on 8/19/2024, 8:51 PM

RogerS - middle of an event, or start of an event (then it starts working mid-event).

No fades, no transitions. These are straight cuts between segments.

I agree it appears more like something with video processing - when I'm watching the render, I can see the black frames occur in realtime in the preview window.

johnny-s wrote on 8/20/2024, 3:23 AM

"Vegas Pro 21 and older did not have this problem."

So perhaps changes in vp22 may mean that it cannot handle this file type (MagicYuv?) any longer without introducing black frames.

Try removing Nvidia gpu in both places if you haven't already done so. .. the File I/O tab + in the Video tab as video acceleration.

That is .. Options/Preferences/File I/O tab and in Options/Preferences/Video tab.

 

A sample would be useful.

"I'd give you a sample AVI, but there's absolutely no way to tell if what I give you will fail. Or when it will fail. You can run the same render, with the same file 10 times, and it'll render perfect, then fail on the 11th.

Do the black frames also appear in playback as well as render?

Last changed by johnny-s on 8/20/2024, 3:37 AM, changed a total of 7 times.

PC 1:

Intel i9-9900K

32 GB Ram

AMD Radeon XFX RX 7900 XT

Intel UHD 630

Win 10

PC 2:

AMD Ryzen 9 7950X3D 16 core CPU

64 GB Ram

Nvidia 4090 GPU

Intel A770 GPU

Win 11

 

Laptop:

Intel 11th. Gen 8 core CPU. i9-11900K

64 GB Ram

Nvidia RTX 3080 GPU

Win 10

_litz wrote on 8/21/2024, 6:55 PM

When *playing* (e.g. while editing), everything looks as it should in the preview window.

When *rendering*, you can get random black frame areas in the output video. It's not single frames, but it'll be at least part of a clip to an entire clip. This is viewable both in the preview (as it's rendering) and upon playback of the rendered video.

johnny-s wrote on 8/22/2024, 5:02 AM

"I also saw the same issue rendering non-NVENC in Vegas.

While doing the above did you also make sure to not have Nvenc in File I/O tab and the Video tab for Video Acceleration . Both places.

 

Last changed by johnny-s on 8/22/2024, 5:04 AM, changed a total of 1 times.

PC 1:

Intel i9-9900K

32 GB Ram

AMD Radeon XFX RX 7900 XT

Intel UHD 630

Win 10

PC 2:

AMD Ryzen 9 7950X3D 16 core CPU

64 GB Ram

Nvidia 4090 GPU

Intel A770 GPU

Win 11

 

Laptop:

Intel 11th. Gen 8 core CPU. i9-11900K

64 GB Ram

Nvidia RTX 3080 GPU

Win 10

RogerS wrote on 8/22/2024, 7:33 AM

File io is NVDEC and it should have no effect on MagicYUV and other AVI formats that aren't GPU decodable.

johnny-s wrote on 8/22/2024, 12:27 PM

@_litz

"Vegas Pro 21 and older did not have this problem"

If it turns out to be a VP22 issue a workaround might be to convert the avi files to Prores HQ, then see if it's OK.

PC 1:

Intel i9-9900K

32 GB Ram

AMD Radeon XFX RX 7900 XT

Intel UHD 630

Win 10

PC 2:

AMD Ryzen 9 7950X3D 16 core CPU

64 GB Ram

Nvidia 4090 GPU

Intel A770 GPU

Win 11

 

Laptop:

Intel 11th. Gen 8 core CPU. i9-11900K

64 GB Ram

Nvidia RTX 3080 GPU

Win 10

fr0sty wrote on 8/23/2024, 8:06 AM

Untick "enable direct GPU import path" in preferences>file i/o and see if that does anything. This will revert VEGAS to use the old video engine. You can always re-enable it when working with media that doesn't have this issue, assuming this solves it.

Last changed by fr0sty on 8/23/2024, 8:06 AM, changed a total of 1 times.

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)

_litz wrote on 9/5/2024, 5:29 PM

Untick "enable direct GPU import path" in preferences>file i/o and see if that does anything. This will revert VEGAS to use the old video engine. You can always re-enable it when working with media that doesn't have this issue, assuming this solves it.

Sadly, same behavior persists. It's unfortunately still faster to render and roll the dice it comes out ok, then hobble the process to try and stabilize. It shouldn't be this difficult to read an AVI file reliably.

Vegas *knows* from the project index files what frames *should* look like. If they're ALL BLACK, a warning bell needs to go off.

Kinvermark wrote on 9/5/2024, 10:25 PM

This was an issue many years ago with Cineform encoded .avi files too. Never fixed AFAIK. Maybe it can't be fixed?

Can you transcode into prores .mov file with something like Shutter Encoder ?

pierre-k wrote on 9/6/2024, 1:20 AM

@_litz

First try changing the number of threads to 1 in the Video tab. Then close and open Vegas and render the project. Did it solve your problems?