Ryzen vs Intel for 4:2:2 10bit decoding

MarkAnthony121 wrote on 1/11/2023, 2:28 AM

Decoding 4:2:2 10bit HEVC (I believe it's HEVC) footage from my Canon R5 specifically shot in 60fps in Vegas is nearly impossible. Sluggish performance and constant crashes. 24fps is fine. Based on help I've received in this forum in the past I believe the issue is that Vegas itself is not optimized for this type of footage in general, or not optimized for Intel CPUs, as someone mentioned. Can anyone else confirm, perhaps someone with a Ryzen system? Or even a 13900K? Any performance difference when trying to decode this type of footage specifically in the timeline? Or is this just a typical Vegas lack of optimization thing regardless of what platform you're on? And yes I know I can transcode or make proxies, I'm just trying to see if it can be avoided.

Comments

RogerS wrote on 1/11/2023, 4:06 AM

Can you share the exact media format for files from your R5? https://www.vegascreativesoftware.info/us/forum/faq-how-to-post-mediainfo-and-vegas-pro-file-properties--104561/

Only Intel GPUs and iGPUs (11th gen+) support 10-bit 4:2:2 HEVC decoding. If your question is how well it works even on a system with hardware decoding, please share a sample file, or if we have footage that matches MediaInfo for the file in question we can help with that. I think I have a few R5 clips here and an Intel 13th generation CPU.

Reyfox wrote on 1/11/2023, 6:55 AM

I'll test the footage on my computer listed in my signature below.

Newbie😁

Vegas Pro 22 (VP18-21 also installed)

Win 11 Pro always updated

AMD Ryzen 9 5950X 16 cores / 32 threads

32GB DDR4 3200

Sapphire RX6700XT 12GB Driver: 25.3.1

Gigabyte X570 Elite Motherboard

Panasonic G9, G7, FZ300

MarkAnthony121 wrote on 1/11/2023, 10:59 AM

Here it is!

MarkAnthony121 wrote on 1/11/2023, 10:59 AM

I'll test the footage on my computer listed in my signature below.


@RogerS Just uploaded the files for the two of you

MarkAnthony121 wrote on 1/11/2023, 11:02 AM

https://we.tl/t-FBgPkapRIC

Alternate download just in case

Howard-Vigorita wrote on 1/11/2023, 1:56 PM

@MarkAnthony121 Downloaded your clip and get pretty decent igpu decoding in an 11900k. Won't play at 60p smoothly in vp20 but I made a proxy manually by right-clicking on media in 16 seconds. Decoding activity showed on the igpu in Task Manager. To use the proxy effectively for edit I temporarily set the project to 29.97 fps and the preview screen to preview-full. Played very smoothly and looked reasonably decent on my 4k monitor. A 13th gen Intel desktop cpu will likely be quicker.

If you want to go with a Ryzen or an Intel X-series with no igpu but more cores, an Intel Arc as a 2nd gpu could probably work as well if not better than an Intel igpu, so long as you don't implement devices that steal pcie lanes from gpu slots or shut them down... device trade-offs depend on specific motherboard/chipset design.

MarkAnthony121 wrote on 1/11/2023, 2:13 PM

@MarkAnthony121 Downloaded your clip and get pretty decent igpu decoding in an 11900k. Won't play at 60p smoothly in vp20 but I made a proxy manually by right-clicking on media in 16 seconds. Decoding activity showed on the igpu in Task Manager. To use the proxy effectively for edit I temporarily set the project to 29.97 fps and the preview screen to preview-full. Played very smoothly and looked reasonably decent on my 4k monitor. A 13th gen Intel desktop cpu will likely be quicker.

If you want to go with a Ryzen or an Intel X-series with no igpu but more cores, an Intel Arc as a 2nd gpu could probably work as well if not better than an Intel igpu, so long as you don't implement devices that steal pcie lanes from gpu slots or shut them down... device trade-offs depend on specific motherboard/chipset design.

It's doubtful a 13900 would make a difference. My 12900 barely runs it without proxies. Most people I've run into have told me it's simply a Vegas optimization issue. The thing is I don't know if it's a strictly Vegas thing or a Vegas/Intel optimization situation. I'll know once I get a couple people testing this on their Ryzen systems. I'll literally switch to an AMD system if I'm able to play that footage on my timeline smoothly. Creating proxies works but doubles my workload. When I have 30 weddings to edit transcoding each one takes hours lol.

mikelinton wrote on 1/11/2023, 2:56 PM

Running a 12900KS with 32GB RAM and a Radeon VII. Downloaded your clip - with AMD selected for decoding under File I/O it barely hit 2fps. Flipped over to the Intel GPU, and it played back in 4K at about 30fps full resolution. Dropped to Preview/Half and it played at 60fps.

Regardless, HEVC is not an edit-friendly codec. There's a lot of math happening in camera to compress that stuff down, and it requires a huge amount to decode it. I'm fairly sure if I threw one more layer of video in the mix Vegas would drop that framerate in half again. The HEVC thing has been debated endlessly elsewhere, and there's really zero reasons to use it especially if you can shoot all intra frame (which I believe you can on the R5 in 10bit 4:2:2). And yes, it will take up more card space and you'll need more media on set to deal with it, and cards are 'expensive' but you'll make that up and then some over a few months not wasting time waiting for proxy's and transcoding footage.

MarkAnthony121 wrote on 1/11/2023, 3:05 PM

Running a 12900KS with 32GB RAM and a Radeon VII. Downloaded your clip - with AMD selected for decoding under File I/O it barely hit 2fps. Flipped over to the Intel GPU, and it played back in 4K at about 30fps full resolution. Dropped to Preview/Half and it played at 60fps.

Regardless, HEVC is not an edit-friendly codec. There's a lot of math happening in camera to compress that stuff down, and it requires a huge amount to decode it. I'm fairly sure if I threw one more layer of video in the mix Vegas would drop that framerate in half again. The HEVC thing has been debated endlessly elsewhere, and there's really zero reasons to use it especially if you can shoot all intra frame (which I believe you can on the R5 in 10bit 4:2:2). And yes, it will take up more card space and you'll need more media on set to deal with it, and cards are 'expensive' but you'll make that up and then some over a few months not wasting time waiting for proxy's and transcoding footage.

Wait, are you telling me if I switch to all-i in the R5 it should play back better and I just have to put up with the file sizes? Can't believe I didn't try this before. I don't believe it'll work but let me test and report back.

Howard-Vigorita wrote on 1/11/2023, 4:04 PM

Don't see any indication of long gop in the metadata of your clip that I downloaded...

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Format Range@L5.2@High
Codec ID                                 : hvc1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 8 s 75 ms
Bit rate                                 : 343 Mb/s
Width                                    : 4 096 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 1.896
Frame rate mode                          : Constant
Frame rate                               : 59.940 (60000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.647
Stream size                              : 330 MiB (100%)
Language                                 : English
Encoded date                             : UTC 2022-07-16 21:04:48
Tagged date                              : UTC 2022-07-16 21:04:48
Color range                              : Full
matrix_coefficients_Original             : BT.709
Codec configuration box                  : hvcC

If you don't want to use proxies, suggest you consider shooting 29.97. I happen to be working on a wedding myself shot that way on a single xf605 and it edits and plays fine without proxies. And I was able to frame-grab better candid stills than the wedding photographer though his posed shots were much nicer. Just finished a music video project with two 4k cameras at 60p but had to use proxies for that... only shot it at 60p for some fast fingers on the keys which might actually have looked more impressive with a little blur... but no fast motion at the wedding with a dj. And video on the dance floor in low light was definitely better than possible at 60p.

Other things can help performance. Such as 3840x2160 framing. Also, most gpus can decode 4:2:0 in hardware. Intel definitely does 4:2:2 on 11th gen and later as well as Arc, but is still quicker at 4:2:0. I prefer to shoot 4:2:0 hevc on my cameras but I don't know if the r5 has a codec update for that yet.

MarkAnthony121 wrote on 1/11/2023, 4:55 PM

Don't see any indication of long gop in the metadata of your clip that I downloaded...

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Format Range@L5.2@High
Codec ID                                 : hvc1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 8 s 75 ms
Bit rate                                 : 343 Mb/s
Width                                    : 4 096 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 1.896
Frame rate mode                          : Constant
Frame rate                               : 59.940 (60000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.647
Stream size                              : 330 MiB (100%)
Language                                 : English
Encoded date                             : UTC 2022-07-16 21:04:48
Tagged date                              : UTC 2022-07-16 21:04:48
Color range                              : Full
matrix_coefficients_Original             : BT.709
Codec configuration box                  : hvcC

If you don't want to use proxies, suggest you consider shooting 29.97. I happen to be working on a wedding myself shot that way on a single xf605 and it edits and plays fine without proxies. And I was able to frame-grab better candid stills than the wedding photographer though his posed shots were much nicer. Just finished a music video project with two 4k cameras at 60p but had to use proxies for that... only shot it at 60p for some fast fingers on the keys which might actually have looked more impressive with a little blur... but no fast motion at the wedding with a dj. And video on the dance floor in low light was definitely better than possible at 60p.

Other things can help performance. Such as 3840x2160 framing. Also, most gpus can decode 4:2:0 in hardware. Intel definitely does 4:2:2 on 11th gen and later as well as Arc, but is still quicker at 4:2:0. I prefer to shoot 4:2:0 hevc on my cameras but I don't know if the r5 has a codec update for that yet.

What's long gop and why should I know about it? lol sorry not familiar

Howard-Vigorita wrote on 1/11/2023, 8:09 PM
What's long gop and why should I know about it? lol sorry not familiar

I think of it as the opposite of intra which compresses each frame independently. Usually the metadata tells you if the gop size is greater than 1. I just ran the clip through ffprobe and got 484 frames and only 17 IDR packets... I think that means it's not intra after all. Intra or N=1 is easier and quicker to edit but larger in size.

MarkAnthony121 wrote on 1/11/2023, 8:13 PM
What's long gop and why should I know about it? lol sorry not familiar

I think of it as the opposite of intra which compresses each frame independently. Usually the metadata tells you if the gop size is greater than 1. I just ran the clip through ffprobe and got 484 frames and only 17 IDR packets... I think that means it's not intra after all. Intra or N=1 is easier and quicker to edit but larger in size.

Correct, I always have been filming in IBP mode vs ALL-I. Last time I remember testing it, I couldn't even open ALL-I files in vegas for reasons unknown but I haven't tested in a while. I'll test over the next 48 hours how recording the exact same footage in ALL-I turns out. (Need to get a CF Express card as I can't record that mode on my SD)

fr0sty wrote on 1/11/2023, 8:47 PM

Dexcon wrote on 1/11/2023, 9:02 PM

Thank you @fr0sty for uploading that YT video - what a great overview/explanation about containers and codecs and ease of editing on the timeline. I've now subscribed to that YT channel.

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

Installed: Vegas Pro 15, 16, 17, 18, 19, 20, 21 & 22, HitFilm Pro 2021.3, DaVinci Resolve Studio 19.0.3, BCC 2025, Mocha Pro 2025.0, NBFX TotalFX 7, Neat NR, DVD Architect 6.0, MAGIX Travel Maps, Sound Forge Pro 16, SpectraLayers Pro 11, iZotope RX11 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

 

LAPTOP:

Dell Inspiron 5310 EVO 13.3"

i5-11320H CPU

C Drive: 1TB Corsair Gen4 NVMe M.2 2230 SSD (upgraded from the original 500 GB SSD)

Monitor is 2560 x 1600 @ 60 Hz

fr0sty wrote on 1/11/2023, 11:59 PM

It's also why investing in larger hard drives and some atomos recorders that you can connect to your cameras to record to prores is a better investment than dumping thousands into a new computer, assuming you already have something that is at least mid-range with a decent GPU. Not to mention the capture quality gains that make your video look better.

Last changed by fr0sty on 1/12/2023, 12:00 AM, changed a total of 2 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)

MarkAnthony121 wrote on 1/12/2023, 12:04 AM

It's also why investing in larger hard drives and some atomos recorders that you can connect to your cameras to record to prores is a better investment than dumping thousands into a new computer, assuming you already have something that is at least mid-range with a decent GPU.

Yeah man, if I just learned that my 10bit CLOG3 60fps footage is going to play smoothly just by shooting in ALL-I vs IPB i'm gonna flip a table for not doing this for the past 2 wedding seasons lol. I'm over anxiously awaiting a CF Express card to arrive. I'm not holding my hopes high, but we'll see.

fr0sty wrote on 1/12/2023, 10:26 AM

I would still consider eventually upgrading to atomos external recorders and shooting in prores, it decodes even easier than all i, is 10 bit 4:2:2, and has far higher quality than AVC or hevc because it is far less compressed. It should still support CLog and all that.

Last changed by fr0sty on 1/12/2023, 10:27 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)

