Page 1 of 1

VLM saving settings

Posted: 22 May 2014 11:33
by Pumar
Hi everyone:)

I'm setting server that is supposed to playout multicasts. VLM seems perfect for this purpose however I'm struggling with one thing - it will be used by multiple users that don't want to write in command lines. vlm.http looks really nice but it doesn't save settings. If I set multiple streams it works, until restart of VLC. Is it possible for VLM to save settings?

Thank you for any help:)

Edit:
I've forgot to add: I'm using vlc on CentOs.

Re: VLM saving settings

Posted: 03 Jun 2014 09:27
by Pumar
Anyone?
Maybe if automatic saving settings is not possible, I could do some kind of button that would manually save settings. However still loading settings after restart should be automatic.

Re: VLM saving settings

Posted: 05 Jun 2014 14:20
by Jean-Baptiste Kempf
You can export the vlm files.

Re: VLM saving settings

Posted: 05 Jun 2014 16:12
by Pumar
Unfortunately when I try to manually export it I get this error:

Error loading /vlm_export.html

[string "/usr/share/vlc/lua/http/vlm_export.html"]:8: attempt to index field 'vlm' (a function value)

Re: VLM saving settings

Posted: 12 Jun 2014 09:39
by Pumar
I've made a little script that connects by telnet and save settings, maybe someone can use it in the future (as I've just realized that vlc doesn't support KLV...).
It also adds "control broadcastname play" to the end of file so it will automatically play after reboot.

Code: Select all

#! /home/user NOW=$(date +" %M:%H %d-%m-%y") mv "/home/user/Settings/vlm.vlm" "/home/user/Settings/vlm.vlm$NOW" { sleep 1s echo admin sleep 2s echo save /home/user/vlm.vlm sleep 2s echo quit } | telnet localhost 4212 sed -n 's/new \(.*\) broadcast enabled loop/\1/p' /home/user/vlm.vlm > /home/user/temp.temp while read line; do echo control $line play >> /home/user/vlm.vlm done < /home/user/temp.temp rm /home/user/temp.temp mv /home/user/vlm.vlm "/home/user/Settings/vlm.vlm"