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 10th November 2021, 17:19   #1  |  Link
YaBoyShredderson
Registered User
 
Join Date: Jul 2020
Posts: 72
What happens when my video exceeds the maximum bitrate of the tier and level?

Im using staxrip to encode using x265, and havent left the tier on auto and high on undefined. Its a 4k60 video, and staxrip automatically chose level 5.0 main tier, but its bitrate came out at 65mbits, using crf 18. How does that work? Should i define a tier and?
YaBoyShredderson is offline   Reply With Quote
Old 11th November 2021, 04:53   #2  |  Link
RanmaCanada
Registered User
 
Join Date: May 2009
Posts: 273
CRF will use as much bitrate as it deems fit. If you want a lower bitrate, you are going to have to tell it so. There were some posts talking about this in the sub.
RanmaCanada is offline   Reply With Quote
Old 15th November 2021, 05:57   #3  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,106
Quote:
Originally Posted by YaBoyShredderson View Post
Im using staxrip to encode using x265, and havent left the tier on auto and high on undefined. Its a 4k60 video, and staxrip automatically chose level 5.0 main tier, but its bitrate came out at 65mbits, using crf 18. How does that work? Should i define a tier and?
If you don't specify a level, x265 will default to the lowest level that is compatible with your frame size and fps, and then set --vbv-bufsize and --vbv-maxrate as appropriate (and other parameters).

If your bitrate exceeds main tier, perhaps it will increase it to high tier if you didn't specify that.

If you know what decoders you are targeting, it's better to specify that actual level. And I'd be careful about specifying High Tier for much of anything consumer-oriented. UHD Blu-ray is one exception, as it supports a much higher bitrate than Level 5.1.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 15th November 2021, 08:59   #4  |  Link
excellentswordfight
Lost my old account :(
 
Join Date: Jul 2017
Posts: 239
Quote:
Originally Posted by benwaggoner View Post
If you don't specify a level, x265 will default to the lowest level that is compatible with your frame size and fps, and then set --vbv-bufsize and --vbv-maxrate as appropriate (and other parameters).
Not sure if you have experience with any custom builds, but for me x265 has never set --vbv-bufsize and --vbv-maxrate when level is auto selected, its only set when level is manually specified. It will also default to high tier (if available) when level is specified & tier is not.

Whats a bit odd for TS though that it used level 5 for 2160p60, I didnt think that was valid for level 5. Did you check the encoded file as well TS? Maybe thats just an UI bug in staxrip.

Last edited by excellentswordfight; 15th November 2021 at 09:05.
excellentswordfight is offline   Reply With Quote
Old 15th November 2021, 10:24   #5  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Metropolitan City of Milan, Italy
Posts: 2,116
Quote:
Originally Posted by excellentswordfight View Post

Whats a bit odd for TS though that it used level 5 for 2160p60, I didnt think that was valid for level 5. Did you check the encoded file as well TS? Maybe thats just an UI bug in staxrip.
Interesting. Yeah, I think 5.0 is limited to 30fps only and you gotta go to 5.1 for 50fps and 60fps. Does x265 actually allow people to encode it that way? O_O
FranceBB is offline   Reply With Quote
Old 15th November 2021, 16:01   #6  |  Link
excellentswordfight
Lost my old account :(
 
Join Date: Jul 2017
Posts: 239
Quote:
Originally Posted by FranceBB View Post
Interesting. Yeah, I think 5.0 is limited to 30fps only and you gotta go to 5.1 for 50fps and 60fps. Does x265 actually allow people to encode it that way? O_O
No, normally it doesnt, encoding fails and exits when using an level that isnt valid for that framesize/rate

Last edited by excellentswordfight; 16th November 2021 at 10:36.
excellentswordfight is offline   Reply With Quote
Old 16th November 2021, 18:09   #7  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,106
Quote:
Originally Posted by excellentswordfight View Post
No, normally it doesnt, encoding fails and exits when using an level that isnt valid for that framesize/rate
Perhaps an issue with the custom build build being used?

Mainline x265 has always failed or reduced parameters if I asked it to violate profile @ level @ tier restrictions.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 16th November 2021, 18:49   #8  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Metropolitan City of Milan, Italy
Posts: 2,116
Quote:
Originally Posted by excellentswordfight View Post
No, normally it doesnt, encoding fails and exits when using an level that isnt valid for that framesize/rate
Yeah that's what I thought

Quote:
Originally Posted by benwaggoner View Post
Perhaps an issue with the custom build build being used?

Mainline x265 has always failed or reduced parameters if I asked it to violate profile @ level @ tier restrictions.
Must be a custom_build issue then. I would have been surprised if the mainline x265 actually allowed to encode such a stream eheheheh
FranceBB is offline   Reply With Quote
Old 29th November 2021, 16:04   #9  |  Link
Balling
Registered User
 
Join Date: Feb 2020
Posts: 262
Quote:
Originally Posted by excellentswordfight View Post
No, normally it doesnt, encoding fails and exits when using an level that isnt valid for that framesize/rate
But nvenc does not. LOL. https://trac.ffmpeg.org/ticket/6476#comment:12

Last edited by Balling; 29th November 2021 at 16:11.
Balling is offline   Reply With Quote
Reply

Tags
bitrate, level, staxrip, tier, x265

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 21:44.


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