[vlc-devel] VOD streaming on m3u file

Arieh Skliarouk skliarieh at gmail.com
Mon Sep 24 17:26:20 CEST 2007


Hi,

(this message is different from one I posted several days ago about
segmentation fault of vlc 0.8.6c in the same scenario).

I have compiled vlc-trunk that I have checked out at 20070922 (yesterday).

Attempt to stream playlist (m3u) as VOD from vlc to vlc does not work, as
vlc client produces strange error (see below). Here are the steps that I
undertook:

1) Start vlc in daemon mode
vlc --ttl 12 -vvv --color -I telnet --telnet-password videolan --rtsp-host
0.0.0.0:5554

2) Create file "b.m3u" in the same directory where vlc in step 1 was started
from:
music1.mp3
music2.mp3

3) Made sure that files music1.mp3 and music2.mp3 exists in the same
directory as b.m3u

4) Set up VOD streaming of the b.m3u playlist:
telnet 0 4212
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
Password:
Welcome, Master
> new Test vod enabled
> setup Test input a.m3u
> logout

5) Observe output of the vlc server from start of step 4:

[00000296] main interface debug: accepted socket 5 (from socket 4)
[00000299] main private debug: looking for vod server module: 1 candidate
[00000299] vod_rtsp private debug: allowing up to 0 connections
[00000299] main private: creating httpd
[00000299] main private debug: net: listening to  port 554
[00000302] main http server debug: thread 3012856720 (httpd host thread)
created at priority 0 (network/httpd.c:1089)
[00000299] main private debug: thread 3004464016 (rtsp vod thread) created
at priority 0 (rtsp.c:298)
[00000299] main private debug: using vod server module "vod_rtsp"
[00000303] [Media: Test] main input debug: waiting for thread completion
[00000304] [Media: Test] main stream output debug: stream=`description'
[00000305] [Media: Test] main private debug: looking for sout stream module:
1 candidate
[00000303] [Media: Test] main input debug: thread 2996071312 (input) created
at priority 0 (input/input.c:329)
[00000305] [Media: Test] main private debug: using sout stream module
"stream_out_description"
[00000303] [Media: Test] main input debug: `b.m3u' gives access `' demux `'
path `b.m3u'
[00000303] [Media: Test] main input debug: creating demux: access=''
demux='' path='b.m3u'
[00000307] [Media: Test] main demuxer debug: looking for access_demux
module: 1 candidate
[00000303] [Media: Test] main input debug: creating access '' path='b.m3u'
[00000309] [Media: Test] main access debug: looking for access2 module: 5
candidates
[00000309] [Media: Test] vcd access debug: trying .cue file: b.cue
[00000309] [Media: Test] vcd access debug: could not find .cue file
[00000309] [Media: Test] access_directory access debug: opening directory
`b.m3u'
[00000309] [Media: Test] access_directory access debug: skipping
non-directory `b.m3u'
[00000309] [Media: Test] access_file access debug: opening file `b.m3u'
[00000309] [Media: Test] main access debug: using access2 module
"access_file"
[00000314] [Media: Test] main private debug: pre-buffering...
[00000314] [Media: Test] main private debug: received first data for our
buffer
[00000303] [Media: Test] main input debug: creating demux: access=''
demux='' path='b.m3u'
[00000315] [Media: Test] main demuxer debug: looking for demux2 module: 51
candidates
[00000315] [Media: Test] playlist demuxer debug: found valid M3U playlist
[00000315] [Media: Test] main demuxer debug: using demux2 module "playlist"
[00000303] [Media: Test] main input debug: looking for a subtitle file in
/var/tmp/vlc_rtsp/
[00000303] [Media: Test] main input debug: starting in async mode
[00000303] [Media: Test] main input debug: `b.m3u' successfully opened
[00000303] [Media: Test] main input debug: control type=1
[00000315] [Media: Test] main demuxer debug: removing module "playlist"
[00000309] [Media: Test] main access debug: removing module "access_file"
[00000303] [Media: Test] main input debug: thread 2996071312 joined
(input/input.c:466)
[00000305] main private debug: destroying chain... (name=description)
[00000305] main private debug: removing module "stream_out_description"
[00000305] main private debug: destroying chain done
[00000299] vod_rtsp private debug: created RTSP url: /Test
[00000299] vod_rtsp private debug: media has 0 declared ES

6) Start  vlc client on the same computer, with the same version of vlc
vlc rtsp://127.0.0.1/Test

7) Observe output of the vlc server during the client connect:

[00000302] main http server debug: accepted socket 5 (from socket 7)
[00000299] vod_rtsp private debug: RtspCallback query: type=7
[00000302] main http server debug: accepted socket 8 (from socket 7)

8) Observe output of the vlc client (in xterm):

VLC media player 0.9.0-svn Grishenko
[00000001] main libvlc debug: VLC media player - version 0.9.0-svn Grishenko
- (c) 1996-2007 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure
'--enable-ncurses' '--enable-skins2' '--disable-pp' '--enable-gpl'
'--enable-realrtsp' '--enable-livedotcom'
'--with-livedotcom-tree=/root/vlc/live.2007.02.20' '--with-ffmpeg-mp3lame'
'--with-ffmpeg-ogg' '--with-ffmpeg-vorbis' '--with-ffmpeg-theora'
'--enable-pvr' '--with-ffmpeg-amrnb' '--with-ffmpeg-amrwb'
[00000001] main libvlc debug: translation test: code is "C"
[00000300] live555 demuxer error: Nothing to play for
rtsp://arieh-desktop/Test
[00000306] access_directory access error: rtsp://arieh-desktop/Test: No such
file or directory
[00000306] access_file access error: cannot open file
rtsp://arieh-desktop/Test (No such file or directory)
[00000299] main input error: open of `rtsp://arieh-desktop/Test' failed:
could not create access: no suitable access2 module
[00000289] main playlist: saving Media Library to file
/home/arieh/.local/share/vlc/ml.xsp
QObject::killTimers: timers cannot be stopped from another thread

The files b.m3u references exists as well. I have tried both relative and
absolute paths in m3u file, to no avail.

rtsp VOD streaming on single mp3 file works properly.

What is the problem with VOD streaming of playlists??

Is there other way I can stream a playlist with metadata for each song?

-- 
Arieh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20070924/72120fe7/attachment.html>


More information about the vlc-devel mailing list