Page 1 of 1

Stop an old stream, start a new one, and the client just continues?

Posted: 18 Jul 2019 07:18
by frannie
Let's say I'm streaming with VLC's help from my desktop, something like this:

Code: Select all

vlc -I dummy --quiet oldPlaylist.m3u --sout-all --sout-keep --sout='#standard{mux=ps,dst=192.168.1.111:8888,access=http}'
And now I want to to stop this stream and start a new one (the same command line, just with the newPlaylist.m3u instead). Is it possible somehow that the client will automatically pick up the new stream (after some pause, probably) and just continue? I mean, may be there are some specific command line options for the "server" to make such transition possible? Like, may be providing the same name for both old and new streams? Or any other hints?

Or is it impossible in principle?

Re: Stop an old stream, start a new one, and the client just continues?

Posted: 18 Jul 2019 14:10
by unidan
Hi, either you have a proxy in between that would do that for you (which is quite difficult actually), or you use an interface module like rc/oldrc/http to clean up the playlist and open the new playlist file

Re: Stop an old stream, start a new one, and the client just continues?

Posted: 18 Jul 2019 17:30
by frannie
or you use an interface module like rc/oldrc/http to clean up the playlist and open the new playlist file
Once again thanks for your help and interest! Any hint on how it can be done may be? :)

Re: Stop an old stream, start a new one, and the client just continues?

Posted: 18 Jul 2019 17:48
by unidan
Hi, you're welcome ;)

Code: Select all

vlc -I rc --quiet oldPlaylist.m3u --sout-all --sout-keep --sout='#standard{mux=ps,dst=192.168.1.111:8888,access=http}'
Replace rc with oldrc/http depending on what you want. I can provide more details if you tell me what use case you want

Re: Stop an old stream, start a new one, and the client just continues?

Posted: 18 Jul 2019 20:26
by frannie
WOW!

I literally didn't know a thing about this control center. And it's so handy :). Thanks a lot.

Two questions, though: the usual hotkeys, like Left and Right, or Ctrl-a and Ctrl-e don't seem to work (the shell prints out the escape sequences instead). Is it possible to fix that?

And also the tab-completion, is it possible to make Tab to complete paths, for example? Or commands? I noticed something about autocompletion in the description of "vlm" but I'm not quite sure how to use it (and unfortunately my googling wasn't very successful, too :))

Re: Stop an old stream, start a new one, and the client just continues?

Posted: 18 Jul 2019 20:54
by unidan
Two questions, though: the usual hotkeys, like Left and Right, or Ctrl-a and Ctrl-e don't seem to work (the shell prints out the escape sequences instead). Is it possible to fix that?
I don't think so for rc, but it might work with ncurses which has full access to the key events. (help is given with h)

Re: Stop an old stream, start a new one, and the client just continues?

Posted: 18 Jul 2019 21:12
by frannie
It seems that no but thanks once again :) After all, it's not that important.