Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 14th January 2022, 19:42   #1  |  Link
DMD
Registered User
 
DMD's Avatar
 
Join Date: Jan 2006
Location: Italy
Posts: 259
News cards Nvidia (NVEnc) Can you compete with x265?

Good evening.
I ask if the new Nvidia RTX 3xxxx video cards (NVENC) can compete with X265 at a qualitative level.
I ask this if I should apply a less expensive video card and mount a multicore processor like Ryzen 9 5900x
Thank you
DMD is offline   Reply With Quote
Old 15th January 2022, 00:39   #2  |  Link
RanmaCanada
Registered User
 
Join Date: May 2009
Posts: 328
This is answered in the hardware encoding thread. The answer is NO.
RanmaCanada is offline   Reply With Quote
Old 16th January 2022, 02:15   #3  |  Link
tonemapped
Video Fanatic
 
tonemapped's Avatar
 
Join Date: Jul 2021
Location: Surrey
Posts: 89
The quality is slowly improving, and for non-grainy sources most people probably wouldn't notice. That being said, even the best NVENC encode with an RTX 3080 looks worse than a software --fast encode with x265.

One use I've found for NVENC is SD content, such as old DVDs. It does a good enough job there as there's not much detail to start with.
__________________
PC: R9 5900X | 32GB 3600 MT/s RAM | 2*1TB NVMe | RTX 3080 | water-cooled

NAS: SM 48-bay 240TB+ storage | Xeon 1220 | 32GB DDR4 ECC

HTPC: Pentium J5005 | 16GB RAM | 256GB SSD | 15W
tonemapped is offline   Reply With Quote
Old 16th January 2022, 02:40   #4  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,531
Quote:
I ask this if I should apply a less expensive video card and mount a multicore processor like Ryzen 9 5900x
Seeing the h.265 output of a RTX3080 here:
Yes, I would weight expenses towards CPU in your case, qualitywise it may be not worth to pay up for GPU too much.
Besides, IIRC the 20xx series are reported to have the same encoding engine.
But if you intend to go for AI resizing sooner or later: You will need a beefy GPU as well.
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."
Emulgator is offline   Reply With Quote
Old 16th January 2022, 23:11   #5  |  Link
Yups
Registered User
 
Join Date: Sep 2011
Posts: 362
I made two tests some time ago. GTX 1660S and RTX 3000 same encoder, no difference.


https://forum.doom9.org/showpost.php...&postcount=451
https://forum.doom9.org/showpost.php...&postcount=450


There are 2-3 encoding options which can boost the quality quite a bit. With these the quality in best preset is respectable around x265 faster level.
Yups is offline   Reply With Quote
Old 17th January 2022, 07:12   #6  |  Link
RanmaCanada
Registered User
 
Join Date: May 2009
Posts: 328
Quote:
Originally Posted by Emulgator View Post
Seeing the h.265 output of a RTX3080 here:
Yes, I would weight expenses towards CPU in your case, qualitywise it may be not worth to pay up for GPU too much.
Besides, IIRC the 20xx series are reported to have the same encoding engine.
But if you intend to go for AI resizing sooner or later: You will need a beefy GPU as well.
That is correct. Turing and Ampere use the same ASICS so the encoding quality will be exactly the same. It's a step up from Pascal and Maxwell, but still not as good as software. Next gen maybe.
RanmaCanada is offline   Reply With Quote
Old 17th January 2022, 12:37   #7  |  Link
DMD
Registered User
 
DMD's Avatar
 
Join Date: Jan 2006
Location: Italy
Posts: 259
Thank you for the confirmation.
I will orient my bugget on the CPU, at this point you do not need a powerful latest generation video card, perhaps a smaller RTX 3050.
The problem is finding a good compromise setting for x265 (StaxRip), but I assume that a Slow or Very Slow preset is essential for good quality.
Unfortunately, there is no solution to long CPU processing times.

Last edited by DMD; 17th January 2022 at 13:20.
DMD is offline   Reply With Quote
Old 17th January 2022, 19:11   #8  |  Link
RanmaCanada
Registered User
 
Join Date: May 2009
Posts: 328
Quote:
Originally Posted by DMD View Post
Thank you for the confirmation.
I will orient my bugget on the CPU, at this point you do not need a powerful latest generation video card, perhaps a smaller RTX 3050.
The problem is finding a good compromise setting for x265 (StaxRip), but I assume that a Slow or Very Slow preset is essential for good quality.
Unfortunately, there is no solution to long CPU processing times.
I find it odd that you didn't ask about Quicksync. Quicksync is better than NVENC and is almost on par with x265.

