HEVC Encoder Level?

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
Browny399
Posts: 3
Joined: Sat Jun 08, 2019 2:51 pm

HEVC Encoder Level?

Post by Browny399 »

How do I get the option to modify the Encoder Level of x265? I can see this option in x264 but cannot in x265. I always get Main10 L2 video results when I convert to x265 video. I want to change it to High Profile and 4.1 Level, How do I do this?
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: HEVC Encoder Level?

Post by Woodstock »

To do what you want, you have to use x264, because the profiles in h265 are different than they are in h264.

Handbrake lists the profiles that are available for the encoder you chose.
Browny399
Posts: 3
Joined: Sat Jun 08, 2019 2:51 pm

Re: HEVC Encoder Level?

Post by Browny399 »

Woodstock wrote: Sat Jun 08, 2019 5:33 pm To do what you want, you have to use x264, because the profiles in h265 are different than they are in h264.

Handbrake lists the profiles that are available for the encoder you chose.
Then how this guy did that using x265 with his encoded movie I downloaded from torrent?

Image

https://i.imgur.com/hbR8jwL.jpg
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: HEVC Encoder Level?

Post by mduell »

An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: HEVC Encoder Level?

Post by Woodstock »

The "Level" is strictly dependent upon the bit rate, and is automatically determined by the encoder. There are HEVC-specific charts available that show the limits imposed by each level.

If you want "level 4.1", you need to set encoding parameters that exceed 66,846,720 samples per second, but less than 133,693,440 s/s. There is no use for forcing the file to "4.1" if the bit rate isn't that high.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: HEVC Encoder Level?

Post by mduell »

Woodstock wrote: Sat Jun 08, 2019 7:57 pmThe "Level" is strictly dependent upon the bit rate
Nope.
Deleted User 11865

Re: HEVC Encoder Level?

Post by Deleted User 11865 »

And x265 can let you set a specific level, but IIRC they're not listed in our GUI drop-down.
Browny399
Posts: 3
Joined: Sat Jun 08, 2019 2:51 pm

Re: HEVC Encoder Level?

Post by Browny399 »

Woodstock wrote: Sat Jun 08, 2019 7:57 pm The "Level" is strictly dependent upon the bit rate, and is automatically determined by the encoder. There are HEVC-specific charts available that show the limits imposed by each level.

If you want "level 4.1", you need to set encoding parameters that exceed 66,846,720 samples per second, but less than 133,693,440 s/s. There is no use for forcing the file to "4.1" if the bit rate isn't that high.
I am trying to re-encode a 9000 Kb/s 1080p H264 movie to a 3000 Kb/s 1080p HEVC output using "Average Bitrate" option
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: HEVC Encoder Level?

Post by mduell »

An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: HEVC Encoder Level?

Post by JohnAStebbins »

It appears that support for setting encoder levels was added to x265 a few months *after* initial support for x265 was added to HandBrake and nobody ever caught it and implemented x265 level support in HandBrake. You can manually add it to the "More Settings" box on the video tab, e.g. "level-idc=5.0", but the options in the level dropdown are currently ignored.

I just created a PR to fix this. When It's reviewed, tested, and committed, support will be available in the nightly builds.
https://github.com/HandBrake/HandBrake/pull/2142
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: HEVC Encoder Level?

Post by mduell »

Even if you can't set it, I'm curious to see logs why OP's content would be L2 when he wants L4.1. Seems like auto should DTRT.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: HEVC Encoder Level?

Post by JohnAStebbins »

mduell wrote: Mon Jun 10, 2019 7:24 pm Even if you can't set it, I'm curious to see logs why OP's content would be L2 when he wants L4.1. Seems like auto should DTRT.
When the level is unspecified, x265 sets the level to the appropriate value given the other provided settings.

When the level is specified, it checks if the other provided settings are valid for the requested level and errors out if they are not. Setting the level to a higher value than is required by the other settings is allowed, but has no value.

If the encoder is currently setting the level to 2, then that is all that is needed given the settings that were requested and setting the level higher does nothing other than making the video unplayable on players that use the level to determine if the video is within the players capabilities. i.e. setting the level does not cause the encoder to use more advanced settings.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: HEVC Encoder Level?

Post by mduell »

Which makes OP's request, and comparison to a 1080p encode, all the more confusing if true.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: HEVC Encoder Level?

Post by JohnAStebbins »

mduell wrote: Mon Jun 10, 2019 9:00 pm Which makes OP's request, and comparison to a 1080p encode, all the more confusing if true.
Ah, right, if the output is 1080p, the output level should be at least 4.
Post Reply