Log in

View Full Version : compliant bluray profile?


k-c-ksum
28th February 2010, 01:04
been trying out megui with a custom x264 profile.

reading various profile usages and trying to gert my head around them :)

currently running this through
program --profile high --level 4.1 --preset slower --pass 2 --bitrate 14100 --stats ".stats" --thread-input --deblock -1:-1
--keyint 24 --min-keyint 1 --slices 4 --ipratio 1.1 --pbratio 1.1 --vbv-bufsize 30000 --vbv-maxrate 28000 --psy-rd 1.0:0.15
--no-fast-pskip --psnr --mvrange 511 --aud --output "output" "input"


opted to omit the --nal hrd command as reading in the bdrb thread is was causing some issues with Panasonic players. Apart from that is there anything i should avoid?

output is intended for bd25
thanx

mp3dom
28th February 2010, 01:16
HRD is mandatory in bluray, also if you're using the latest builds, b-pyramid is on by default at 'normal' value which is BD incompatible. 'Slower' preset put 8 reference frames which are out of BD specs. At the moment your encode is not valid for BD.

sneaker_ger
28th February 2010, 01:30
'Slower' preset put 8 reference frames which are out of BD specs.

But the "level 4.1" will lower the number of ref frames. For 1080p this is enough. For 720p he'll have to manually lower the number. (According to this (https://forum.doom9.org/showpost.php?p=1368828&postcount=2))

mp3dom
28th February 2010, 01:44
x264's "level" parameter only write in the AVC bitstream that it's "level 4.1" but doesn't made any compliance check nor limit any other parameter. By default x264 use 3 refs but that value is overridden by "slower" preset (which put 8 refs). 720p and 480p can use more refs according to specs but I would say that CineVision doesn't allow more than 4 refs (for every possible resoluton and every profile).

J_Darnley
28th February 2010, 01:51
x264's "level" parameter only write in the AVC bitstream that it's "level 4.1" but doesn't made any compliance check nor limit any other parameter.

Where have you been? Automatic ref reduction was added at the same time as presets.

sneaker_ger
28th February 2010, 01:54
Not true. "--level x.y" will overwrite the number of ref frames of presets and tunings. Only setting "--ref z" will overrule "--level x.y". I don't know about CineVision but shon3i's infos about compliant blu-ray settings have always seemed to be correct.

/edit: J_Darnley was faster...

mp3dom
28th February 2010, 02:04
Read somewhere in a wiki (probably not up to date) and never verified/re-verified :)
Regarding number of refs, i'm not saying that shon3i's settings are wrong, i'm only saying that CineVision allows a max of 4 refs.

k-c-ksum
28th February 2010, 12:56
HRD is mandatory in bluray, also if you're using the latest builds, b-pyramid is on by default at 'normal' value which is BD incompatible. 'Slower' preset put 8 reference frames which are out of BD specs. At the moment your encode is not valid for BD.

thought you could only use mb-tree or b-pyramid but not both together

There is a guy in the bdrebuilder thread that mentions his panasonic player wont play bdrb output that uses nal-hrd. Jobbs has removed the nal-hrd command for the time being until its fixed

J_Darnley
28th February 2010, 13:12
thought you could only use mb-tree or b-pyramid but not both together

Like I said before, "Where have you been?" You can now, it was added in December.

k-c-ksum
28th February 2010, 13:22
Like I said before, "Where have you been?" You can now, it was added in December.

cool

heres were im at now. Reluctant to use nal-hrd though.

program --profile high --level 4.1 --preset slower --pass 2 --bitrate 14100 --stats ".stats" --thread-input --keyint 24 --min-keyint 1
--b-pyramid normal --ref 4 --slices 4 --ipratio 1.1 --pbratio 1.1 --vbv-bufsize 30000 --vbv-maxrate 28000 --psy-rd 1.00:0.15
--no-fast-pskip --psnr --mvrange 511 --aud --output "output" "input"

J_Darnley
28th February 2010, 13:28
> --b-pyramid normal
1) That is the default
2) Doesn't work with bluray

k-c-ksum
28th February 2010, 13:34
> --b-pyramid normal
1) That is the default
2) Doesn't work with bluray

in megui in slower presets p-pyramid disabled is the default

Warpman
28th February 2010, 13:45
in megui in slower presets p-pyramid disabled is the default

Wrong. make sure you use a recent megui build!

0.3.4.2 is current (development tree)

Megui: Bluray High quality quality defaults to this:
program --crf 20.0 --thread-input --profile high --level 4.1 --bframes 3 --ref 4 --slices 4 --aud --nal-hrd vbr --b-pyramid strict --keyint 24 --min-keyint 2 --vbv-bufsize 30000 --vbv-maxrate 40000 --output "output" "input"

