• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

How to natively encode/decode H.264 videos on Ampere cards?

Joined
Jan 1, 2021
Messages
1,066 (0.88/day)
System Name The Sparing-No-Expense Build
Processor Ryzen 5 5600X
Motherboard Asus ROG Strix X570-E Gaming Wifi II
Cooling Noctua NH-U12S chromax.black
Memory 32GB: 2x16GB Patriot Viper Steel 3600MHz C18
Video Card(s) NVIDIA RTX 3060Ti Founder's Edition
Storage 500GB 970 Evo Plus NVMe, 2TB Crucial MX500
Display(s) AOC C24G1 144Hz 24" 1080p Monitor
Case Lian Li O11 Dynamic EVO White
Power Supply Seasonic X-650 Gold PSU (SS-650KM3)
Software Windows 11 Home 64-bit
I have a RTX 3060 Ti.
I've read in reviews that the Ampere architecture supports natively encoding/decoding H.264 and H.265 videos up to 8K 10-bit. Usually this is a very CPU-intensive process.
How to take advantage of this feature? Currently I'm using a software named AVIdemux for encoding videos.
 
Joined
Jan 1, 2021
Messages
1,066 (0.88/day)
System Name The Sparing-No-Expense Build
Processor Ryzen 5 5600X
Motherboard Asus ROG Strix X570-E Gaming Wifi II
Cooling Noctua NH-U12S chromax.black
Memory 32GB: 2x16GB Patriot Viper Steel 3600MHz C18
Video Card(s) NVIDIA RTX 3060Ti Founder's Edition
Storage 500GB 970 Evo Plus NVMe, 2TB Crucial MX500
Display(s) AOC C24G1 144Hz 24" 1080p Monitor
Case Lian Li O11 Dynamic EVO White
Power Supply Seasonic X-650 Gold PSU (SS-650KM3)
Software Windows 11 Home 64-bit
Joined
Mar 26, 2010
Messages
9,795 (1.90/day)
Location
Jakarta, Indonesia
System Name micropage7
Processor Intel Xeon X3470
Motherboard Gigabyte Technology Co. Ltd. P55A-UD3R (Socket 1156)
Cooling Enermax ETS-T40F
Memory Samsung 8.00GB Dual-Channel DDR3
Video Card(s) NVIDIA Quadro FX 1800
Storage V-GEN03AS18EU120GB, Seagate 2 x 1TB and Seagate 4TB
Display(s) Samsung 21 inch LCD Wide Screen
Case Icute Super 18
Audio Device(s) Auzentech X-Fi Forte
Power Supply Silverstone 600 Watt
Mouse Logitech G502
Keyboard Sades Excalibur + Taihao keycaps
Software Win 7 64-bit
Benchmark Scores Classified
With the launch of Premiere Pro 14.2, Adobe has added support for GPU-based H.264/H.265 (HEVC) hardware encoding which allows you to utilize specialized hardware built into NVIDIA and AMD GPUs to improve export performance when exporting to H.264 and H.265.

In previous versions of Premiere Pro, hardware encoding was supported, but only via Intel Quicksync. This implementation worked pretty well, but Quicksync is only available in Intel's consumer and mobile processor families. This meant that high-end Intel systems with X-series processors - and all AMD systems - did not have an option for hardware encoding. Quicksync is still supported if you do not have a compatible GPU, but support for AMD and NVIDIA GPU-based hardware encoding will not only allow almost everyone to have a method to greatly improve performance when exporting to H.264 and H.265, but should also be significantly faster than Quicksync.

https://www.pugetsystems.com/labs/a...8vFiP-q4KpGpi5vrmDYtwW_8rXdpF0tzlfjiCHj53BUKA

you mean like that one?
 
Joined
Jan 1, 2021
Messages
1,066 (0.88/day)
System Name The Sparing-No-Expense Build
Processor Ryzen 5 5600X
Motherboard Asus ROG Strix X570-E Gaming Wifi II
Cooling Noctua NH-U12S chromax.black
Memory 32GB: 2x16GB Patriot Viper Steel 3600MHz C18
Video Card(s) NVIDIA RTX 3060Ti Founder's Edition
Storage 500GB 970 Evo Plus NVMe, 2TB Crucial MX500
Display(s) AOC C24G1 144Hz 24" 1080p Monitor
Case Lian Li O11 Dynamic EVO White
Power Supply Seasonic X-650 Gold PSU (SS-650KM3)
Software Windows 11 Home 64-bit
Yes, kinda, but more generalized.
I guess this is still limited to proprietary software like Premiere Pro.
 

Aquinus

