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 > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 3rd January 2016, 11:03   #1  |  Link
ACrowley
Registered User
 
Join Date: Apr 2006
Posts: 1,008
x264 with --bluray-compat Ref Frames

Hi

i made a few Encodes with x264 and --bluray-compat Setting.
I know it overrides the X264 Settings to follow Bluray Specs.

I usally set Ref Frames to --ref 4 for Level 4.1 Compliant 1920x1080 encodes but x264 outputs always 3 with Bluray Compatible ?


Simple x264 cmd :
--level 4.1 --bluray-compat --preset veryslow --open-gop --ref 4 --slices 4 --vbv-bufsize 30000 --vbv-maxrate 40000

I hope somebody can clafiry this x264 behaviour

Greetings
ACrowley is offline   Reply With Quote
Old 3rd January 2016, 12:49   #2  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,373
If i remember properly, there is something about the ref frame reduced by 1 (or something similar) when pyramid is enabled, which is the default setting. BTW, if bluray-compat doesn't change the pyramid setting (i don't remember if it does), it should pe put on "strict".
jpsdr is offline   Reply With Quote
Old 3rd January 2016, 14:39   #3  |  Link
ACrowley
Registered User
 
Join Date: Apr 2006
Posts: 1,008
Thanks !

I found it :


B-Pyramid "Normal" = not reducing Ref Frames
B-Pyramid "Strict" = 1 reduced Ref Frame ,

--bluray-compat overrides to Strict

Last edited by ACrowley; 3rd January 2016 at 14:51.
ACrowley is offline   Reply With Quote
Old 13th January 2016, 17:52   #4  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,893
However, doesn't the Blu-ray spec require Strict?
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 13th January 2016, 19:33   #5  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
BluRay only allows "strict" or no b-pyramid, but like ACrowley said: --bluray-compat will (silently) enforce that.
sneaker_ger is offline   Reply With Quote
Old 15th January 2016, 19:12   #6  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,893
The whole definition of "number of reference frames" is a little too ambiguous . I believe there are still actually 4 reference frames max in the decoded picture buffer with BD, but one is a "different" kind from the x264 perspective.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 5th March 2024, 16:33   #7  |  Link
wyup
Registered User
 
Join Date: Aug 2020
Location: Bilbao, Spain
Posts: 33
Apart from vbv-maxrate=40000 and vbv-bufsize=30000, what is the max overall bitrate supported for a blu-ray?
It is an additional setting of x264: -B, --bitrate <integer> on Ratecontrol.
wyup is offline   Reply With Quote
Old 6th March 2024, 05:04   #8  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,893
Quote:
Originally Posted by wyup View Post
Apart from vbv-maxrate=40000 and vbv-bufsize=30000, what is the max overall bitrate supported for a blu-ray?
It is an additional setting of x264: -B, --bitrate <integer> on Ratecontrol.
The maxrate and bufsize define the max overall bitrate. The --bitrate parameter defines the mean bitrate, and --crf is often used instead.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 11th April 2024, 09:23   #9  |  Link
blob2500
Registered User
 
Join Date: Sep 2007
Location: Italy
Posts: 33
Quote:
Originally Posted by ACrowley View Post
Thanks !

I found it :


B-Pyramid "Normal" = not reducing Ref Frames
B-Pyramid "Strict" = 1 reduced Ref Frame ,

--bluray-compat overrides to Strict
Some time ago I had done some tests to better understand what was meant by "strict".

IbBbPbBbP....

With this option active (B-pyramid "Strict"), it turned out to me that B-frames cannot refer to other B-frames, but only to P-Frames (and I). And of course, much less P-Frames cannot refer to B-Frames, but I and P only. But the "strict" option alone does not limit the number of frames to refer to 1.


The hierarchy is rigorous: I --> P --> B --> b

with "normal": I --> P/B <--> B --> b

Last edited by blob2500; 11th April 2024 at 09:40.
blob2500 is offline   Reply With Quote
Old 11th April 2024, 17:41   #10  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,373
It means it reduces the ref frame value of 1. If you've set 4 ref frame, it's reduced to 3.
__________________
My github.
jpsdr 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 15:52.


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