GH5 HEVC + VP19

Comments

Richvideo wrote on 8/24/2021, 8:31 PM

@Howard-Vigorita What about Shutter Encoder, see if you get Nvidia GPU decode for that. My GPU decoder option in preferences is auto, make sure that's not set to none. I think the only thing that changed between your GPU's decoder and 3000 series is addition of AV1 decode. I would ask on the Resolve help forum for people with 16/20 series Nvidia GPU's to try and play the file to determine if it's software bug or a problem with your system.

I tried my clip in TMPGEnc Video Master Works 7 encoder and it plays the file with no issues without GPU decoding.

Howard-Vigorita wrote on 8/24/2021, 9:41 PM

Here's another possible workaround using ffmpeg. It does a rather quick transcode of your clip using the Microsoft decoder codec to feed the Nvidia encoder. If you see any Nvidia decoder action on your system when you run this, that fact may help the Vegas developers take advantage of the same trick. If it fails for lack of a suitable decoder, you can remove the "-hwaccel dxva2" parameter which will slow things down but still be way quicker than a software encode.

ffmpeg -hwaccel cuda -i "A074C006_210724_E99Z.mov" -filter_complex "[0:1] [0:2] amerge" -c:a pcm_s24le -c:v hevc_nvenc -qp 13 -y out420.mov 

This script also takes your 1st 2 mono tracks and turns them into a single stereo stream.

Not familiar with Shutter Encoder. If your using free Resolve, that doesn't really use gpu for much of anything. Beyond color grading, I'm only superficially familiar with Resolve myself so I might be doing it all wrong.

 

edit: fixed a typo in the script

Former user wrote on 8/24/2021, 10:10 PM

Here's another possible workaround using ffmpeg. It does a rather quick transcode of your clip using the Microsoft decoder codec to feed the Nvidia encoder. If you see any Nvidia decoder action on your system when you run this, that fact may help the Vegas developers take advantage of the same trick.

I transcode 3x each file A074C006_210724_E99Z.mov, using decoder set to cuda -48seconds encode, decoder set to dxa2 -49 seconds. On behalf of Nvidia card owners I would welcome this addition to Vegas

Richvideo wrote on 8/24/2021, 10:49 PM

Here's another possible workaround using ffmpeg. It does a rather quick transcode of your clip using the Microsoft decoder codec to feed the Nvidia encoder. If you see any Nvidia decoder action on your system when you run this, that fact may help the Vegas developers take advantage of the same trick.

I transcode 3x each file A074C006_210724_E99Z.mov, using decoder set to cuda -48seconds encode, decoder set to dxa2 -49 seconds. On behalf of Nvidia card owners I would welcome this addition to Vegas

I took another look at it in Adobe Premiere and it is not using the NVIDIA GPU on the timeline for decoding as I first thought, yet it plays fine as it does in Resolve (Free) so my issue seems to be less of a GPU issue and more that the file is just not being read correctly by VP19.

Howard-Vigorita wrote on 8/24/2021, 10:55 PM

@Former user You know I didn't try setting decoder to cuda... I usually use cuvid and that bombed out on me. But cuda works here too. 41.38 secs with cuda which channels to my Nvidia 1660. 37.73 secs with dxva2 which channels to my amd Vega64. What's particularly interesting is that amd/amf decoding with ffmpeg does not officially exist.

Former user wrote on 8/24/2021, 11:47 PM

 

I took another look at it in Adobe Premiere and it is not using the NVIDIA GPU on the timeline for decoding as I first thought

decoding works for me. I have the Microsoft HEVC codec installed, Premiere possibly needs that

https://www.microsoft.com/en-us/p/hevc-video-extensions/9nmzlz57r3t7?activetab=pivot:overviewtab

But cuda works here too. 41.38 secs with cuda which channels to my Nvidia 1660. 37.73 secs with dxva2 which channels to my amd Vega64.

Quite the speedy computer you have there

Richvideo wrote on 8/25/2021, 12:04 AM

 

I took another look at it in Adobe Premiere and it is not using the NVIDIA GPU on the timeline for decoding as I first thought

decoding works for me. I have the Microsoft HEVC codec installed, Premiere possibly needs that

