The decoder gives you the (decoded) pictures in the correct order. The PTS value _should_ reflect that order.
I would try to attach the metadata in the order as you get it from the demuxer with the pictures as you get them out of the decoder. Basically, it is exactly the same syncing you have to do with audio and video. With h264 the order is in the pts value (or as the decoded frames come out of the decoder.) _______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