Again, go through the hardware encoding thread and near the end there is discussion of the new XE ASICS and how the quality is far superior to NVENC and almost borderline to x265.
RanmaCanada is offline   Reply With Quote
Old 17th January 2022, 21:35   #9  |  Link
DMD
Registered User
 
DMD's Avatar
 
Join Date: Jan 2006
Location: Italy
Posts: 259
Quote:
Originally Posted by RanmaCanada View Post
I find it odd that you didn't ask about Quicksync. Quicksync is better than NVENC and is almost on par with x265.

Again, go through the hardware encoding thread and near the end there is discussion of the new XE ASICS and how the quality is far superior to NVENC and almost borderline to x265.
Should I enable Intel or AMD> H265 in StaxRip?
Can it be compared to x265 in terms of quality?
Thank you

Last edited by DMD; 17th January 2022 at 21:58.
DMD is offline   Reply With Quote
Old 17th January 2022, 21:38   #10  |  Link
excellentswordfight
Lost my old account :(
 
Join Date: Jul 2017
Posts: 322
Quote:
Originally Posted by RanmaCanada View Post
I find it odd that you didn't ask about Quicksync. Quicksync is better than NVENC and is almost on par with x265.

Again, go through the hardware encoding thread and near the end there is discussion of the new XE ASICS and how the quality is far superior to NVENC and almost borderline to x265.
What is the preferred encode mode with quicksync? I just got my hands on an Turing GPU so I'm currently doing some tests. I just tried icq and found nvenc to be superior.

Results of an very quick test: x265 medium, x264 veryslow and QSVEncC64 all reached around 50fps on an 12700k for an 1080p Bluray RIP @ 4Mbps, NVEncC64 200fps. In terms of quality x264>x265>NVEncC64>QSVEncC64. Nvenc did indeed seems to be similar to x265 preset fast.

Last edited by excellentswordfight; 17th January 2022 at 22:08.
excellentswordfight is offline   Reply With Quote
Old 18th January 2022, 02:35   #11  |  Link
Yups
Registered User
 
Join Date: Sep 2011
Posts: 362
Quote:
Originally Posted by excellentswordfight View Post
What is the preferred encode mode with quicksync? I just got my hands on an Turing GPU so I'm currently doing some tests. I just tried icq and found nvenc to be superior.

Results of an very quick test: x265 medium, x264 veryslow and QSVEncC64 all reached around 50fps on an 12700k for an 1080p Bluray RIP @ 4Mbps, NVEncC64 200fps. In terms of quality x264>x265>NVEncC64>QSVEncC64. Nvenc did indeed seems to be similar to x265 preset fast.

CBR/VBR is better on Nvidia, CQP is better on Intel. You have to use CQP and 14 bframes on Intel for best quality, Nvidia is limited to 5 bframes. ICQ mode is worse than CQP on Intel.

Ok I actually posted the preferred settings for Xe here: https://forum.doom9.org/showpost.php...&postcount=494


Also you are using the hybrid mode obviously, try low power mode and you get a huge performance boost. Quality is a bit lower in this mode but performance is a different world.
Yups is offline   Reply With Quote
Old 21st January 2022, 15:43   #12  |  Link
DMD
Registered User
 
DMD's Avatar
 
Join Date: Jan 2006
Location: Italy
Posts: 259
I am in favor of using the x265 encoder for high quality sources such as upscaled 4K movies or footage from professional camcorders, where the time spent is worth the final quality.
Use the NVEnc encoder only for videos coming from smartphones or low quality sources, it might be a good one compromise?

Last edited by DMD; 21st January 2022 at 16:33.
DMD is offline   Reply With Quote
Old 22nd January 2022, 01:50   #13  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,750
Quote:
Originally Posted by RanmaCanada View Post
That is correct. Turing and Ampere use the same ASICS so the encoding quality will be exactly the same. It's a step up from Pascal and Maxwell, but still not as good as software. Next gen maybe.
I doubt any HW encoder will ever be as good as the best SW encoder for the best codec of any given era. As codec complexity increases, optimal algorithms are way much more about little branchy early-exit software-defined decisions that are really well suited to having lots of cores + SIMD sharing L3 cache.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 22nd January 2022, 06:18   #14  |  Link
RanmaCanada
Registered User
 
Join Date: May 2009
Posts: 328
Quote:
Originally Posted by benwaggoner View Post
I doubt any HW encoder will ever be as good as the best SW encoder for the best codec of any given era. As codec complexity increases, optimal algorithms are way much more about little branchy early-exit software-defined decisions that are really well suited to having lots of cores + SIMD sharing L3 cache.
Isn't the Turing/Ampere hardware implementation of x264 on NVENC better than x264 slow? We've had hardware HEVC encoding for almost a decade now, and with AV1 adoption moving at a snail's pace, I figure the next implementation of HEVC hardware will be even better than the current. At least at consumer level. We are already starting to see close results with QuickSync from Intel. Pretty sure professional unobtainium hardware already meets or beats current software implementations. (Tencent)
RanmaCanada is offline   Reply With Quote
Old 23rd January 2022, 01:36   #15  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,750
Quote:
Originally Posted by RanmaCanada View Post
Isn't the Turing/Ampere hardware implementation of x264 on NVENC better than x264 slow? We've had hardware HEVC encoding for almost a decade now, and with AV1 adoption moving at a snail's pace, I figure the next implementation of HEVC hardware will be even better than the current. At least at consumer level. We are already starting to see close results with QuickSync from Intel. Pretty sure professional unobtainium hardware already meets or beats current software implementations. (Tencent)
I can see hardware encoders with good content adaption beating default settings with a SW encoder. But it's not like x265 quality improvements end with --preset placebo. There are plenty of content-depending tuning beyond that. For example, using --tskip with animation, or --cu-lossless with screen captures.

Nor is x265 the best encoder for every HEVC scenario. Beamr and Elemental can beat even an optimally tuned x265 with very grainy content, for example. All the professional-grade HEVC encoders use SW encoders last I deep dived.

I've not seen an example of a HEVC HW encode that couldn't be matched or beat by a properly tuned software encoder. HW encoders shine most with quality @ perf and quality @ CPU. HW on GPU is great for game streaming, for example, as the CPU and memory bandwidth saved can really improve the game's performance.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 1st February 2022, 01:58   #16  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,988
I wasn't aware Elemental had improved significantly. I was pretty underwhelmed at their HEVC encoding quality last I looked It's been several years though.
__________________
These are all my personal statements, not those of my employer :)
Blue_MiSfit is offline   Reply With Quote
Old 1st February 2022, 23:54   #17  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,750
Quote:
Originally Posted by Blue_MiSfit View Post
I wasn't aware Elemental had improved significantly. I was pretty underwhelmed at their HEVC encoding quality last I looked It's been several years though.
Elemental's HEVC has a lot of valuable improvements in the last few years. It's definitely superior to x265 for realtime 4K encoding on equivalent hardware. Lots of psychovisual tuning, improved adaptive quantization, etc.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 22nd February 2022, 11:45   #18  |  Link
bitspyer
Registered User
 