https://www.microsoft.com/en-us/p/hevc-video-extensions/9nmzlz57r3t7?activetab=pivot:overviewtab

But cuda works here too. 41.38 secs with cuda which channels to my Nvidia 1660. 37.73 secs with dxva2 which channels to my amd Vega64.

Quite the speedy computer you have there

I have MS HEVC installed

Plays fine in Adobe without GPU

Howard-Vigorita wrote on 8/25/2021, 12:50 AM

... 41.38 secs with cuda which channels to my Nvidia 1660. 37.73 secs with dxva2 which channels to my amd Vega64.

Quite the speedy computer you have there

@Former user I just corrected a typo in the script that was over-compressing the output file. Times are now 40.35 secs with dxva2 (Vega64) and 42.7 secs with cuda (Nvidia 1660) . Oddly this is on an older Xeon machine which is the only desktop I have with an Nvidia board in it... but it runs ffmpeg's nvidia codec faster than any of my other machines which can only do ffmpeg's qsv and amf codecs which are not as high performance.

Mohammed_Anis wrote on 8/25/2021, 5:47 AM

On my AMD Ryzen 9 5900 with a 1080ti, the average frame rate I'm getting is 19 Frames on the video playing Full Natively.

This only happens when I enable the Legacy HEVC Encoder.

Otherwise, it's not really practical to work with the video without it being proxied and played on Preview.

 

Last changed by Mohammed_Anis on 8/25/2021, 5:48 AM, changed a total of 1 times.

"I'm a part of all that I've met." Alfred Lord Tennyson

Youtube Channel: https://www.youtube.com/c/VEGASCREATIVEACADEMY


Card name: AMD Radeon RX 6800 XT
Processor: AMD Ryzen 9 5900X 12-Core Processor             (24 CPUs), ~3.7GHz
Memory: 32768MB RAM
Monitor Id: PHLC18F
Native Mode: 3840 x 2160(p) (59.997Hz)
Storage Devices: 2 SSDS, One large HD. VEGAS is installed on SSD

 

Richvideo wrote on 8/25/2021, 6:50 AM

On my AMD Ryzen 9 5900 with a 1080ti, the average frame rate I'm getting is 19 Frames on the video playing Full Natively.

This only happens when I enable the Legacy HEVC Encoder.

Otherwise, it's not really practical to work with the video without it being proxied and played on Preview.

 

Some questions:

Is it playing smoothly at 19fps or does the playback keep stopping then continuing like it is buffering?

If you create a proxy does it fix the issue, because even if I render a proxy the file plays exactly the same for me which is 1 to 2 fps unless I set the monitor to preview?

What GPU do you have on your system?

RogerS wrote on 8/25/2021, 6:59 AM

When you playback after creating a proxy are you using preview/full or preview/auto? If not, higher preview quality settings like best/full always use the original file (great for color correcting a frame at a time not great for smooth playback).

Richvideo wrote on 8/25/2021, 7:42 AM

When you playback after creating a proxy are you using preview/full or preview/auto? If not, higher preview quality settings like best/full always use the original file (great for color correcting a frame at a time not great for smooth playback).

I think that when I tried that in VP 18 that it did not help but it does seem to help in VP 19. After creating a proxy and setting it to preview auto I get 29.97 playback- in any other mode it does nothing I get barely 1fps (see video)

Again -In resolve or adobe on the same system I do not need to create a proxy for smooth playback or adjust playback quality

When creating the proxy it does not seem to be utilizing the GPU for the encoding so if I have a 1-hour clip that could take a while to complete.

 

 

Mohammed_Anis wrote on 8/25/2021, 7:46 AM

On my AMD Ryzen 9 5900 with a 1080ti, the average frame rate I'm getting is 19 Frames on the video playing Full Natively.

This only happens when I enable the Legacy HEVC Encoder.

Otherwise, it's not really practical to work with the video without it being proxied and played on Preview.

 

Some questions:

Is it playing smoothly at 19fps or does the playback keep stopping then continuing like it is buffering?

If you create a proxy does it fix the issue, because even if I render a proxy the file plays exactly the same for me which is 1 to 2 fps? It seems not to have the ability to create a working proxy from the original file.

