View Single Post
Old 13th September 2010, 21:07   #61  |  Link
MyCometG3
Registered User
 
Join Date: May 2008
Posts: 35
Quote:
Originally Posted by shroomM View Post
Is there any way to set the nal hrd parameter, withour activating BD tunings?
Currently, if you specify two vbv parameters, --nal_hrd vbv is applied implicitly.

//

Here is patch snippet, implicit setting part for libx264.c.
Code:
+    /* Modify non-gui-supported parameters */
+    if (x4->params.rc.i_vbv_buffer_size && x4->params.rc.i_vbv_max_bitrate) {
+        x4->params.i_nal_hrd = X264_NAL_HRD_VBR;
+    }
+    if (x4->params.b_interlaced) {
+        x4->params.b_pic_struct = 1;
+    }
+    if (p && p->BD_TUNE) {
+        x4->params.i_nal_hrd = X264_NAL_HRD_VBR;
+        x4->params.b_pic_struct = 1;
+        x4->params.i_bframe_pyramid  = X264_B_PYRAMID_STRICT;
+        x4->params.i_slice_count = 4;
+        x4->params.i_open_gop = x4->params.i_open_gop ? X264_OPEN_GOP_BLURAY : X264_OPEN_GOP_NONE;
+    }
MyCometG3 is offline   Reply With Quote