k-c-ksum
28th February 2010, 13:53
Wrong. make sure you use a recent megui build!

0.3.4.2 is current (development tree)

Megui: Bluray High quality quality defaults to this:
program --crf 20.0 --thread-input --profile high --level 4.1 --bframes 3 --ref 4 --slices 4 --aud --nal-hrd vbr --b-pyramid strict --keyint 24 --min-keyint 2 --vbv-bufsize 30000 --vbv-maxrate 40000 --output "output" "input"

update tab reports 3.4.0 is the latest build here :(

i dont want to use crf on the main feature either

Warpman
28th February 2010, 14:01
update tab reports 3.4.0 is the latest build here :(

i dont want to use crf on the main feature either

you can change the rate control algo to your liking of cause ;)

you may want to adjust the "preset" and "tune" option as well

To change megui Update server:
Options--> settings-_>extra config--> configure servers
select development and make sure "http://megui.org/auto/" is the server in there

so it should look like this

program --preset slower --tune film --pass 2 --bitrate 700 --stats ".stats" --slow-firstpass --thread-input --profile high --level 4.1 --bframes 3 --ref 4 --slices 4 --aud --nal-hrd vbr --b-pyramid strict --keyint 24 --min-keyint 2 --vbv-bufsize 30000 --vbv-maxrate 40000 --output "output" "input"

k-c-ksum
28th February 2010, 14:47
you can change the rate control algo to your liking of cause ;)

you may want to adjust the "preset" and "tune" option as well

To change megui Update server:
Options--> settings-_>extra config--> configure servers
select development and make sure "http://megui.org/auto/" is the server in there

so it should look like this

program --preset slower --tune film --pass 2 --bitrate 700 --stats ".stats" --slow-firstpass --thread-input --profile high --level 4.1
--bframes 3 --ref 4 --slices 4 --aud --nal-hrd vbr --b-pyramid strict --keyint 24 --min-keyint 2 --vbv-bufsize 30000
--vbv-maxrate 40000 --output "output" "input"

thanks, for some reason the profiles x264 folder isnt getting updated an is remaining empty :(


have arrived at this
program --profile high --level 4.1 --preset slower --tune film --pass 2 --bitrate 14100 --stats ".stats" --slow-firstpass --thread-input
--keyint 24 --min-keyint 2 --b-pyramid strict --ref 4 --slices 4 --vbv-bufsize 30000 --vbv-maxrate 30000 --no-fast-pskip --output "output" "input"

why min keyin 2 and not 1?

prOnorama
28th February 2010, 15:53
--slow-firstpass isn't really necessary, it gives a large speed reduction for very little quality gain (only --preset placebo uses it)

Warpman
28th February 2010, 15:56
stil as mp3dom pointed out --nal-hrd vbr is mandatory for blu ray maybe --aud as well i don't as i don't have any bluray player here.

Most blu ray authoring programs will not allow you to mux a file without nal-hrd... Maybe you should try it out...

k-c-ksum
28th February 2010, 16:04
stil as mp3dom pointed out --nal-hrd vbr is mandatory for blu ray maybe --aud as well i don't as i don't have any bluray player here.

Most blu ray authoring programs will not allow you to mux a file without nal-hrd... Maybe you should try it out...

ts muxer adds a nal hrd. its a botch but still better than nothing. Jobbs removed the nal-hrd command recently as it wasnt working correctly in the x264 build used, causing some panasonic players to fail.

i'll add aud.

as i can use dgdecnv with megui im hoping to squeeze a bit more quality out of an encode while not taking to much more of a hit with encoding time. bdrb doesnt support dgdecnv :(

shon3i
28th February 2010, 17:11
ts muxer adds a nal hrd. its a botch but still better than nothingI disagree with you, because tsmuxer totaly mess up nal-hrd if VBV is not 30000/30000 IIRC, and i still don't know how someone not have issue with it, Blu-ray soecs need Type 2 HRD model IIRC Tsmuex use Type 1, i read somewhere maybe i am wrong about this. I don't even test Tsmuxer output with some verifier, so can be Tsmuxer problem, since recent versions don't owerwrite HRD data if present in stream just add SPS. I suggest you to try with Scenarist.

Regarding number of refs, i'm not saying that shon3i's settings are wrong, i'm only saying that CineVision allows a max of 4 refs. They are restrict encoder much, anyway 4 refs are just fine for high bitrate encoding. Still Mainconcept/Cinevision B-pyramid reduce number of ref's so and they are want to risk to break DBP