Page 1 of 1

Controlling VLC in ncurses Interface via Command Line

Posted: 25 Jul 2013 07:57
by Pluto is a Planet
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!

Re: Controlling VLC in ncurses Interface via Command Line

Posted: 25 Jul 2013 15:13
by Jean-Baptiste Kempf
Use rc interface, not ncurse.

Re: Controlling VLC in ncurses Interface via Command Line

Posted: 25 Jul 2013 20:18
by Pluto is a Planet
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.