Controlling VLC in ncurses Interface via Command Line

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Pluto is a Planet
Blank Cone
Blank Cone
Posts: 10
Joined: 16 Feb 2012 23:24

Controlling VLC in ncurses Interface via Command Line

Postby Pluto is a Planet » 25 Jul 2013 07:57

I'm developing an app in Java that requires some simple interaction with VLC Media Player. I want to have VLC run hidden in the background which is why I chose the ncurses interface. While it's running, it's streaming a Youtube video and saving its output as an OGG file with it closing when it's done. I can already do all this.

What I want to be able to do is also get the progress while it runs. I can send text output from my Java app to VLC, but I don't know what commands it accepts. In addition, it doesn't quite seem to work... If I run VLC in the rc interface, I know you can send "get_time" and "get_length" (which is what I'd be looking for), but I can't even run those while VLC is in the rc interface. But I can still type on the command prompt that comes up and send those commands and see the output. Is there an extra parameter I need to add when running VLC so that it changes where the input comes from?

Here's an example of the command I'm trying to send:

Code: Select all

VLC\vlc.exe -Incurse -vvv http://www.youtube.com/watch?v=NypCROu8YVQ --sout file/ogg:C:\Users\Daniel\Desktop\Test.ogg --play-and-exit --quiet
Any help would be appreciated, thanks!

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

Re: Controlling VLC in ncurses Interface via Command Line

Postby Jean-Baptiste Kempf » 25 Jul 2013 15:13

Use rc interface, not ncurse.
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.

Pluto is a Planet
Blank Cone
Blank Cone
Posts: 10
Joined: 16 Feb 2012 23:24

Re: Controlling VLC in ncurses Interface via Command Line

Postby Pluto is a Planet » 25 Jul 2013 20:18

Yeah I think this is more of a Java problem than a problem with what I'm doing in VLC... None of what I'm outputting from my Java app is getting a response from VLC even though I can still type in input manually that works while it's running.

Anyways I am using the rc interface, I'll just be adding "--rc-quiet" to the command.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 1 guest