[vlc-devel] Mozilla plugin and RTSP bug

Cian Cullinan cian.cullinan at gmail.com
Wed Dec 21 17:20:10 CET 2005

Hey there,
I've been running up against an issue using the plugin to play RTSP
streams, and I'm hoping someone can either point out if it's my fault,
or if not post it as a bug on Trac.

Description: when using the mozilla plugin to play back an RTSP mpeg-4
stream from either the VLM RTSP server, or Darwin Streaming Server the
browser crashes after a couple of minutes at most. I'm running Fedora
Core 4, with up to date SVN code for VLC, FFMPEG, the latest livemedia
tarball, and the faad2-20040923.tar.bz2 tarball. I see this with
firefox version 1.0.7, and mozilla 1.7.12.

To reproduce:
1) Download an mpeg-4 file for testing, E.G.:

2) Start the RTSP server:
   vlc --ttl 12 -vvv --color -I telnet --rtsp-host

3) Create a stream from the telnet interface using your mp4 file:
   new Test vod enabled
   setup Test input /usr/local/movies/test.mp4

4) Create a local file rtsp_test.html containing the following:
 <embed type="application/x-vlc-plugin"
        autoplay="no" loop="yes" fullscreen="no"
        target="rtsp://localhost:5554/Test" />
 var video1 = document.embeds[0]

5) Open the above file with mozilla:
   mozilla file:///tmp/rtsp_test.html

6) After a short while the browser should exit in the middle of the stream.

When this happens to me, the last line of the console reads:
BasicTaskScheduler::SingleStep(): select() fails: Interrupted system call

This comes from the method BasicTaskScheduler::SingleStep in
the file BasicTaskScheduler.cpp in the livemedia libraries.

Just for completeness: I've configured ffmpeg with the "--enable-pp
--enable-gpl" flags, and my method for compiling VLC is:

   XPIDL=/usr/lib/mozilla-$(rpm -q --qf %{VERSION} mozilla)/xpidl \
   ./configure --prefix=/usr \
   --enable-livedotcom --with-livedotcom-tree=/usr/local/src/livemedia/live \
   --enable-mozilla \
   --enable-ffmpeg --with-ffmpeg-tree=/usr/local/src/ffmpeg/ffmpeg/ \
   --disable-x264 \
   --enable-faad --with-faad-tree=/usr/local/src/faac/faad2-20040923/ \
   --enable-wxwidgets \
   --disable-skins2 \
   --disable-hd1000v \
   --disable-daap \

  XPIDL=/usr/lib/mozilla-$(rpm -q --qf %{VERSION} mozilla)/xpidl make

  sudo make install

 sudo sh -c "ln -sf /usr/lib/mozilla/components/vlcintf.xpt \
 /usr/lib/mozilla-$(rpm -q --qf %{VERSION} mozilla)/components/vlcintf.xpt; \
 ln -sf /usr/lib/mozilla/components/vlcintf.xpt \
 /usr/lib/firefox-$(rpm -q --qf %{VERSION} firefox)/components/vlcintf.xpt"


This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html

More information about the vlc-devel mailing list