Quit vlc at end of playlist

*nix specific usage questions
FabianL
New Cone
New Cone
Posts: 4
Joined: 24 Mar 2007 22:27

Quit vlc at end of playlist

Postby FabianL » 24 Mar 2007 22:36

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 ?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Postby Jean-Baptiste Kempf » 25 Mar 2007 00:07

add vlc:quit to the playlist.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

FabianL
New Cone
New Cone
Posts: 4
Joined: 24 Mar 2007 22:27

Postby FabianL » 25 Mar 2007 00:38

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 ?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Postby Jean-Baptiste Kempf » 25 Mar 2007 01:42

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.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 15 guests