Play a playlist without stop

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
flazan

Play a playlist without stop

Postby flazan » 03 Apr 2006 20:23

Hi,

I want play a playlist whithout stop between files.
I use a VLM to configure it.

I write a command file playlist.cfg:
new test broadcast enabled
setup test input /home/flazan/FILMS/mouse_coPy.mpeg
setup test input /home/flazan/FILMS/promo.avi
setup test output #standard{access=http,mux=ts,url=192.168.20.4:1234}

Load it by VLM:

load /home/..../playlist.cfg
show
media
test
type : broadcast
enabled : yes
instances
schedule
show test
> show
test
type : broadcast
enabled : yes
loop : no
inputs
/home/flazan/FILMS/mouse_coPy.mpeg
/home/flazan/FILMS/promo.avi
output : #standard{access=http,mux=ts,url=192.168.20.4:1234}
options
instances

and I run it:
control test play

The Play stop at the first file (mouse_coPy.mpeg) and the second file does not start.

Any idea?

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 03 Apr 2006 20:27

try adding --sout-keep to your vlc command line.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

flazan

Postby flazan » 04 Apr 2006 11:22

HI dionoea,

I have tried to run vlc with --sout-keep:
vlc -I telnet --sout-keep

but the result seems to be same;
at the end of the first file stdout shows:
[00000260] main http daemon: httpd doesn't reference any host, deleting

is this the problem?

I'm using
Debian 3.1 Sarge
Vlc 0.8.2-svn Janus

So I have tried whith
CentOS 4.2 final
Vlc 0.8.4 Janus

and I have the same problem but when the first file is at the end, stdout shows:
[00000264] main http daemon: httpd doesn't reference any host, deleting
[00000337] main private: creating httpd
[00000340] main private error: cannot add this stream
[00000346] main packetizer error: cannot create packetizer output (s16l)

flazan

the problem's going to resolve

Postby flazan » 04 Apr 2006 17:32

Well, a bit more.

(I'm using Vlc 0.8.4 Janus.)

What I want:
Like a television, I want set a playlist (by VLM - socket Unix maybe) and I want stream it on http without stop.
(Do you looking for configuration? See previuos post in this thread)

The problem
If I set a playlist upon server:
1. the stream stop after first file
(error: main http daemon: httpd doesn't reference any host, deleting
bla bla ....)
2. VLC close connection between file (and the client stop play)

Answer
1. the problem is in httpd.c; try to comment this line:
1235: host->i_ref--;
(this modify is for purpose test only!)
So you force vlc to reuse httpd_Host object and the stream restart without error

2. I don't know :)
When the file finish the mux object is destroyed and the connection too even if use the --sout-keep option and you have to re-play your player for see the next file.


But I have resolved every problem (now!) with a snapshot http://nightlies.videolan.org/build/sou ... 404.tar.gz

bye

Guest

Postby Guest » 17 Jul 2006 01:15

hahaha, this is odd. i'm not flazan but i can still write this

Guest

Postby Guest » 22 Jul 2006 04:31

I was getting the same error (http stream getting closed between files), and I figured out a way to get around the problem:

Stream the files to an unused port on localhost using udp, and with another copy of videolan, input from the udp and stream that to http.

It's a rather unelegant solution, but it works. However, the http connection dies if it doesn't recieve anything for about 5 seconds (over udp), so it doesn't allow for a persistent connection through pauses.

pfoff
New Cone
New Cone
Posts: 6
Joined: 05 May 2007 23:34

No correct way?

Postby pfoff » 05 May 2007 23:37

Hey guys, is there no better solution than this workaround!?
Didn't find anything, so i tried those:
vlc -vvv --intf telnet --telnet-port 1111 --telnet-password=asdfg --volume 512 --sout-all --loop --sout-keep --sout "#duplicate{dst=std{access=udp,mux=ts,dst=:1235}}" all_list.m3u&
vlc -vvv --intf telnet --telnet-port 1112 --telnet-password=asdfg --volume 512 --sout-all --sout-keep --sout "#duplicate{dst=std{access=mmsh,mux=ts,dst=:1234}}" udp://@:1235 &

It works sometimes, but mostly the stream crashes, at the beginning of a new track(like before) I tried it on Feisty Fawn, Mac and windows, with 0.8.6 Janus.
What's wrong?


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 1 guest