Page 1 of 1

Quit VLC through VLM

Posted: 17 Aug 2006 00:09
by Interrupt
I'm running VLC on SUSE through the command line, and I like to quit VLC after the file I'm running is done. I've been able to use vlc:quit in the playlist to close out of VLC, so I thought that I'd be able to use it in a VLM schedule to quit when it was done. I'm getting an error though when I try to do that:

Code: Select all

dummy demuxer error: we are not attached to a playlist
Does anyone know another way to quit out of VLC through a VLM schedule?

Posted: 25 Aug 2006 18:03
by dionoea
use the undocumented "shutdown" command.

Posted: 26 Sep 2006 18:25
by apapucio
Hi, could someone tell me the correct syntax to use shutdown command in a .vlm file.

I've tried so many...

I'd need something like this:

Code: Select all

new video1 broadcast enabled setup video1 input "udp://@239.192.1.2:5000" setup video1 output #std{access=file,mux=ts,dst=e:/videosvlc/segmento1.mpg} new vid1 schedule date 2006/09/26-15:52:26 enabled setup vid1 append control video1 play new vid2 schedule date 2006/09/26-15:53:29 enabled setup vid2 append shutdown
thanks

Posted: 26 Sep 2006 21:58
by dionoea
just "shutdown" on its own. If you want to schedule the shutdown, you can try using the schedule stuff in VLM.

Posted: 27 Sep 2006 12:42
by apapucio
Salut Antoine,
I'm sorry but I'm afraid i don't get you.

Do you mean, for example?

vlc --vlm-conf f.vlm -I dummy

Code: Select all

#f.vlm shutdown
This does not work to me.

I'm working on a daemon that schedule VLCs to record several MPEG2 TS streams in a multicast TV LAN.

I have tried http interface to close it and it works fine. But it is quite a mess with many vlcs. I have tried also to kill process, it's Ok. But I think it is better just schedule the shutdown at a fix time using vlm files.

Please could you post a dummy post for me using schedule stuff?

I have tried:

Code: Select all

new vid2 schedule date 2006/09/26-15:53:29 enabled setup vid2 append shutdown
or

Code: Select all

new vid2 schedule date 2006/09/26-15:53:29 enabled setup vid2 append control shutdown
or

Code: Select all

new vid2 schedule date 2006/09/26-15:53:29 enabled setup vid2 shutdown
does not work!
-----------------------
Ubuntu and vlc 0.8.4

Posted: 28 Sep 2006 21:20
by dionoea

Code: Select all

21:18 dionoea@cellerier ~% telnet localhost 4212 Trying 127.0.0.1... Connected to localhost.localdomain. Escape character is '^]'. Password: Welcome, Master > shutdown Connection closed by foreign host. zsh: exit 1 telnet localhost 4212
and on the server:

Code: Select all

21:17 dionoea@cellerier ~/videolan/vlc-svn-clean% ./vlc -I telnet --telnet-host 0.0.0.0:4212 VLC media player 0.9.0-svn Grishenko [00000316] main interface: creating VLM [00000316] telnet interface: using the VLM interface plugin... [00000316] telnet interface: telnet interface started on interface 0.0.0.0 4212 [00000316] telnet interface error: shutdown requested [00000290] main playlist: saving Media Library to file /home/dionoea/.vlc/ml.xsp 21:18 dionoea@cellerier ~/videolan/vlc-svn-clean%
But maybe that doesn't work in a conf file. (Since it doesn't seem to be a VLM specific command)

Posted: 29 Sep 2006 13:54
by geo
If shutdown were available as a VLM command it would be much easier to build systems that loop on a changing folder of items. Making it work with the scheduler would be even better!

Works in the latest version

Posted: 11 Dec 2006 22:56
by StevieG
FYI, I tried the shutdown command in the latest vlm telnet interface and it worked.