[x264-devel] noobie encoding questions?

Jason Garrett-Glaser darkshikari at gmail.com
Tue Mar 16 18:41:48 CET 2010


> MPlayer will play the file, but I don't understand how the time coding stuff
> works.  I have found that if I specify
> x264_params_t.i_timebase_num/i_timebase_den = 1/15, I get 30fps playback in
> MPlayer.  But, the values I put into x264_picture_t.i_pts seem to be
> completely ignored.  I would have thought that some interaction between
> timebase and pts would specify when the frame should be displayed.  Our app
> runs at a variable FPS, and when the movie assumes a constant FPS the timing
> gets messed up.

For PTS to work, you need to place the H.264 video inside of a
container.  Raw H.264 video does not have timestamps.

Dark Shikari


More information about the x264-devel mailing list