[FFmpeg-devel] timestamps

Stephane List slist
Wed May 7 10:04:24 CEST 2008


I'm writing a small application that receive RTP packets containing
video and write everything in a mp4 file. I'm using
av_write_header, av_write_trailer, and av_write_frame.

Everything works fine except the speed of the movie when I play it with
mplayer for example.

Frame rate is not constant, and I've got a 90000 parameter for the video.

How to convert the timestamp received in RTP packets into a timestamp to
 fill in the struct AVPacket ?

I guess I have to use av_rescale, but with which parameters ?



More information about the ffmpeg-devel mailing list