[x264-devel] Re: Problems with PTS and b frames

Bill May wmay at cisco.com
Wed Dec 21 19:25:43 CET 2005


Hi, again,

A couple of days ago, I asked the below, in reference to the amount to add
to the output.i_pts to get the correct PTS.

Bill May wrote:
> Is there a way to get max_reorder_buffer_size programmatically ?  It looks
> like p_mp4->i_init_delay is what I want - is that correct ?  It uses
> p_param->i_bframe ? (p_param->b_bframe_pyramid ? 2 : 1) : 0.

Without b frame pyramid, this works correctly.

However with a b_frame_pyramid (set by:
    m_param.i_bframe = 3;
+  m_param.i_frame_reference = 5;
+  if (m_param.i_bframe >= 2)
+    m_param.b_bframe_pyramid = 1;

the pts is not getting set correct.

pts offsets: (should be values determined by mp4creator (Laurent's code)

should be:      is:
12000         12000   (IDR-I)
30000         26400   (NIDR-P)
12000         12000   (NIDR-B)
0              1200   (NIDR-B)
6000           8400   (NIDR-B)
30000         30000   (NIDR-P)  ***
12000         12000   (NIDR-B)
0              1200   (NIDR-B)
6000           4800   (NIDR-B)
30000         30000   (NIDR-P)
12000         12000   (NIDR-B)
0              1200   (NIDR-B)
6000           4800   (NIDR-B)
30000         30000   (NIDR-P)
12000         12000   (NIDR-B)
0                 0   (NIDR-B)
6000           8400   (NIDR-B)

repeats from *** above.

Any idea ?

Thanks, and happy holidays.

Bill May

-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list