VLM - stream multiple files in one channel

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
michalf
New Cone
New Cone
Posts: 7
Joined: 21 Feb 2012 10:37

VLM - stream multiple files in one channel

Postby michalf » 21 Feb 2012 11:02

Hello, I am new with VLC and I have such problem:
I want to stream multiple files in one broadcast channel using VLM. When playing first wideo ends, it goes to the second. After second finishes first starts playing again. I did it using VLC:
vlc file1.mov file2.mov --sout "#gather:rtp{dst=224.1.1.1,port=5004,mux=ts}" --sout-keep --loop

But I must do this by VLM. I try to do this that way:
new channel1 broadcast enabled loop
setup channel1 input file1.mov
setup channel1 input file2.mov
setup channel1 option sout-keep
setup channel1 output #gather:rtp{dst=224.1.1.6,port=5004,mux=ts}
setup channel1 option file-caching=300
control channel1 play

But only first file is played (in a loop). Second is never played. How to change it?
Thanks in advance for help.
michalf

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: VLM - stream multiple files in one channel

Postby Sébastien Escudier » 21 Feb 2012 11:15

Works fine here.
Did you try vlc 2.0 ?

michalf
New Cone
New Cone
Posts: 7
Joined: 21 Feb 2012 10:37

Re: VLM - stream multiple files in one channel

Postby michalf » 21 Feb 2012 12:11

Yes I try VLC 2.0. I also tried older versions. You use exactly the same configuration of VLM as I did?

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: VLM - stream multiple files in one channel

Postby Sébastien Escudier » 21 Feb 2012 13:55

yes, I tried the same commands and it works fine, the second file is played after the first one

michalf
New Cone
New Cone
Posts: 7
Joined: 21 Feb 2012 10:37

Re: VLM - stream multiple files in one channel

Postby michalf » 21 Feb 2012 14:20

Thanks for the reply. How do you lunch VLM? I just Import config.vlm in VLM configurator. Do you use command line to lunch VLM? If so please write wich commands and options you use.

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: VLM - stream multiple files in one channel

Postby Sébastien Escudier » 21 Feb 2012 14:22

No, I entered the commands in telnet

michalf
New Cone
New Cone
Posts: 7
Joined: 21 Feb 2012 10:37

Re: VLM - stream multiple files in one channel

Postby michalf » 21 Feb 2012 14:46

Thanks! Now I must learn how to use telnet to manage VLM :)

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: VLM - stream multiple files in one channel

Postby Sébastien Escudier » 21 Feb 2012 15:40

I don't think it will make a difference.
To use telnet launch vlc with --extraintf
and connect to vlc with : telnet localhost 4212
the password is admin
the you can type vlm commands

michalf
New Cone
New Cone
Posts: 7
Joined: 21 Feb 2012 10:37

Re: VLM - stream multiple files in one channel

Postby michalf » 21 Feb 2012 15:59

Thanks for help. I try to type these commands in telnet interface, but when I type control channel1 play nothing happens...
Moreover, when I type save 123.conf and then load the same configuration by command load 123.conf I have an error:
load: Error while loading file
Do you have any ideas why transmission doesn't start and why I cannot download configuration from file?

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: VLM - stream multiple files in one channel

Postby Sébastien Escudier » 21 Feb 2012 16:00

No, it should work.
Look at the logs.

michalf
New Cone
New Cone
Posts: 7
Joined: 21 Feb 2012 10:37

Re: VLM - stream multiple files in one channel

Postby michalf » 22 Feb 2012 10:33

Ok it works from telnet. This is a problem with importing .vlm files in VLM configuration menu. Thanks for help.

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: VLM - stream multiple files in one channel

Postby Sébastien Escudier » 22 Feb 2012 10:49

It works the same way in a vlm file than telnet. I just tested with :
--vlm-conf=test.vlm

And the same commands.
It loop correctly on the two files

michalf
New Cone
New Cone
Posts: 7
Joined: 21 Feb 2012 10:37

Re: VLM - stream multiple files in one channel

Postby michalf » 28 Feb 2012 08:31

I mean by GUI interface, when you use Import option in VLM configurator it doesn't work corectly.
On the other hand, how to stop playing when started by command:
vlc - I telnet --vlm-conf conf.vlm
Is there any command to stop playing or I have to kill vlc process?

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: VLM - stream multiple files in one channel

Postby Sébastien Escudier » 28 Feb 2012 08:40

It doesn't work in the GUI, you're right, I will have a look.

If you load the file in command line, you can log in with telnet and stop the stream with
control channel1 stop

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: VLM - stream multiple files in one channel

Postby Sébastien Escudier » 28 Feb 2012 09:18

This is a bug from the GUI :
http://trac.videolan.org/vlc/ticket/6268

dicr
New Cone
New Cone
Posts: 3
Joined: 01 Mar 2013 18:39

Re: VLM - stream multiple files in one channel

Postby dicr » 05 Mar 2013 01:49

Using last version of VLC from nightly bind.
Having the same problem, launching with -vlm-conf and using rtmp as input sources.
First element in is broken (dead) stream and I believed that vlm will switch to next one from the list,
but it trying to play bad element in loop.

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: VLM - stream multiple files in one channel

Postby Sébastien Escudier » 05 Mar 2013 11:25

Yes, this bug still exists in the last version.
You must load it from command line


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 16 guests