[Ffmpeg-devel] avformat/mpegts reads too much data for lowbitratestreams

Kenneth Aafløy kenneth
Thu Jun 9 15:06:13 CEST 2005

torsdag 9. juni 2005, 14:23, skrev M?ns Rullg?rd:
> Kenneth Aafl?y <kenneth at aafloy.net> writes:
> > Currently the pat/pmt/sdt filters are closed after the scan. Since
> > the services in a ts stream could stop transmission at any time,
> > especially when there are multiple services in a transport, wouldn't
> > it be better to keep them open and detect if pids are added/removed?
> > Then somehow pass this to the user by some generic callback
> > interface? IIRC the mythtv devs added something like this, but I
> > belive they didn't touch the pat/pmt/sdt filters..
> That would all be nice and dandy, but libavformat currently has no
> provisions to pass such data to the application.  What could be done,
> however, is to monitor the PAT/PMT for changes to the PIDs used by the
> selected program, and adjust accordingly.  Yes, broadcasters do change
> the PIDs from time to time, and some do it quite frequently.

How do you tell the user that an AVStream is not active anymore?

Simple grouping of AVStreams could be done by a serviceid field like the id 
field already present, at least for starters.


More information about the ffmpeg-devel mailing list