Join Date: Jan 2007
Posts: 4
Quote:
Originally Posted by Yups View Post
I made two tests some time ago. GTX 1660S and RTX 3000 same encoder, no difference.


https://forum.doom9.org/showpost.php...&postcount=451
https://forum.doom9.org/showpost.php...&postcount=450


There are 2-3 encoding options which can boost the quality quite a bit. With these the quality in best preset is respectable around x265 faster level.
Can you post or PM your detailed Settings for nvencc or the encoder you used for gtx1660 encoding?
bitspyer is offline   Reply With Quote
Old 10th April 2022, 12:26   #19  |  Link
DMD
Registered User
 
DMD's Avatar
 
Join Date: Jan 2006
Location: Italy
Posts: 259
For the moment the only problem of hardware encoding NVEnc HEVC
It has no support for b-frames, nor 4:2:2 chroma subsampling and the decoder only support 4:2:0 chroma subsampling.
From the beginning the Nvidia codec has been finalized for streaming play, I don't know if this problem will be solved.
I found some interesting articles:
https://codecalamity.com/hardware-en...-hdr10-videos/
https://www.linkedin.com/pulse/gpu-v...3%B6rn-isakson
https://www.linkedin.com/pulse/video...3%B6rn-isakson

Last edited by DMD; 10th April 2022 at 13:56.
DMD is offline   Reply With Quote
Old 10th April 2022, 13:54   #20  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,259
Quote:
For the moment the only problem of hardware encoding NVEnc HEVC
It has no support for b-frames,
most newer cards (6th generation and newer) support b-frames, see: https://en.wikipedia.org/wiki/Nvidia_NVENC
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:24.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.