Page 1 of 1

Quit vlc at end of playlist

Posted: 24 Mar 2007 22:36
by FabianL
Hi,

I'd like to create a little script which will start vlc in a loop, each time changing source. For this I need vlc to quit after

Code: Select all

[00000245] main playlist: nothing to play
By default vlc will remain idle.

Code: Select all

#!/bin/bash while true do source=`curl -u [username]:[password] x.x.x.x/video.m3u` vlc \ --no-play-and-stop \ --sout '#standard{access=udp,url=224.0.0.1:1234,sap=true,name="Dreambox"}' \ $source done
Is this possible ?

Posted: 25 Mar 2007 00:07
by Jean-Baptiste Kempf
add vlc:quit to the playlist.

Posted: 25 Mar 2007 00:38
by FabianL
Thanks. That seems to do the trick.

Code: Select all

[00000245] main playlist error: refcount is 1, I have a bad feeling about this [00000245] main playlist error: we waited too long, cancelling destruction
It takes about 5 seconds before it finaly quits. Is it possible to speed things up a bit ?

Posted: 25 Mar 2007 01:42
by Jean-Baptiste Kempf
Well, in next releases...

I think that you should get a look at --sout-keep.
and at adding on object on the playlist from the command line.