<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-13 17:33 GMT+11:00 Daniel Tisch <span dir="ltr"><<a href="mailto:tisch.daniel@gmail.com" target="_blank">tisch.daniel@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>You need to use "<div class="gmail_default" style="font-family:georgia,serif;display:inline">​​</div>b_vfr_input", "i_timebase_num" and "<div class="gmail_default" style="font-family:georgia,serif;display:inline">​​</div>i_timebase_den" in x264_param_t when you setup the encoder, and use "i_pts" in x264_picture_t correctly for the set timebase with each frame you push to the encoder.</div></div><div class="gmail_extra"><br></div></blockquote><div><div class="gmail_default" style="font-family:georgia,serif">​Hi Daniel,</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">in x264_encoder_open->x264_validate_parameters() I can see​</div><br></div><div class="gmail_default" style="font-family:georgia,serif">​    if( !h->param.i_fps_num || !h->param.i_fps_den )</div><div class="gmail_default" style="font-family:georgia,serif">    {</div><div class="gmail_default" style="font-family:georgia,serif">        h->param.i_fps_num = 25;</div><div class="gmail_default" style="font-family:georgia,serif">        h->param.i_fps_den = 1;</div><div class="gmail_default" style="font-family:georgia,serif">    }</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">if I set <div class="gmail_default" style="display:inline">​</div><span style="font-family:arial,sans-serif">b_vfr_input to 1, and set </span><div class="gmail_default" style="display:inline">​</div><span style="font-family:arial,sans-serif">i_timebase_num+den correctly, will the default 25 fps cause output to be 25?</span></div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">​</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><div><div class="gmail-h5">2017-01-13 6:12 GMT+01:00 YIRAN LI <span dir="ltr"><<a href="mailto:mrfun.china@gmail.com" target="_blank">mrfun.china@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-h5"><div dir="ltr"><div><div class="gmail-m_8870689737218031318h5"><div style="font-family:georgia,serif"><span style="font-family:arial,sans-serif">2017-01-13 15:08 GMT+11:00 YIRAN LI </span><span dir="ltr" style="font-family:arial,sans-serif"><<a href="mailto:mrfun.china@gmail.com" target="_blank">mrfun.china@gmail.com</a>></span><span style="font-family:arial,sans-serif">:</span><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:georgia,serif">Hi guys,</div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif">I'm trying to convert a sequence of video frames, first half 30 fps, second half 25 fps. Can X264 encode such frame sequence and output timestamps same as input.</div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif">I mean if the time stamps of frames sent to x264 is like:</div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif">0, 0.333, 0.666, 0,999, 1.25, 1,5, 1.75 2.0</div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif">can x264 accept them? will 8 encoded frames be output? will output frames duration still 0.333, 0.333, 0.333, 0.333 then 0.25, 0.25, 0.25, 0.25?</div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif">Thanks</div></div>
</blockquote></div><br></div></div></div><div class="gmail_extra"><div style="font-family:georgia,serif">​Hi, just to clarify that I'm not using the x264 command line tool, I'm using the API. I think I can't use force-cfr or -fps, but I also can't set timebase in this case, can I ?​</div><br></div></div>
<br></div></div>______________________________<wbr>_________________<br>
x264-devel mailing list<br>
<a href="mailto:x264-devel@videolan.org" target="_blank">x264-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x264-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/l<wbr>istinfo/x264-devel</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
x264-devel mailing list<br>
<a href="mailto:x264-devel@videolan.org">x264-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x264-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/<wbr>listinfo/x264-devel</a><br>
<br></blockquote></div><br></div></div>