How to exit process (RC interface) after streaming out?

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
prideaux90
New Cone
New Cone
Posts: 6
Joined: 15 Aug 2012 19:06

How to exit process (RC interface) after streaming out?

Postby prideaux90 » 28 Dec 2013 05:59

I know there is vlc://quit or --play-and-exit and these work when you are PLAYING a movie.

However, when i stream and use the RC interface, i want the RC interface (and the process) to exit / end automatically when the movie finishes playing. Any ideas how to do this please ?

Some examples of various command lines i tried.

Code: Select all

vlc.exe "path\to\my\movie.mp4" vlc://quit

Code: Select all

vlc.exe "path\to\my\movie.mp4" --play-and-exit
The above two lines will exit 100% no doubt;

BUT neither of the next two lines will exit / end the process if i am streaming.

Code: Select all

vlc.exe -v "path\to\my\movie.mp4" --play-and-exit --sout #standard{access=http,mux=ts,dst=0.0.0.0:1234} -I rc

Code: Select all

vlc.exe -v "path\to\my\movie.mp4" --sout #standard{access=http,mux=ts,dst=0.0.0.0:1234} -I rc vlc://quit

kodela
Big Cone-huna
Big Cone-huna
Posts: 632
Joined: 25 Sep 2012 19:40
VLC version: 2.2.4
Operating System: Windows 10
Location: Germany

Re: How to exit process (RC interface) after streaming out?

Postby kodela » 28 Dec 2013 08:40

If you start vlc with a batch-file, then maybe you can with this second line stop the vlc:

Code: Select all

taskkill /F /IM vlc.exe

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: How to exit process (RC interface) after streaming out?

Postby Jean-Baptiste Kempf » 28 Dec 2013 13:13

Why do you need rc?

Use -I dummy if you want no interaction.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

prideaux90
New Cone
New Cone
Posts: 6
Joined: 15 Aug 2012 19:06

Re: How to exit process (RC interface) after streaming out?

Postby prideaux90 » 28 Dec 2013 14:49

Why do you need rc?
Because if i am streaming a really long movie, i can type commands in the window that pops up to know what's happening, e.g. get_length, get_time, seek, etc.

Anyway thanks for replying, I appreciate it.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: How to exit process (RC interface) after streaming out?

Postby Jean-Baptiste Kempf » 28 Dec 2013 19:26

Then type quit in the rc command.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

prideaux90
New Cone
New Cone
Posts: 6
Joined: 15 Aug 2012 19:06

Re: How to exit process (RC interface) after streaming out?

Postby prideaux90 » 29 Dec 2013 11:14

typing quit does not quit, instead it shows.

Code: Select all

quit: returned 0 (no error)
However i can just click the X on the top right hand side which does quit and exit the process. But i already knew that.

The reason i asked is because i wanted to manipulate the streaming from my program, something like
proc = Process.Start(etc);
proc.WaitForExit();
//once it exits, do other logic here.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: How to exit process (RC interface) after streaming out?

Postby Jean-Baptiste Kempf » 29 Dec 2013 11:27

Then, this is a bug.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 30 guests