Resident Wat-man
Joined
Jan 28, 2012
Messages
13,147 (2.94/day)
Location
Concord, NH, USA
System Name Apollo
Processor Intel Core i9 9880H
Motherboard Some proprietary Apple thing.
Memory 64GB DDR4-2667
Video Card(s) AMD Radeon Pro 5600M, 8GB HBM2
Storage 1TB Apple NVMe, 4TB External
Display(s) Laptop @ 3072x1920 + 2x LG 5k Ultrafine TB3 displays
Case MacBook Pro (16", 2019)
Audio Device(s) AirPods Pro, Sennheiser HD 380s w/ FIIO Alpen 2, or Logitech 2.1 Speakers
Power Supply 96w Power Adapter
Mouse Logitech MX Master 3
Keyboard Logitech G915, GL Clicky
Software MacOS 12.1
Doesn't Handbrake support Nvenc?
source
 
Joined
Jan 31, 2011
Messages
238 (0.05/day)
Processor 3700X
Motherboard X570 TUF Plus
Cooling U12
Memory 32GB 3600MHz
Video Card(s) eVGA GTX970
Storage 512GB 970 Pro
Case CM 500L vertical
Doesn't Handbrake support Nvenc?
source
Yup. Handbrake (a really good ffmpeg wrapper - so really ffmpeg, but you have to learn all of the CLI/terminal arguments for for it) for encode, and most media players will use the decode HW of whichever GPU is supposed to render the display (though some will do otherwise).
 
Joined
Jan 8, 2017
Messages
8,944 (3.35/day)
System Name Good enough
Processor AMD Ryzen R9 7900 - Alphacool Eisblock XPX Aurora Edge
Motherboard ASRock B650 Pro RS
Cooling 2x 360mm NexXxoS ST30 X-Flow, 1x 360mm NexXxoS ST30, 1x 240mm NexXxoS ST30
Memory 32GB - FURY Beast RGB 5600 Mhz
Video Card(s) Sapphire RX 7900 XT - Alphacool Eisblock Aurora
Storage 1x Kingston KC3000 1TB 1x Kingston A2000 1TB, 1x Samsung 850 EVO 250GB , 1x Samsung 860 EVO 500GB
Display(s) LG UltraGear 32GN650-B + 4K Samsung TV
Case Phanteks NV7
Power Supply GPS-750C
There is nothing to do in order to enable it per say, you just select the encoder in whatever software you use.
 

Aquinus

Resident Wat-man
Joined
Jan 28, 2012
Messages
13,147 (2.94/day)
Location
Concord, NH, USA
System Name Apollo
Processor Intel Core i9 9880H
Motherboard Some proprietary Apple thing.
Memory 64GB DDR4-2667
Video Card(s) AMD Radeon Pro 5600M, 8GB HBM2
Storage 1TB Apple NVMe, 4TB External
Display(s) Laptop @ 3072x1920 + 2x LG 5k Ultrafine TB3 displays
Case MacBook Pro (16", 2019)
Audio Device(s) AirPods Pro, Sennheiser HD 380s w/ FIIO Alpen 2, or Logitech 2.1 Speakers
Power Supply 96w Power Adapter
Mouse Logitech MX Master 3
Keyboard Logitech G915, GL Clicky
Software MacOS 12.1
Yup. Handbrake (a really good ffmpeg wrapper - so really ffmpeg, but you have to learn all of the CLI/terminal arguments for for it) for encode, and most media players will use the decode HW of whichever GPU is supposed to render the display (though some will do otherwise).
I suggest tools like Handbrake because using the CLI tool for ffmpeg can be a bit daunting for the uninitiated.
 
Joined
Jun 3, 2010
Messages
2,540 (0.50/day)
I think encoders should come with a basic understanding and implementation of VMAF. I don't have to dial settings: I can push the available bitrate and for how long the recording is going to be, a video sample can be analyzed for the highest VMAF or another likely suitable scale.
 

newtekie1

Semi-Retired Folder
Joined
Nov 22, 2005
Messages
28,472 (4.23/day)
Location
Indiana, USA
Processor Intel Core i7 10850K@5.2GHz
Motherboard AsRock Z470 Taichi
Cooling Corsair H115i Pro w/ Noctua NF-A14 Fans
Memory 32GB DDR4-3600
Video Card(s) RTX 2070 Super
Storage 500GB SX8200 Pro + 8TB with 1TB SSD Cache
Display(s) Acer Nitro VG280K 4K 28"
Case Fractal Design Define S
Audio Device(s) Onboard is good enough for me
Power Supply eVGA SuperNOVA 1000w G3
Software Windows 10 Pro x64
For decoding there really isn't anything you have to do. If your software supports it, it will just use it.

For encoding I use xmedia recode when I want to use the nvenc encoder. I prefer it to Handbrake because it allows 2-pass encoding with nvenc while, as far as I can find, Handbrake only does single pass encoding. Also the encoder settings are much easier to tweak in xmedia recode.
 
Joined
Jun 3, 2010
Messages
2,540 (0.50/day)
For decoding there really isn't anything you have to do. If your software supports it, it will just use it.
Well, there is mainline decoding and then there is superxbr 75/100 & bilateral decoding. I would personally hope for the day MadVR has become the industry default. Let us leave the video to the japanese, guys. They know what they are up to.
Again, it shouldn't be hard to sample the psnr noise level of the video content and switch between 25/150(like a gaussian shock filter taking care of video fuzz in videotape media) and 75/100(standard media with extra font clarity).
 
Joined
Dec 29, 2010
Messages
3,458 (0.71/day)
Processor AMD 5900x
Motherboard Asus x570 Strix-E
Cooling Hardware Labs
Memory G.Skill 4000c17 2x16gb
Video Card(s) RTX 3090
Storage Sabrent
Display(s) Samsung G9
Case Phanteks 719
Audio Device(s) Fiio K5 Pro
Power Supply EVGA 1000 P2
Mouse Logitech G600
Keyboard Corsair K95
Joined
Jan 1, 2021
Messages
1,066 (0.88/day)
System Name The Sparing-No-Expense Build
Processor Ryzen 5 5600X
Motherboard Asus ROG Strix X570-E Gaming Wifi II
Cooling Noctua NH-U12S chromax.black
Memory 32GB: 2x16GB Patriot Viper Steel 3600MHz C18
Video Card(s) NVIDIA RTX 3060Ti Founder's Edition
Storage 500GB 970 Evo Plus NVMe, 2TB Crucial MX500
Display(s) AOC C24G1 144Hz 24" 1080p Monitor
Case Lian Li O11 Dynamic EVO White
Power Supply Seasonic X-650 Gold PSU (SS-650KM3)
Software Windows 11 Home 64-bit
Thanks guys for all the inputs :)
I'm not familiar with all the software mentioned here, but I'll check it out.
 
Top