[vlc-devel] Re: Problem playing some MPEG-4 audio RTSP/RTP streams
Laurent Aimar
fenrir at via.ecp.fr
Mon Feb 23 10:47:04 CET 2004
On Mon, Feb 23, 2004, Ross Finlayson wrote:
> I have recently been experimenting with the RTSP/RTP support (using our
> "LIVE.COM Streaming Media" libraries) that was recently added to
> VLC. Overall, I'm very pleased with VLC - I'm now promoting VLC as the
> leading standards-based media player (having pretty much given up on
> QuickTime Player, due to its generally poor performance and its increasing
> list of unfixed bugs).
>
> However, I did notice a problem playing some MPEG-4 audio
> ("audio/MPEG4-GENERIC") streams (which QuickTime Player plays OK). For
> example:
> rtsp://mpeg4.sunsite.utk.edu/wuot.sdp
> This plays for only 4 seconds.
> rtsp://rocky.marlboro.edu:554/test1.sdp
> This doesn't play at all.
> However, the following stream plays OK:
> rtsp://inet.orban.com/test.sdp
I have tested with rtsp://mpeg4.sunsite.utk.edu/wuot.sdp and it seems
that live.com return a weird value (or I misunterstood the meaning):
In the main loop function (Demux) I do (line 777):
tk->readSource->getNextFrame( tk->buffer, 65536,
StreamRead, tk,
StreamClose, tk );
where tk->buffer is my buffer, StreamRead and StreamClose are callbacks.
(tk->readSource is a FrameSource * from MediaSubsessionIterator->readSource)
with :
static void StreamRead( void *p_private, unsigned int i_size, struct timeval pts );
After a few seconds pts.tv_sec becomes (and stays) negative, and this break the PTS
computation and no audio samples are played.
....
pts.tv_sec=1077528378 pts.tv_usec=26051
pts.tv_sec=1077528378 pts.tv_usec=26051
pts.tv_sec=1077528378 pts.tv_usec=26051
pts.tv_sec=1077528378 pts.tv_usec=26051
pts.tv_sec=1077528378 pts.tv_usec=118930
pts.tv_sec=1077528378 pts.tv_usec=118930
pts.tv_sec=1077528378 pts.tv_usec=118930
pts.tv_sec=1077528378 pts.tv_usec=118930
pts.tv_sec=-530742096 pts.tv_usec=237329
pts.tv_sec=-530742096 pts.tv_usec=237329
pts.tv_sec=-530742096 pts.tv_usec=237329
pts.tv_sec=-530742096 pts.tv_usec=237329
pts.tv_sec=-530742096 pts.tv_usec=330208
pts.tv_sec=-530742096 pts.tv_usec=330208
.....
Any ideas ?
--
fenrir
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the vlc-devel
mailing list