Quit VLC through VLM

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

Quit VLC through VLM

Postby Interrupt » 17 Aug 2006 00:09

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?

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

Postby dionoea » 25 Aug 2006 18:03

use the undocumented "shutdown" command.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

apapucio
New Cone
New Cone
Posts: 2
Joined: 26 Sep 2006 18:19

Postby apapucio » 26 Sep 2006 18:25

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

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

Postby dionoea » 26 Sep 2006 21:58

just "shutdown" on its own. If you want to schedule the shutdown, you can try using the schedule stuff in VLM.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

apapucio
New Cone
New Cone
Posts: 2
Joined: 26 Sep 2006 18:19

Postby apapucio » 27 Sep 2006 12:42

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

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

Postby dionoea » 28 Sep 2006 21:20

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)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

geo
Cone that earned his stripes
Cone that earned his stripes
Posts: 104
Joined: 23 Dec 2003 05:48
Location: Canberra, Australia
Contact:

Postby geo » 29 Sep 2006 13:54

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!

StevieG
Blank Cone
Blank Cone
Posts: 17
Joined: 10 Nov 2005 20:51

Works in the latest version

Postby StevieG » 11 Dec 2006 22:56

FYI, I tried the shutdown command in the latest vlm telnet interface and it worked.


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 1 guest