[FFmpeg-devel] [RFC] allow mpegts demuxer to reload streams if service disappears
Sun Jul 15 14:27:41 CEST 2007
"elupus" <elupus at ecce.se> writes:
> I ran into and issue with current mpegts demuxer when streaming from a
> tv streaming server. when the server changes channel, the mpegts
> stream isn't torn down, but the data in it is just replaced, this
> messes up lavf as it now never finds any stream data on the tuned
> This patch attemps to handle that by checking each PAT table if
> current service isn't available anymore. If it has been removed the
> idea is to remove all added avformat streams, and re-add based on the
> PMT for the first available service (this part isn't done yet).
The spec says that the PMT PID of a program must not change, although
the PIDs of the elementary streams may change. If the program goes
away entirely, the best you can do is report end of stream for those
> I hope there isn't any huge problem with removing streams and
> readding new ones.
I'm afraid there might be some trouble doing that.
mans at mansr.com
More information about the ffmpeg-devel