[Ffmpeg-devel] Rescaling pts

Joel Reymont joelr1
Fri Oct 27 19:36:10 CEST 2006


I'm having trouble with presentation timestamps and wonder if someone  
could set me straight.

I'm collecting start time with parse_date("00:00:01", 1) which I take  
to be 1 second.

The duration of my stream is 22591451 and the time base is 1 / 90000  

codec_info_duration is 2351 and this is how much pkt->pts increment  
each time.

How do I rescale the number that parse_date returns into something in  
line with my duration and time base?

	Thanks, Joel


More information about the ffmpeg-devel mailing list