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. |
|
15th October 2017, 04:26 | #1 | Link |
Registered User
Join Date: Mar 2003
Posts: 8
|
x265 8 vs 10 bit quality issues
Hello,
I've started to experiment with x265 recently and using info that used to apply to x264, I thought it would be better to go for 10 bit in order to avoid banding and get better compression efficiency. However, the results were not as expected. While output file sizes don't differ much, the 10 bit encode has visible detail loss and weird artifacts. See attached image + screenshot comparison. Am I doing something wrong in the encoding process? Would I need to feed the 10 bit encoder 10 bit video data in the first place? http://screenshotcomparison.com/comparison/120725 x265 Built 2017-10-14: 64Bit-8bit-(3883b374b58d93e707971d93b37eb931) 64Bit-10bit-(411b3fca92fc7e922d1aea8522c17088) ffmpeg-20170921-183fd30-win64-static Code:
loadplugin("DGDecodeNV.dll") dgsource("P1080573.dgi") trim(583,819) BicubicResize(1920,1080,-1,0) Code:
ffmpeg -i test3.avs -f yuv4mpegpipe - | x265-10 --y4m - -o test10.265 https://mega.nz/#!Ik50gKDZ!5MwTMw8vR...xa0Ao4svIOCj4E |
20th October 2017, 18:27 | #2 | Link |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
|
Are you playing the video back on a 10-bit display through a >8-bit display pipeline? If output is 8-bit, than the dithering of the display device can cause issues.
Is the source 10-bit? In general HEVC has less of a quality gap between 8-bit and 10-bit encodes with 8-bit sources than H.264 had. I recommend using 10-bit encoding only when you have 10-bit sources. 8-bit is quite a bit faster to encode and quite a bit more compatible, particularly on mobile devices. |
22nd October 2017, 17:40 | #3 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,730
|
I guess this also depends on your chain of processing. I increase the bitdepth to 16 bits for processing (resizing and denoising) and then encode as 10-bit HEVC. From what I've seen, HW decoding of 10-bit HEVC is getting more and more common in new devices.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
22nd October 2017, 18:13 | #4 | Link | |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
|
Quote:
Also, using 10-bit puts us at the mercy of how good conversion to the native display space is. Lots of SoCs that have 10-bit decode still have only a 8-bit display pipeline, and if there isn't decent dithering, a 10-bit decode can actually look worse than an 8-bit in some cases. |
|
20th October 2017, 19:36 | #5 | Link |
Registered User
Join Date: Mar 2003
Posts: 8
|
Thank you for your reply.
The source is 8bit H.264, with an 8bit pipeline to the encoder. While my graphics card and display can do 10bpc, I'm not sure if MPC-HC handles this. I was just concerned about these strange ringing artifacts that are introduced when switching to 10bit. Even raising the bit rate leaves them there. 8bit definitely performs better here. Nevertheless, I am going to take your advice and encode 8bit, just be on the safe side. |
21st October 2017, 14:44 | #6 | Link |
Testeur de codecs
Join Date: May 2003
Location: France
Posts: 2,484
|
As always, screenshoot comparison doesn't mean anything: default Rate Control for all codec have really agressive strategy. That mean quantizer (local and overall) can be really different in same picture for the same codec (8 bit vs 10 bit) or different codec.
For example, for same picture, you can compare IFrame for "codec A" and bFrame for "codec B". Defaut RC use generally really agressive quantizer for Bframe (default ratio at 1.40 for x264 and x265) and really conservative quantizer for IFrame. If you want make screenshot comparion between codec, you must always use constant quantizer encoding mode and make that at the same bitrate for all codec.
__________________
Le Sagittaire ... ;-) 1- Ateme AVC or x264 2- VP7 or RV10 only for anime 3- XviD, DivX or WMV9 |
22nd October 2017, 16:43 | #7 | Link | ||
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
|
Quote:
The new Redstone 3 version of Windows 10 has support for windowed HDR even, so things may change there once drivers and apps are updated. Quote:
|
||
Thread Tools | Search this Thread |
Display Modes | |
|
|