Hi, I have some questions about the use of pts and dts.
The aim of my program is to capture video screen. There is one capture per second. Sometimes, because the computer is overloaded, it happens that there is no capture. The pts of the next capture is correct. For example, if all is good the first three second, then no capture the next second and then all ok, the pts of the written frames are : 0 1 2 4 5 6 .... But when I want to play the video, the pts of the frames don't match the with the pts recorded ( 0 1 2 3 4 5 6...). What I would like is : 0 1 2 _ 4 5 6... So I looked in FFMPEG and found that in my case, the pts were fixed by the dts. So I tried to fix the dts during the record, but it has no effect. So I think that during recording, pts and dts are only used to order the packets in the stream. And when the files is played, we read the packets and use the frame rate to determin the dts. Is it right ? But in this case, what are pts and dts for ? I record AVI files with CODEC_ID_MPEG4. Nicolas Krieger _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