fr0sty wrote on 1/12/2023, 10:29 AM

Not to mention the atomos ninja V also supports prores RAW recording out of some cameras, like Panasonic S1.

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)

MarkAnthony121 wrote on 1/12/2023, 1:49 PM

I would still consider eventually upgrading to atomos external recorders and shooting in prores, it decodes even easier than all i, is 10 bit 4:2:2, and has far higher quality than AVC or hevc because it is far less compressed. It should still support CLog and all that.

I'm pretty sure shooting prores for wedding is going to be unsustainable. I don't charge enough to buy a new drive each wedding lol. BUT....

@Howard-Vigorita It works!!! I turned off legacy AVC and HEVC, then for my dynamic ram preview I set it to 40% and turned off GPU acceleration. Slices through the CLOG3 10bit 4:2:2 ALL-I footage like butter at its max cap of 59fps. And about 45fps with a LUT applied. It only works if my hardware decoder is set to QSV on Intel UHD graphics 770, not my 3080ti or OFF. While it plays I see about 30% 12-900K usage, 30% 3080ti usage, and from 0-100% Intel UHD 770 usage. Rendering is WAY slower than before with the same settings but maybe I can tweak that. I certainly prefer a smooth stable editing experience. But it sucks taking 35 seconds to export a 15 second clip when previously with the IPB footage it would take 15 seconds. I will play around with it.

