[Libav-user] Duration of packet media content

Argo Vela argovela at yahoo.com
Wed Jul 20 01:02:35 CEST 2011


Hello,

As one component of analyzing a media stream, I'm curious to know
if it is possible to come up with the duration of the media content
in a packet such as might be found in MPEG2-TS.  As a concrete
example, given a muxed stream of AAC audio & H.264 video, would it
be possible to calculate a 2-tuple <PTS,duration> for each packet
in the stream?

If so, then I would have two questions:

(1) Are the libav libraries a good tool to use for such a task?
(2) Is there a template available for how to the API in such a way?

I really appreciate any guidance you might have!

AV.


More information about the Libav-user mailing list