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 11th January 2022, 00:17   #8401  |  Link
Kill3rWolf
Registered User
 
Join Date: Aug 2021
Posts: 27
Quote:
Originally Posted by Boulder View Post
Use --ctu 32. Rskip 2 is useful for retaining details, CTU 64 much less (if at all) so.
Quote:
Originally Posted by microchip8 View Post
use rskip 1 and ctu 32
Got confusion. (Boulder) Rskip 2 & (microchip8) rskip 1. Same topic, but with a different value.
Kill3rWolf is offline   Reply With Quote
Old 11th January 2022, 00:56   #8402  |  Link
Kill3rWolf
Registered User
 
Join Date: Aug 2021
Posts: 27

Could you tell me perfect vbv-maxrate= & vbv-bufsize= value for Level 4.1 Main tier (Blu-ray encoding)?
Should I set 20,000 for both?
Can I do vbv-maxrate=12000 & vbv-bufsize=20000 without any error?

I saw that an encoder did vbv-maxrate=18000 & vbv-bufsize=24000 for Main 10@L5.1@Main.
Kill3rWolf is offline   Reply With Quote
Old 11th January 2022, 06:03   #8403  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,729
Quote:
Originally Posted by Kill3rWolf View Post
Got confusion. (Boulder) Rskip 2 & (microchip8) rskip 1. Same topic, but with a different value.
--rskip 2 is better for detail retention. --rskip 1 is the same as the old --rskip. I recommend using --ctu 32 regardless of the rskip setting.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is online now   Reply With Quote
Old 11th January 2022, 08:55   #8404  |  Link
_kermit
Registered User
 
Join Date: Apr 2017
Posts: 63
Quote:
Originally Posted by Boulder View Post
--rskip 2 is better for detail retention. --rskip 1 is the same as the old --rskip. I recommend using --ctu 32 regardless of the rskip setting.
with --rskip 2 I had tearing, not using that anymore.
_kermit is offline   Reply With Quote
Old 11th January 2022, 09:24   #8405  |  Link
rwill
Registered User
 
Join Date: Dec 2013
Posts: 347
Quote:
Originally Posted by _kermit View Post
with --rskip 2 I had tearing, not using that anymore.
Tearing ? You mean what you reported here ?:
https://forum.doom9.org/showthread.p...19#post1960919

You had quite a lot of parameters. By that logic you don't set any of these now ?
rwill is offline   Reply With Quote
Old 11th January 2022, 10:41   #8406  |  Link
Kill3rWolf
Registered User
 
Join Date: Aug 2021
Posts: 27
Guys, need help regarding HEVC Level, Tier vbv-maxrate= & vbv-bufsize= value.
Kill3rWolf is offline   Reply With Quote
Old 11th January 2022, 11:56   #8407  |  Link
Gravitator
Registered User
 
Join Date: May 2014
Posts: 292
Quote:
Originally Posted by _kermit View Post
Massive tearing, at least I think that's what it's called: https://ibb.co/fSYXTQ0

it's a specific scene of Mission Impossible - Rogue Nation starting at 1.09.56 (original: https://ibb.co/9GhV3wx)