What GPU do you have on your system?

I confirm that there is a bit of buffer in the first 2 seconds. Then it replays normally at an average of 19 frames. It is still not ideal, of course. We want to color the footage.

Regarding the proxy file:





I'm using an Nvidia 1080ti. The manufacturer is called i-Chill. It has 11GB DDR and it's fit with latest studio driver.

Last changed by Mohammed_Anis on 8/25/2021, 7:49 AM, changed a total of 1 times.

"I'm a part of all that I've met." Alfred Lord Tennyson

Youtube Channel: https://www.youtube.com/c/VEGASCREATIVEACADEMY


Card name: AMD Radeon RX 6800 XT
Processor: AMD Ryzen 9 5900X 12-Core Processor             (24 CPUs), ~3.7GHz
Memory: 32768MB RAM
Monitor Id: PHLC18F
Native Mode: 3840 x 2160(p) (59.997Hz)
Storage Devices: 2 SSDS, One large HD. VEGAS is installed on SSD

 

Richvideo wrote on 8/25/2021, 7:57 AM

On my AMD Ryzen 9 5900 with a 1080ti, the average frame rate I'm getting is 19 Frames on the video playing Full Natively.

This only happens when I enable the Legacy HEVC Encoder.

Otherwise, it's not really practical to work with the video without it being proxied and played on Preview.

 

Some questions:

Is it playing smoothly at 19fps or does the playback keep stopping then continuing like it is buffering?

If you create a proxy does it fix the issue, because even if I render a proxy the file plays exactly the same for me which is 1 to 2 fps? It seems not to have the ability to create a working proxy from the original file.

What GPU do you have on your system?

I confirm that there is a bit of buffer in the first 2 seconds. Then it replays normally at an average of 19 frames. It is still not ideal, of course. We want to color the footage.

Regarding the proxy file:





I'm using an Nvidia 1080ti. The manufacturer is called i-Chill. It has 11DDR and it's fit with latest studio driver.

Hi Mohammed I thought that the video that you were testing was mine, that file is the one the original thread poster provided.... The original posters test file was a 10 bit HEVC from the Panasonic GH5 camera and mine is a 10 bit HEVC (150MB/s) file from the Panasonic CX 350.

If you don't mind, could you test my clip and see how many FPS you are getting in best quality before creating a proxy?

https://www.dropbox.com/t/KLtVmj7P14KZFLfd

 

 

 

RogerS wrote on 8/25/2021, 8:14 AM

I think that when I tried that in VP 18 that it did not help but it does seem to help in VP 19. After creating a proxy and setting it to preview auto I get 29.97 playback- in any other mode it does nothing I get barely 1fps (see video)

Again -In resolve or adobe on the same system I do not need to create a proxy for smooth playback or adjust playback quality

When creating the proxy it does not seem to be utilizing the GPU for the encoding so if I have a 1-hour clip that could take a while to complete.

The proxy format is XDCAM so there's no GPU encoding or decoding available. It's very compatible and easy for even old computers to play back, though. Magix did go to AVC (which has encoding/decoding benefits) for early builds of 18 but after an outcry put back XDCAM. I hope they end up applying the fix they did for prerenders (shift-m) in Vegas Pro 19 where users can set their preferred format.

In Resolve (not Studio) I have to proxy everything, which takes a long time if you've got a few hour-long interviews, so I hear you!

Mohammed_Anis wrote on 8/25/2021, 9:31 AM

@Richvideo

Interesting findings with your video.

The GPU Acceleration and the NVENC Decoder appear to be handicaps. They contribute nothing and having them is a hazard for playback in your case

HEVC Legacy Decoder (with a few moments of buffering) allows it to play back at an average of 21 Frames Per Second.

Without HEVC Legacy Decoder or any combination of the handicaps above, I''m looking at 1.5 frames to 3 frames at most.

Naturally, it plays as expected with proxy.

 

Richvideo wrote on 8/25/2021, 11:19 AM

@Richvideo

Interesting findings with your video.

The GPU Acceleration and the NVENC Decoder appear to be handicaps. They contribute nothing and having them is a hazard for playback in your case