Howard-Vigorita wrote on 1/12/2023, 3:26 PM

The Vegas video prefs setting should not affect decoding if you pick Nvidia. And should speed up editing, fx and lut processing. But Vegas behavior might be altered by a Windows setting in Windows/System/Display/Graphics. I add the Vegas app there and select high-performance gpu (Amd or Nvidia) rather than letting Windows decide... Windows usually picks Intel for power-saving.

MarkAnthony121 wrote on 1/12/2023, 3:50 PM

The Vegas video prefs setting should not affect decoding if you pick Nvidia. And should speed up editing, fx and lut processing. But Vegas behavior might be altered by a Windows setting in Windows/System/Display/Graphics. I add the Vegas app there and select high-performance gpu (Amd or Nvidia) rather than letting Windows decide... Windows usually picks Intel for power-saving.

Yep I've had my graphics settings for Vegas already set to high performance. But basically anything but these settings decreases editing performance. Everything is pretty flawless aside from the slightly slower rendering of my ALL-I file vs IPB. But yes, all those settings greatly affects performance. Changing to GPU acceleration with the 3080ti slow performance a bit. And selecting 3080ti for hardware decoding makes it almost unusable. The way I have it now is pretty much butter smooth full 60fps preview

set wrote on 1/12/2023, 3:58 PM