any ideas how to prevent that?
are my params the reason (hence the question above)?
Can you provide a sample (30 sec)?
__________________
Win10x64, Xeon E5450, GTX 750 2GB, DDR3 8GB.
Gravitator is offline   Reply With Quote
Old 11th January 2022, 21:24   #8408  |  Link
excellentswordfight
Lost my old account :(
 
Join Date: Jul 2017
Posts: 324
Quote:
Originally Posted by Kill3rWolf View Post
[url=https://ibb.co/B4yKnNp]
Could you tell me perfect vbv-maxrate= & vbv-bufsize= value for Level 4.1 Main tier (Blu-ray encoding)?
The "perfect" values depends on your target device & playback variables.
Quote:
Should I set 20,000 for both?
You could, that is also what the encoder sets if you specify that level.
Quote:
Can I do vbv-maxrate=12000 & vbv-bufsize=20000 without any error?
As long as its not above the max value of the level you want to use, yes.
Quote:
I saw that an encoder did vbv-maxrate=18000 & vbv-bufsize=24000 for Main 10@L5.1@Main.
Ok?

Last edited by excellentswordfight; 11th January 2022 at 21:27.
excellentswordfight is offline   Reply With Quote
Old 11th January 2022, 22:36   #8409  |  Link
_kermit
Registered User
 
Join Date: Apr 2017
Posts: 63
Quote:
Originally Posted by rwill View Post
Tearing ? You mean what you reported here ?:
https://forum.doom9.org/showthread.p...19#post1960919

You had quite a lot of parameters. By that logic you don't set any of these now ?
yes, that screen (btw how is that called properly?)

and I kept everything just skipped --rskip 2 (which I'm still wondering if that is a good thing, but those I collected over time. I'd prefer to keep it more simple or better ones if possible)

that above went away, I try now with --rskip 1 to get more FPS.
_kermit is offline   Reply With Quote
Old 11th January 2022, 22:37   #8410  |  Link
_kermit
Registered User
 
Join Date: Apr 2017
Posts: 63
Quote:
Originally Posted by Gravitator View Post
Can you provide a sample (30 sec)?
the first screenshot shows it (if still online). That specific scene is all like that, while there is like "doublevision" of her (screen two) in the original.
_kermit is offline   Reply With Quote
Old 11th January 2022, 23:15   #8411  |  Link
rwill
Registered User
 
Join Date: Dec 2013
Posts: 347
Quote:
Originally Posted by _kermit View Post
yes, that screen (btw how is that called properly?)

and I kept everything just skipped --rskip 2 (which I'm still wondering if that is a good thing, but those I collected over time. I'd prefer to keep it more simple or better ones if possible)

that above went away, I try now with --rskip 1 to get more FPS.
If the screen is covered with tiny blocks or garbage that do not fit the bitrate like in this case I would call it encoding or decoding error or encoder/decoder mismatch. Its an error that is caused by the encoder trying to do one thing and writing it out but the decoder is doing another thing upon reading it in, leading to complete disaster. Once broken by such an error the encoding/decoding process most likely does not recover until the next random access point. In simpler terms it is a miscommunication of picture contents between encoder and decoder.

This can be caused by some bug or out of spec behavior in the encoder or decoder where the standard ( here h.265 ) is not followed correctly. If you used hardware decoding to produce that output the most possible cause lies in the encoder because hardware decoders are tested very thoroughly before being cast in silicon.

These type of problems can be debugged by cutting the source down to some small sample which triggers the effect every time it is decoded with one specific or all decoders. So to fix it one needs the small input sample, the encoder in a specific version in source form, the encoder configuration and the decoder in source form in a specific version. Oh and the H.265 standard. Then you can see at which point the encoder and decoder start to differ in the encoding/decoding process. Large samples where things start to happen one hour in are useless because their are very cumbersome to debug.

Could be that the rskip 2 codepath triggers some problem but it might also be that due to all the dependencies a bitstream and encoder / decoder state has a very rare condition somewhere else in the encoder or decoder is triggered by pure chance.

Then again maybe just some frame is too large or the decoder application is feeding DXVA2 wrong at your 160MBit rate.
rwill is offline   Reply With Quote
Old 13th January 2022, 03:32   #8412  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
Quote:
Originally Posted by _kermit View Post
with --rskip 2 I had tearing, not using that anymore.
Turning down the --rskip-edge-threshold some should fix the tearing while still preserving some of the speed improvements. I find 2-3 works pretty well with the content I've tested with it.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 13th January 2022, 09:11   #8413  |  Link
rwill
Registered User
 
Join Date: Dec 2013
Posts: 347
Quote:
Originally Posted by benwaggoner View Post
Turning down the --rskip-edge-threshold some should fix the tearing while still preserving some of the speed improvements. I find 2-3 works pretty well with the content I've tested with it.
Have you seen the screenshot he provided ?
rwill is offline   Reply With Quote
Old 16th January 2022, 23:04   #8414  |  Link
Kill3rWolf
Registered User
 
Join Date: Aug 2021
Posts: 27
I have a question, Which one is better, max-luma=255 or max-luma=1023? or depend on the source?

Which one provides bad quality, I mean incorrect colors & too much unacceptable brightness.
Kill3rWolf is offline   Reply With Quote
Old 17th January 2022, 10:36   #8415  |  Link
GEfS
Registered User
 
Join Date: Aug 2011
Posts: 25
Quote:
Originally Posted by Kill3rWolf View Post
I have a question, Which one is better, max-luma=255 or max-luma=1023? or depend on the source?

Which one provides bad quality, I mean incorrect colors & too much unacceptable brightness.
the value already tells the reason, 255 (0-255, 256 values, 2^8) is 8 bit, 1023 (0-1023, 1024 value, 2^10) is 10bit, it depends on your in and output
GEfS is offline   Reply With Quote
Old 17th January 2022, 21:02   #8416  |  Link
Kill3rWolf
Registered User
 
Join Date: Aug 2021
Posts: 27
https://ibb.co/2NRL0P9

@Ben Waggoner, Should I use aq-mode=4 only for 4k HDR content? What about 1080p SDR content? aq-mode=4, Is it still unstable? Can be used for almost all content?

https://iopscience.iop.org/article/1.../1/012029/meta
Kill3rWolf is offline   Reply With Quote
Old 18th January 2022, 09:40   #8417  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,902
Quote:
Originally Posted by Kill3rWolf View Post
I have a question, Which one is better, max-luma=255 or max-luma=1023? or depend on the source?

Which one provides bad quality, I mean incorrect colors & too much unacceptable brightness.
That's full range, though.
for 10bit Limited TV Range I use:

Code:
--min-luma 64 --max-luma 940
FranceBB is offline   Reply With Quote
Old 18th January 2022, 10:25   #8418  |  Link
Kill3rWolf
Registered User
 
Join Date: Aug 2021
Posts: 27
Quote:
Originally Posted by FranceBB View Post
That's full range, though.
for 10bit Limited TV Range I use:

Code:
--min-luma 64 --max-luma 940
What's the actual benefit of doing it? I mean behind the reasons.
Kill3rWolf is offline   Reply With Quote
Old 18th January 2022, 11:56   #8419  |  Link
excellentswordfight
Lost my old account :(
 
Join Date: Jul 2017
Posts: 324
Quote:
Originally Posted by Kill3rWolf View Post
What's the actual benefit of doing it? I mean behind the reasons.
It sets what values the encoder excepts for the incomming signal, values above/below are clipped. I.e. if you set this incorrectly you will mess upp the luma values of your encode.

It's very unlikely that you need to specify this manually unless you have good reason for it.
excellentswordfight is offline   Reply With Quote
Old 18th January 2022, 13:01   #8420  |  Link
Kill3rWolf
Registered User
 
Join Date: Aug 2021
Posts: 27
Quote:
Originally Posted by excellentswordfight View Post
It's very unlikely that you need to specify this manually unless you have good reason for it.
Yeah, that's why ain't gonna touch it.
Kill3rWolf 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 16:05.


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