<div dir="ltr"><div>You need to use "b_vfr_input", "i_timebase_num" and "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 class="gmail_quote">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div class="h5"><div class="gmail_default" 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:0 0 0 .8ex;border-left:1px #ccc solid;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 class="gmail_default" 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>______________________________<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>