HVEC and AVC Rendering Issues: Artifacting...

j.razz wrote on 7/11/2022, 8:51 PM

Link to samples as well as screen captures of render settings.

These issues were not present in previous builds of Vegas 19. Just the latest 643 build.


I can render this timeline out without issue in AVI uncompressed or ProRes.

I cannot render directly out to mp4 using the HVEC or AVC rendering options without artifacting taking place right after a PNG file (as noted in the HVEC video clip). If I render out to AVC, I tend to get artifacts during the PNG portion- especially at the lower portion of the screen (this particular AVC video doesn't showcase this type of artifacting well). It looks like a low bit rate variable encode where larger blocks are shifting in sync along the bottom 1/16th or so of the screen in unison and at regular intervals.

I also cannot take either the successful (and clean) AVI file I rendered or the ProRes file I rendered and produce a successful mp4 file. I get the same issues as if I rendered directly from the timeline.
I tried using nVidia, AMD, and IntelQSV as options (I have an AMD processor and 3060 nVidia gpu (Asus RoG Zephyrus G14 with 40 gigs of RAM).

The timeline consists of:
PNG files created in Illustrator 2022 with Alpha Channels
PNG screen captures from the video preview window in Vegas using the floppy disk icon above the preview window
One JPG file that is an orthomosaic that comes in about 1 gig in file size (no issues rendering that portion of the video). I use keyframes within the pan&crop window to zoom out slowly on this.
Fades on the PNG graphics with alpha channels.
No audio.

Autel Evo II Pro files with the following properties (timeline is based off these settings, and PNG files are set to this dimension):
 

Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/mp41)
File size                                : 179 MiB
Duration                                 : 14 s 334 ms
Overall bit rate                         : 105 Mb/s
Writing application                      : Lavf58.20.100

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@Main
HDR format                               : SMPTE ST 2086, HDR10 compatible
Codec ID                                 : hvc1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 14 s 334 ms
Bit rate                                 : 105 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 24.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.525
Stream size                              : 179 MiB (100%)
Title                                    : Autel.Video
Color range                              : Full
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Mastering display color primaries        : BT.709
Mastering display luminance              : min: 0.0000 cd/m2, max: 0 cd/m2
Codec configuration box                  : hvcC

Comments

Former user wrote on 7/11/2022, 9:38 PM

@j.razz Hi, i can't give you any info but if i'm rendering anything with pics or titles, i render those sections out separately using the Magix AVC without (NVENC) at the end or Render to a new track, if i do use (NVENC) the pics n titles end up in different places, sometimes they flicker from one image to the other or the images get duplicated & put in the wrong place, It's just something I've accepted, I don't know enough about it but i think it's something to do with Vegas + the Nvidia 3000 series GPU's, after rendering to a new track those sections i delete the images etc. & replace with the rendered sections, & i can then render out the project with the (NVENC) option 🤷‍♂️

j.razz wrote on 7/11/2022, 9:49 PM

Even when I drop the ProRes file (no artifacts/issues) or AVI file (again, no issues) on the timeline, I still get the artifacting around where the png files were even though they've been rendered/baked into the ProRes/Avi files. Vegas has no knowledge of the originals, just frames to render to HVEC or AVC. I still get issues. This leads me to believe it has to do with either: A. the latest build or B. a combination of the latest build and a driver/codec not playing nice with my files.

Musicvid wrote on 7/11/2022, 10:38 PM

And do the same things happen when you render to AVC and HEVC software encoders (not AMD and not NVENC)? Do the same things happened with "GPU Acceleration of Video Processing" turned off in Options->Preferences->Video? Have you tried updating your AMD and Nvidia video drivers in Help-Driver Updates? This information will help narrow down your issue for possible inclusion in a trouble report.

j.razz wrote on 7/11/2022, 10:45 PM

And do the same things happen when you render to AVC and HEVC software encoders (not AMD and not NVENC)? Do the same things happened with "GPU Acceleration of Video Processing" turned off in Options->Preferences->Video? This information will help narrow down your issue for possible inclusion in a trouble report.

I'll test that now and report back here in a few.

j.razz wrote on 7/11/2022, 10:51 PM


What should I choose here? I turned off GPU acceleration in Preferences.

Musicvid wrote on 7/11/2022, 10:58 PM

Choose Mainconcept, which is the software encoder.

I suggest turning one thing off at a time, rendering, writing down the result, and then changing that setting back to where it was before changing anything else.

It's Troubleshooting 101. Changing two things at once is meaningless, because if you trigger different results, no one will know which one caused the change, will you?

j.razz wrote on 7/11/2022, 10:59 PM

For the first test, I chose MainConcept from that dropdown. I thought it hung at 100%, but it eventually finished and the file had no artifacts.

j.razz wrote on 7/11/2022, 11:05 PM

For the second test, I chose IntelQSV from that dropdown. It rendered out without issue. For the record, I'm using the same test secton I linked to above.

j.razz wrote on 7/11/2022, 11:09 PM

Choose Mainconcept, which is the software encoder.

I suggest turning one thing off at a time, rendering, writing down the result, and then changing that setting back to where it was before changing anything else.

It's Troubleshooting 101. Changing two things at once is meaningless, because if you trigger different results, no one will know which one caused the change, will you?

I'm tracking with you regarding how to troubleshoot. I just wanted to make sure I was tracking regarding the template settings. I was pretty sure NV and AMD weren't options, I just wasn't sure about Intel (since I don't have an intel chipset/cpu).

