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

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
frannie
Blank Cone
Blank Cone
Posts: 18
Joined: 17 Jul 2019 08:37

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

Postby frannie » 18 Jul 2019 07:18

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?

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

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

Postby unidan » 18 Jul 2019 14:10

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

frannie
Blank Cone
Blank Cone
Posts: 18
Joined: 17 Jul 2019 08:37

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

Postby frannie » 18 Jul 2019 17:30

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? :)

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

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

Postby unidan » 18 Jul 2019 17:48

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

frannie
Blank Cone
Blank Cone
Posts: 18
Joined: 17 Jul 2019 08:37

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

Postby frannie » 18 Jul 2019 20:26

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 :))

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

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

Postby unidan » 18 Jul 2019 20:54

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)

frannie
Blank Cone
Blank Cone
Posts: 18
Joined: 17 Jul 2019 08:37

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

Postby frannie » 18 Jul 2019 21:12

It seems that no but thanks once again :) After all, it's not that important.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 26 guests