[FFmpeg-devel] [patch] export pmt and pcr pids from mpegts demuxer

Baptiste Coudurier baptiste.coudurier
Tue Jun 8 04:21:09 CEST 2010

On 06/07/2010 07:08 PM, Michael Niedermayer wrote:
> On Sun, Jun 06, 2010 at 01:11:35PM -0400, Mike Scheutzow wrote:
>> This patch allows a libav application to obtain the pmt pid(s) and pcr
>> pid(s) values parsed by the mpegts demuxer. This is useful for applications
>> that need the output stream pids to match the input stream pids.
>> The pid values are added to AVProgram.metadata inside the AVFormatContext.
>> Example:    key="pmt_pid" value="129"
>>     key="pcr_pid" value="1064"
>> Values are base10.  This patch supports multiple programs per transport
>> stream.
>> Feedback appreciated.
> this feels like a misuse of the metadata API

Well, I don't agree, poluting AVStream with this format specific values 
seems really ugly to me.

Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org

More information about the ffmpeg-devel mailing list