HEVC Legacy Decoder (with a few moments of buffering) allows it to play back at an average of 21 Frames Per Second.

Without HEVC Legacy Decoder or any combination of the handicaps above, I''m looking at 1.5 frames to 3 frames at most.

Naturally, it plays as expected with proxy.

 

I performed some testing with the legacy HEVC decoder with VP19, I had done some testing in VP18 but the results were not good- VP19 was only slightly better.

With legacy HEVC and no proxy in Good mode, the file framerate is erratic (see video)

In preview mode it is the same, the framerate is erratic

With proxy

In Good mode, the framerate is still erratic (see with proxy video)

In Preview mode the framerate is more stable and closer to the full 29.97

These results are far removed from the issueless playback I had with the same file in Adobe Première and Resolve (Free) without any proxies.

Test Videos (with and without proxy)

https://www.dropbox.com/t/hPiw0gvewGD3TBOo

 

These are the properties for this file that I see in Vegas while using Legacy HEVC decoding

General
  Name: A074C006_210724_E99Z.MOV
 
  Type: Intel HEVC
  Size: 1.52 GB (1,553,745,287 bytes)
  Created: Friday, August 20, 2021, 11:42:16 PM
  Modified: Saturday, July 24, 2021, 7:05:40 PM
  Accessed: Saturday, August 21, 2021, 12:02:04 AM
  Attributes: Archive

Streams
  Video: 00:01:23.584, 29.970 fps progressive, 3840x2160x32, HEVC
  Audio: 00:01:23.584, 48,000 Hz, Mono, PCM

Plug-In
  Name: mxhevcplug.dll
  Folder: C:\Program Files\VEGAS\VEGAS Pro 19.0\FileIO Plug-Ins\mxhevcplug
  Format: Intel HEVC
  Version: Version 1.0 (Build 8532)
  Company: MAGIX Computer Products Intl. Co.

Mohammed_Anis wrote on 8/25/2021, 12:14 PM

@Richvideo

Interesting findings with your video.

The GPU Acceleration and the NVENC Decoder appear to be handicaps. They contribute nothing and having them is a hazard for playback in your case

HEVC Legacy Decoder (with a few moments of buffering) allows it to play back at an average of 21 Frames Per Second.

Without HEVC Legacy Decoder or any combination of the handicaps above, I''m looking at 1.5 frames to 3 frames at most.

Naturally, it plays as expected with proxy.

 

I performed some testing with the legacy HEVC decoder with VP19, I had done some testing in VP18 but the results were not good- VP19 was only slightly better.

With legacy HEVC and no proxy in Good mode, the file framerate is erratic (see video)

In preview mode it is the same, the framerate is erratic

With proxy

In Good mode, the framerate is still erratic (see with proxy video)

In Preview mode the framerate is more stable and closer to the full 29.97

These results are far removed from the issueless playback I had with the same file in Adobe Première and Resolve (Free) without any proxies.

Test Videos (with and without proxy)

https://www.dropbox.com/t/hPiw0gvewGD3TBOo

 

These are the properties for this file that I see in Vegas while using Legacy HEVC decoding

General
  Name: A074C006_210724_E99Z.MOV
 
  Type: Intel HEVC
  Size: 1.52 GB (1,553,745,287 bytes)
  Created: Friday, August 20, 2021, 11:42:16 PM
  Modified: Saturday, July 24, 2021, 7:05:40 PM
  Accessed: Saturday, August 21, 2021, 12:02:04 AM
  Attributes: Archive

Streams
  Video: 00:01:23.584, 29.970 fps progressive, 3840x2160x32, HEVC
  Audio: 00:01:23.584, 48,000 Hz, Mono, PCM

Plug-In
  Name: mxhevcplug.dll
  Folder: C:\Program Files\VEGAS\VEGAS Pro 19.0\FileIO Plug-Ins\mxhevcplug
  Format: Intel HEVC
  Version: Version 1.0 (Build 8532)
  Company: MAGIX Computer Products Intl. Co.

Good and Best modes ignore proxy.

 

These are exclusive to running the core files at native resolution.

Proxy has 0 baring on them

I have been explained as much in both videos I have uploaded

 

Last changed by Mohammed_Anis on 8/25/2021, 12:18 PM, changed a total of 1 times.

