Hi All, I'm trying to make my app work properly with AVCHD streams.
Some things are confusing me with the results I get:- 1. video stream ->start_time is 72149, yet when i decode frames there is no frame with that PTS in the stream. 2. Furthermore, successive frames always increment PTS by 3600 (this seems quite normal), but the PTS of the frames always ends ~43 - eg 95543, 99143, 102743 etc 3. The PTS of the first frame that is decoded with frame finished == 1 has PTS 95543. Where does the start_time come from, and why does it seem to be wrong? My app needs to grab frames that occur at specific times in the video. My logic (which has worked for all video formats i've used up to now) is to calculate a "frame number" that i require, multuply by the duration per frame in PTS units, and add to the start time, then look for this PTS in the stream. Because of this start time oddity this logic is not working. If start_time is wrong, must I instead just save the PTS of the first decoded frame and use that? thanks Jon _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
