On Tue, Oct 13, 2009 at 3:05 PM, Bruce Wheaton <[email protected]>wrote:

> I'm getting packets back and decoding them just fine, but I'm confused now
> - aren't the time stamps in timescale units? The movie I'm testing now has a
> timescale of 2997, but the packets are coming in as 0, 1, 2, 3, not 0, 100,
> 200 etc.
>
> Is there another timescale I need to look at to decode packet times?
>
> I can't really tell if it varies, or I'm just lucky that some movies do
> have a timescale that makes sense, because some are playing.
>
> Thanks,
>
> Bruce
>
>
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>

I know I ran into problems confusing the two time_stamp values that are
present

There's:
p_format_ctx_->streams[video_stream_]->codec->time_base
and then:
p_format_ctx_->streams[video_stream_]->time_base

The latter is what I use to convert my PTS values, and it seems to work
fine.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to