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. |
|
|
Thread Tools | Search this Thread | Display Modes |
28th January 2010, 10:53 | #1 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,364
|
Question : Encoding parameters to be blu-ray compliant
I've first some questions.
Are the ref frames for blu ray more restrictive than HP@L4.1 ? What i've read needed for blu-ray : 1920x1080 : Ref max 4. 1280x720 : Ref max 6. But HP@L4.1 allow 9 ref max frame. Is blu-ray still limited to 6 ? In x264, in case of "strict" b-pyramid, ref frame is decrease of 1, it seems ? For 1920x1080, for blu-ray, max b-frame is 3. Is it still the same for 1280x720 ? Any others resolutions ? Is, only in caseof pure HP@L4.1 the max b-frame limited to ref ? What are, in 1920x1080 and 1280x720, all the progressive frame rate blu-ray compliant ? I've try to read the T-REC-H.264-200903-I!!PDF-E document. Have the MaxMvsPer2Mb parameter any link with the --merange parameter of x264 ? If not, is there any parameter related to it ? Does the fact to put the level at "4.1" and the profile to "high" in x264 assure that all the parameters are compliant with HP@L4.1 ? Edit : Does it affect the --mvrange parameter wich is at -1 [Auto] by default ? Now with the nal_hrp patch near to be commited, could it be interesting to gather all the informations necessary to produce blu-ray compliant stream in the same place ? Could it be interesting to have in x264 a --blu_ray flag, wich will alt the process if the encoding parameters and/or video are not blu-ray compliant ? (Bad ref value, video size incorrect, frame rate supported only in interlace mode, etc...). With of course, an explicit error message telling what is incorrect. Thanks in advance for the answers. Last edited by jpsdr; 28th January 2010 at 12:43. |
28th January 2010, 14:12 | #2 | Link | ||||||
BluRay Maniac
Join Date: Dec 2005
Posts: 2,419
|
Here i made table for allowed combinations, acording bd specs, which are not in public. Btw you can use Main Profile@Level 4.1 and lower with this settings.
One thing i missed that for all resolution if level 4.1 used, slices are required, not only for 1080,720 resoultions like in table. AVC on BD standrad is little more limited than AVC itself, generaly by the refs, VBV, bframes, resoulutions, GOP. Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
||||||
28th January 2010, 16:38 | #3 | Link | |
Registered User
Join Date: Dec 2002
Posts: 5,565
|
Quote:
|
|
28th January 2010, 17:16 | #4 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,364
|
@shion 3 : You're talking about --mvrange, my question is about --merange.
Thanks for your informations. Another technical question, more about x264 (maybe DS or other coder can answer it) : If i double for example 29.97fps (file_1) video to 59.97fps (file_2), by duplicating each frame, i insist : duplicate. Can i assume, that encoding the file_1 and the file_2 with the same bitrate will result in almost the same quality (like 99% identical) ? Having one frame of 2 wich is exactly the same than the previous frame ? (wich result, for this second frame, in absolutely no change, almost no bit necessary). The idea of course is to try to find a trick to encode in progressive a 29.97fps file without the necessity to increase the bitrate. |
28th January 2010, 17:23 | #5 | Link |
Registered User
Join Date: May 2006
Posts: 957
|
merange controls how far x264 searches. The limit on the length of a vector is mvrange
__________________
x264 log explained || x264 deblocking how-to preset -> tune -> user set options -> fast first pass -> profile -> level Doom10 - Of course it's better, it's one more. |
28th January 2010, 18:26 | #6 | Link | |
Registered User
Join Date: Jul 2003
Location: Italy
Posts: 1,135
|
Quote:
|
|
28th January 2010, 19:48 | #7 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,364
|
There is in HP@L4.1 spec a parameter called MaxMvsPer2Mb, with a limitation value of 16.
There is in x264 a parameter call merange with default value of 16. I want to know if these two parameters are the same thing, because in placebo mode merange is set to 32, and if they are the same paramter, it breaks in that case the compliancy with HP@L4.1... Argh... Will i have an answer wich is not out of the question... Is my english so bad ??? |
28th January 2010, 22:15 | #11 | Link | |
BluRay Maniac
Join Date: Dec 2005
Posts: 2,419
|
Quote:
Last edited by shon3i; 28th January 2010 at 22:17. |
|
28th January 2010, 23:04 | #12 | Link |
Registered User
Join Date: Sep 2007
Posts: 5,424
|
For the flagging, would the player "know" it was progressive flagged as interlaced? Or would it try to deinterlace the material ? Has anyone actually tested this on a player?
When it's authored is it packaged in a 60i stream? Isn't this 2-2 pulldown ? |
29th January 2010, 08:55 | #13 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,364
|
@shion3 : Have allready tested and verified the fact that --interlace work, in scenarist and all, but, some feature (like weigthp as you said) are not working in interlace mode. So, i'm trying to keep x264 encoding in progressive, to keep all the possible features, and try to see what is the best choice possible.
Thanks DS for your answer, i'll keep it in mind if i encouter 29.97 or 25 "true" progressive material. Last edited by jpsdr; 29th January 2010 at 08:58. |
29th January 2010, 09:07 | #14 | Link | |
x264 developer
Join Date: Sep 2005
Posts: 8,666
|
Quote:
|
|
29th January 2010, 11:41 | #15 | Link | |
Registered User
Join Date: Jul 2003
Location: Italy
Posts: 1,135
|
Quote:
Regarding the "best encoder", surely x264 is one of the best (especially regarding high quality at lower bitrates) but to be honest we don't have comparatives/demo files regarding other high rank encoder like Sony Blu-Code or CC-HDe. It is also to note that Blu-Code or CC-HDe costs a lot of money so in a quality/cost ratio, x264 is sure the best. |
|
29th January 2010, 12:59 | #16 | Link | |
Registered User
Join Date: Mar 2006
Posts: 1,049
|
Quote:
|
|
29th January 2010, 16:53 | #17 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,364
|
Another question : I've read for blu-ray that --min-keyint 2 is recommanded, but not an obligation. Can someone confirm it ?
Can --min-keyint 1 be used ? If a progressive video and encoded in progressive is tagged interlaced, can this leads to "bad" decode results ? Last edited by jpsdr; 29th January 2010 at 16:56. |
5th February 2010, 22:16 | #18 | Link | |
Rallymax
Join Date: Aug 2009
Location: Santa Clara CA
Posts: 55
|
Quote:
Also, what is the command argument for the Max Ref Frames? "-keyint"? Last edited by rallymax; 5th February 2010 at 22:20. Reason: typo |
|
5th February 2010, 22:50 | #19 | Link | ||
Registered User
Join Date: Sep 2007
Posts: 5,424
|
Quote:
Quote:
This will help with some of the command parameters http://mewiki.project357.com/wiki/X264_Settings Last edited by poisondeathray; 5th February 2010 at 23:02. |
||
15th February 2010, 17:03 | #20 | Link |
Registered User
Join Date: Sep 2008
Location: Sweden
Posts: 66
|
The encoding parameters I have been using in order to ensure Blu-ray compliance are:
For Level 4.1: --profile high --preset <any> --tune <any> --level 4.1 --bframes 3 --keyint <fps> --min-keyint 2 --vbv-bufsize 30000 --vbv-maxrate 40000 --b-pyramid none --slices 4 --aud --nal-hrd and for Level 4.0: --profile high --preset <any> --tune <any> --level 4 --bframes 3 --keyint <fps> --min-keyint 2 --vbv-bufsize 30000 --vbv-maxrate 24000 --b-pyramid none --aud --nal-hrd I thought these settings would ensure Blu-ray compliance for any choice of "preset". As far as I can tell, it does so for 1080p input. For 720p input and presets veryslow or placebo one gets ref=9 (reset from 16 by --level 4/4.1) which is higher than the allowed limit of 6. In this case one have to insert --ref 6 explicitly. Are there any means (in the command line) to set an upper limit for --ref? |
Thread Tools | Search this Thread |
Display Modes | |
|
|