"I'm a part of all that I've met." Alfred Lord Tennyson

Youtube Channel: https://www.youtube.com/c/VEGASCREATIVEACADEMY


Card name: AMD Radeon RX 6800 XT
Processor: AMD Ryzen 9 5900X 12-Core Processor             (24 CPUs), ~3.7GHz
Memory: 32768MB RAM
Monitor Id: PHLC18F
Native Mode: 3840 x 2160(p) (59.997Hz)
Storage Devices: 2 SSDS, One large HD. VEGAS is installed on SSD

 

Richvideo wrote on 8/25/2021, 12:16 PM

@Richvideo

Interesting findings with your video.

The GPU Acceleration and the NVENC Decoder appear to be handicaps. They contribute nothing and having them is a hazard for playback in your case

HEVC Legacy Decoder (with a few moments of buffering) allows it to play back at an average of 21 Frames Per Second.

Without HEVC Legacy Decoder or any combination of the handicaps above, I''m looking at 1.5 frames to 3 frames at most.

Naturally, it plays as expected with proxy.

 

I performed some testing with the legacy HEVC decoder with VP19, I had done some testing in VP18 but the results were not good- VP19 was only slightly better.

With legacy HEVC and no proxy in Good mode, the file framerate is erratic (see video)

In preview mode it is the same, the framerate is erratic

With proxy

In Good mode, the framerate is still erratic (see with proxy video)

In Preview mode the framerate is more stable and closer to the full 29.97

These results are far removed from the issueless playback I had with the same file in Adobe Première and Resolve (Free) without any proxies.

Test Videos (with and without proxy)

https://www.dropbox.com/t/hPiw0gvewGD3TBOo

 

These are the properties for this file that I see in Vegas while using Legacy HEVC decoding

General
  Name: A074C006_210724_E99Z.MOV
 
  Type: Intel HEVC
  Size: 1.52 GB (1,553,745,287 bytes)
  Created: Friday, August 20, 2021, 11:42:16 PM
  Modified: Saturday, July 24, 2021, 7:05:40 PM
  Accessed: Saturday, August 21, 2021, 12:02:04 AM
  Attributes: Archive

Streams
  Video: 00:01:23.584, 29.970 fps progressive, 3840x2160x32, HEVC
  Audio: 00:01:23.584, 48,000 Hz, Mono, PCM

Plug-In
  Name: mxhevcplug.dll
  Folder: C:\Program Files\VEGAS\VEGAS Pro 19.0\FileIO Plug-Ins\mxhevcplug
  Format: Intel HEVC
  Version: Version 1.0 (Build 8532)
  Company: MAGIX Computer Products Intl. Co.

Good and Best modes ignore proxy.

 

These are exclusive to running the core files at native resolution.

Proxy has 0 baring on them

 

Thanks for that info, I was not aware of that

eikira wrote on 8/25/2021, 11:03 PM

i love my AMD 5950x, so much cores so fast encoding with FFMPEG and so much room with resources of multitasking, but it just could not do HEVC in Vegas with the RTX 3080... so i decided for the time being to give up some bitcoin and purchase a new Intel... i did not really want it, but with this little clip shown here, its obvious why i, at the moment, still need Intel QSV decoding.

Its the same clip i posted at the very beginning. but now i could even playback it with a LUT enabled, colorcorrection fx and a very simple contrast added all in 10bit mode...

This is just silly that you cant do that with an overpowering discrete GPU... but whatever...

Mohammed_Anis wrote on 8/25/2021, 11:56 PM

i love my AMD 5950x, so much cores so fast encoding with FFMPEG and so much room with resources of multitasking, but it just could not do HEVC in Vegas with the RTX 3080... so i decided for the time being to give up some bitcoin and purchase a new Intel... i did not really want it, but with this little clip shown here, its obvious why i, at the moment, still need Intel QSV decoding.

Its the same clip i posted at the very beginning. but now i could even playback it with a LUT enabled, colorcorrection fx and a very simple contrast added all in 10bit mode...

This is just silly that you cant do that with an overpowering discrete GPU... but whatever...

 