I try your Canon R5 media, and playing the source media directly is ineditable, too much struggle (in my System 5-2021 - look in my Signature):

And create proxy is the only way:

 

We are almost in 'similar trouble' over here, as I currently need to rent the A7mkIV due to client's requirement of 4K-60p.

And, after looking several opt of recording format choices based on record data times in memory card and record setting quality, I ends up selecting XAVC HS 4K 100Mbps (it is H265 HEVC based as well).

XAVC S-I 4K choice? This is the intra-frame format - but overly-high bitrate🙈. not efficient in term of storage.

Quick test, had sluggish playback on the source 😵 - but after create proxy - much better. Hopefully during 'full-scale' editing, no much issue on the performance.

Last changed by set on 1/12/2023, 4:01 PM, changed a total of 1 times.

Setiawan Kartawidjaja
Bandung, West Java, Indonesia (UTC+7 Time Area)

Personal FB | Personal IG | Personal YT Channel
Chungs Video FB | Chungs Video IG | Chungs Video YT Channel
Personal Portfolios YouTube Playlist
Pond5 page: My Stock Footage of Bandung city

 

System 5-2021:
Processor: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz   2.90 GHz
Video Card1: Intel UHD Graphics 630 (Driver 31.0.101.2127 (Feb 1 2024 Release date))
Video Card2: NVIDIA GeForce RTX 3060 Ti 8GB GDDR6 (Driver Version 551.23 Studio Driver (Jan 24 2024 Release Date))
RAM: 32.0 GB
OS: Windows 10 Pro Version 22H2 OS Build 19045.3693
Drive OS: SSD 240GB
Drive Working: NVMe 1TB
Drive Storage: 4TB+2TB

 

System 2-2018:
ASUS ROG Strix Hero II GL504GM Gaming Laptop
Processor: Intel(R) Core(TM) i7 8750H CPU @2.20GHz 2.21 GHz
Video Card 1: Intel(R) UHD Graphics 630 (Driver 31.0.101.2111)
Video Card 2: NVIDIA GeForce GTX 1060 6GB GDDR5 VRAM (Driver Version 537.58)
RAM: 16GB
OS: Win11 Home 64-bit Version 22H2 OS Build 22621.2428
Storage: M.2 NVMe PCIe 256GB SSD & 2.5" 5400rpm 1TB SSHD

 

* I don't work for VEGAS Creative Software Team. I'm just Voluntary Moderator in this forum.

MarkAnthony121 wrote on 1/12/2023, 4:01 PM

I try your Canon R5 media, and playing the source media directly is ineditable, too much struggle:

And create proxy is the only way:

We are almost in 'similar trouble' over here, as I currently need to rent the A7mkIV due to client's requirement of 4K-60p.

And, after looking several opt of recording format choices based on record data times in memory card and record setting quality, I ends up selecting XAVC HS 4K 100Mbps. XAVC S-I 4K choice? overly-high bitrate🙈.

Quick test, had sluggish playback on the source 😵 - but after create proxy - much better. Hopefully during 'full-scale' editing, no much issue on the performance.

 

Friend hopefully you read my above post that recording in ALL-I instead of IPB compression in my camera fixes this and makes editing smooth with NO proxies