I am curious though if you turn off gpu processing in preferences, does that trump all the items in the dropdown I screenshotted above? In other words, could I choose the amd option or the nv option and render out files ignoring the gpu's? Which setting overides the other is the real question I'm asking.

Thanks for the help @Musicvid

Musicvid wrote on 7/11/2022, 11:14 PM

Were these two tests run with GPU Acceleration of Video Processing turned ON or OFF?

You need to be very specific here, because any developer reading your Support Request will probably ask the same thing.

Former user wrote on 7/11/2022, 11:16 PM

Using your Prores sample file I"m not able to replicate your fault when rendering Nvenc via MagixHEVC. I also have 30 series GPU (3080). I am still hanging on with 643 but will most likely try 550 next (previously on 532). I see no advantage to 643, only negatives

j.razz wrote on 7/11/2022, 11:19 PM

GPU is off.

Additionally, (while GPU is off) I went ahead and rendered AMD as well as NV. NV rendered completely to 100% and everything looked good until I hovered over the file it rendered in the folder it was saved in. It was 0 bytes. It spent all that time rendering and processing each frame to complete successfully, but it didn't produce anything but a blank file.

I also rendered to AMD. AMD resulted in a partial success as it produced a file that played about halfway through the chosen timeline selection before it froze in Windows TV & Movies player and artifacted and went to gray in VLC.

j.razz wrote on 7/11/2022, 11:22 PM

Using your Prores sample file I"m not able to replicate your fault when rendering Nvenc via MagixHEVC. I also have 30 series GPU (3080). I am still hanging on with 643 but will most likely try 550 next (previously on 532). I see no advantage to 643, only negatives

Just to be clear @Former user, you are NOT using build 643 or you are using 643? I couldn't discern what build you are actually on. Can you clarify? Thanks for chiming in and letting me know that things worked as expected on your setup. There's hope!

Former user wrote on 7/11/2022, 11:27 PM

I am still on 643

NVENC can't work with your GPU turned off, although NVENC is different silicon to your GPU processor, NVENC requires GPU processing for NVENC encoding to work.

Musicvid wrote on 7/11/2022, 11:36 PM

I am curious though if you turn off gpu processing in preferences, does that trump all the items in the dropdown I screenshotted above? In other words, could I choose the amd option or the nv option and render out files ignoring the gpu's? Which setting overides the other is the real question I'm asking.

No need to speculate here, because neither setting necessarily "overrides" the other. They are separate but related functions of GPU in Vegas.

Try to stick to using If/And/Then, and avoiding Converse statements when at all possible. Sorry to sound elementary here, but that is where the process starts, at least in my field engineering experience. Here is a visual model to get you started; I'm sure it will all come back bc you had it in school.

