[Libav-user] Duration of packet media content
stefano.sabatini-lala at poste.it
Wed Jul 20 01:25:52 CEST 2011
On date Tuesday 2011-07-19 16:02:35 -0700, Argo Vela encoded:
> 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!
More information about the Libav-user