Well. Good for you, I suppose! Also, I think it's neat that you're purchasing with Bitcoin. Is it from New Egg? I remember they were accepting cyrpto payments a while back.

 

Richvideo wrote on 8/26/2021, 12:01 AM

i love my AMD 5950x, so much cores so fast encoding with FFMPEG and so much room with resources of multitasking, but it just could not do HEVC in Vegas with the RTX 3080... so i decided for the time being to give up some bitcoin and purchase a new Intel... i did not really want it, but with this little clip shown here, its obvious why i, at the moment, still need Intel QSV decoding.

Its the same clip i posted at the very beginning. but now i could even playback it with a LUT enabled, colorcorrection fx and a very simple contrast added all in 10bit mode...

This is just silly that you cant do that with an overpowering discrete GPU... but whatever...

After much testing and speaking with others in this thread it seems that the Panasonic HEVC files will play fine without GPU help if you have a decent CPU. I have tested it in Resolve (Free) and Adobe Première on the same system and neither of them were using the NVIDIA GPU for the decode but the file played fine in both programs. The issue seems to be that Vegas is not programmed to read the file in a manner that the CPU can play the file properly (Smoothly). In VP19 if you put it into HEVC legacy decode and create a proxy and have the monitor set to preview quality that is the only way to get the file to play smooth enough to work with but it is disappointing that you need to go through that just to get a common pro codec type to play in Vegas.

Mohammed_Anis wrote on 8/26/2021, 12:09 AM

i love my AMD 5950x, so much cores so fast encoding with FFMPEG and so much room with resources of multitasking, but it just could not do HEVC in Vegas with the RTX 3080... so i decided for the time being to give up some bitcoin and purchase a new Intel... i did not really want it, but with this little clip shown here, its obvious why i, at the moment, still need Intel QSV decoding.

Its the same clip i posted at the very beginning. but now i could even playback it with a LUT enabled, colorcorrection fx and a very simple contrast added all in 10bit mode...

This is just silly that you cant do that with an overpowering discrete GPU... but whatever...

After much testing and speaking with others in this thread it seems that the Panasonic HEVC files will play fine without GPU help if you have a decent CPU. I have tested it in Resolve (Free) and Adobe Première on the same system and neither of them were using the NVIDIA GPU for the decode but the file played fine in both programs. The issue seems to be that Vegas is not programmed to read the file in a manner that the CPU can play the file properly (Smoothly). In VP19 if you put it into HEVC legacy decode and create a proxy and have the monitor set to preview quality that is the only way to get the file to play smooth enough to work with but it is disappointing that you need to go through that just to get a common pro codec type to play in Vegas.

The file works perfectly fine without Legacy Encoder if you're using proxy.

As one user explained here:

The proxy is an XDCAM File which is more or less the friendliest file to VEGAS. When you hit proxy, then select Preview, VEGAS switches over from the original file itself and onto that XDCAM file. When you hit render, VEGAS throws everything you did to that XDCAM file back at the original then renders.

XDCAM just flies, no matter what settings you have. It just doesn't use them because it doesn't need them.







 

Last changed by Mohammed_Anis on 8/26/2021, 12:09 AM, changed a total of 1 times.

"I'm a part of all that I've met." Alfred Lord Tennyson

Youtube Channel: https://www.youtube.com/c/VEGASCREATIVEACADEMY


Card name: AMD Radeon RX 6800 XT
Processor: AMD Ryzen 9 5900X 12-Core Processor             (24 CPUs), ~3.7GHz
Memory: 32768MB RAM
Monitor Id: PHLC18F
Native Mode: 3840 x 2160(p) (59.997Hz)
Storage Devices: 2 SSDS, One large HD. VEGAS is installed on SSD

 

Mohammed_Anis wrote on 8/26/2021, 12:19 AM

Also - one final note to the sentiments about not "Not making sense when I have X mount of threads/cores gpu"

There is only one software in the entire market that will swallow every piece of Hardware you throw at it and that is Blender. That software, while open Source, gets equivalent funding to the scale of Triple A Games.

Getting a codec to utilize hardware pieces is like language translation. You can have dual-computing specs with the most cutting edge technologies of our time, if the software hasn't been optimized to use them, it simply does not use them.