I have VP19b643 with Intel QSV, but I am more interested in your report than I am in testing right now.

j.razz wrote on 7/11/2022, 11:44 PM

I am curious though if you turn off gpu processing in preferences, does that trump all the items in the dropdown I screenshotted above? In other words, could I choose the amd option or the nv option and render out files ignoring the gpu's? Which setting overides the other is the real question I'm asking.

No need to speculate here, because neither setting "overrides" the other. They are completely separate functions of GPU in Vegas.

Try to stick to deductive reasoning, using If/And/Then, and avoiding Converse statements when at all possible. Sorry to sound elementary here, but that is where the process starts.

That's confusing to me. In Preferences I turned off GPU Acceleration. Logically it would make sense to remove any gpu options from my rendering templates if they are linked. The fact they are still there leads me to conclude they are not. The fact that you tell me to stick to deductive reasoning tells me that they most likely are not linked. But given NV and AMD are in the dropdown makes me press hard against that conclusion.

What do you know that you are not telling me :)

j.razz wrote on 7/11/2022, 11:47 PM

I am still on 643

NVENC can't work with your GPU turned off, although NVENC is different silicon to your GPU processor, NVENC requires GPU processing for NVENC encoding to work.

Seems like Vegas wouldn't let you waste time rendering for a file that results in 0 bytes. The polite thing would be to give you a pop up telling you that you shouldn't waste your time as it will not give you what you want. The best thing would be to remove that from the rendering options if you have GPU acceleration turned off so that it's not even an option.

Thanks for the response @Former user

Former user wrote on 7/11/2022, 11:49 PM

I am still on 643

NVENC can't work with your GPU turned off, although NVENC is different silicon to your GPU processor, NVENC requires GPU processing for NVENC encoding to work.

Ok disregard what I said about Nvenc not able to work. ACTUALLY it does when GPU is turned off in Vegas. It does this because although Vegas isn't using your GPU for processing, Nvenc is still able to. So that was interesting to discover. And because of that, You should not have ended up with a zero data file.

You could try the full driver reinstall using DDU, see if that fixes thing

j.razz wrote on 7/11/2022, 11:54 PM

@Former user Once troubleshooting is done, I may just uninstall completely and reinstall once I have everything wiped clean.

The GPU settings in Preferences vs templates is confusing to me. Hopefully it becomes more clear through these type of conversations (and hopefully helps others who are reading).

RogerS wrote on 7/11/2022, 11:56 PM

One thought on zero byte files is to make sure bitrates aren't over maximums for the encoders. I would keep the 2160p template entirely stock and only change the type of encoder for now (Mainconcept, NVENC or VCE). The other time I've seen zero byte files is when there was no audio included, but I thought that bug was fixed.

RogerS wrote on 7/11/2022, 11:58 PM

Preferences/video is timeline and effects GPU acceleration, file i/o is GPU decoding and render templates have GPU encoding options. All 3 are independently set (though it is possible an unwanted interaction between them is causing the problem you see here and that's what you're testing now).

j.razz wrote on 7/12/2022, 12:01 AM

One thought on zero byte files is to make sure bitrates aren't over maximums for the encoders. I would keep the 2160p template entirely stock and only change the type of encoder for now (Mainconcept, NVENC or VCE). The other time I've seen zero byte files is when there was no audio included, but I thought that bug was fixed.

Bitrate should be fine as it is whatever comes up when I select NV from the drop down. Having referenced no audio, that is indeed how I rendered (unchecking the box to include audio on the audio tab). Maybe that was the issue. I can test that, but it will be tomorrow as sleep calls.

j.razz wrote on 7/12/2022, 12:03 AM

Preferences/video is timeline and effects GPU acceleration, file i/o is GPU decoding and render templates have GPU encoding options. All 3 are independently set (though it is possible an unwanted interaction between them is causing the problem you see here and that's what you're testing now).

That's helpful. That's what I was looking for. Thanks Roger!

Musicvid wrote on 7/12/2022, 12:35 AM

I'm glad that @RogerS was able to clear that up for you. Carry on.