[FFmpeg-devel] How to handle radio streams serving chained files?

Carl Eugen Hoyos cehoyos
Thu Jan 13 13:07:01 CET 2011


Reimar D?ffinger <Reimar.Doeffinger <at> gmx.de> writes:

> On Wed, Jan 12, 2011 at 04:15:46PM -0500, Ronald S. Bultje wrote:
> > How should I support this in lavf so ffplay.c supports this?
> > AvProgram? How do I signal a "switch" from
> > "stream0=video,stream1=audio" to "stream2=audio" (since stream1/0
> > ended, so nothing new comes in anymore) to the application, so ffplay
> > just concats it and it plays as if we natively supported this kind of
> > idiocy?
> 
> Actually, I was told you can do the same with MPEG

In Vienna, if you receive ORF 2 via DVB-T, ~ once a day the program "splits" to
a Vienna-version and a version for the surrounding area.
At that moment, the AC-3 streams just ends (and disappears from PMT/PAT) to
restart later when the program of the surrounding area ends.
This also means that for one program ID (the one for the surrounding area),
video and audio streams are the "Vienna" ones for most of the day, but change
when the local program is transmitted.

Iirc, MPlayer hangs when AC-3 ends (but I haven't tested for a long time).

Carl Eugen




More information about the ffmpeg-devel mailing list