[MPlayer-users] Re: RTSP audio doesn't work

Roberto Togni rxt at rtogni.it
Tue Feb 20 22:20:13 CET 2007


On Tue, 20 Feb 2007 21:49:07 +0100
Paulus Esterhazy <pesterhazy at gmx.net> wrote:

> Roberto Togni schrieb:
> > On Sun, 11 Feb 2007 21:10:24 +0100
> > Paulus Esterhazy <pesterhazy at gmx.net> wrote:
> > 
> >> Revered developers, fellow users,
> >>
> >> I cannot seem to play a realaudio stream w/ mplayer. It doesn't play 
> >> directly, and doesn't dump the audio. I'm using the following command line:
> >>
> > Bug confirmed.
> > If you wait long enough you will see a picture and some "audio eof"
> > messages.
> > There are 3 streams in that file, this may be the cause of the problem.
> > I'll look into it.
> > 
> > Ciao,
> >  Roberto
> 
> Any news on this one?
> 

There are 2 problems in this stream:

- there are 3 streams (audio, video and a short text), but MPlayer can
only work with two (SETUP is done only for stream id 0 and 1, while
subscribe is done for all 3 streams; moreover the rdt code uses only
one bit for stream id). this should be fixed in the patch

- stream id 2 (the text) is very short, and when it's over it sends an
eof rdt message. MPlayer quits on this eof, even if stream 0 and 1 are
still playing. the patch attemps to quit only when stream 0 reaches
eof, but it's still buggy; the right solution is probably to quit only
when all streams got an eof. Also the rdt code was not written to
continue reading after the eof packet, and assume a lot of things that
are true only for 2 streams with some latency report packets in them
(the 9 bytes skipped). I'm rewriting most of the rdt parser, but it
will take some time.

Attached patch makes it work, but breaks other stuff (eof is still
broken, so you have to wait timeout before you get eof).

Ciao,
 Roberto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: real.c.diff
Type: text/x-patch
Size: 1638 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20070220/a504f908/attachment.bin>


More information about the MPlayer-users mailing list