On Thu, Jul 16, 2009 at 8:41 AM, Will Ross <[email protected]> wrote:

> I'm using libavcodec to extract individual frames from videos of various
> types. I have it working for the keyframes, but from what I've read so far,
> I need to use the pts to go from the keyframe to the frame I want. The
> problem is that the pts is set to the minimum (-9223372036854775808) value,
> as is the start_time. Is there any way to fix this? Failing that, is there a
> way to move to the proper frame without using pts?
> -Will Ross_______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>

If you're not using libavformat to demux, then for many codecs libavcodec
relies on you to set timestamps on objects.  If you don't set them, it
defaults to NO_PTS_VALUE which happens to be the number you see.

So, either set and manage timestamps yourself, or use libavformat to demux
(you'll still need to worry about the time-bases of different timestamps --
they are not directly comparable across different streams).

See the ffmpeg.c source code for some of the stuff it does to track
timestamps.

- Art

-- 
http://www.xuggle.com/
xu‧ggle (zŭ' gl) v. To freely encode, decode, and experience audio and
video.

Use Xuggle to get the power of FFmpeg in Java.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to