Sorry for the footer - I thought it was deleted.

Currently, I am using just AVCodecContext and AVCodec to obtain my 
decoded frames.
I will elaborate my problem, maybe AVFormatContext is not the solution I 
am after.

I have two different media sources, both streaming raw MP4. The media 
servers both inform the length of each frame before it is sent which I 
use to pick out each frame (in bytes) and pass to my libav* implementation.

Media Source 1: As I am decoding I/P/B frames , the PTS for each frame 
is not always increasing, but the frames are displaying correctly. (e.g. 
PTS=24, PTS=56, PTS=10, PTS=99, PTS=31. But looking at the images, they 
are in the correct sequence. So if I sort the frames according to the 
PTS, looking at the sequence of images appears to be wrong.

Media Source 2: As I am decoding I/P/B frames, for each frame I receive, 
the PTS is jumbled as above, but so is the appearance of the frames. If 
I sort the frames in order of PTS then the perceived sequence is correct.

If you could possibly clear up why that may be, I would very much 
appreciate it.

Thanks, Mark.



_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to