Controlling VLC in ncurses Interface via Command Line
Posted: 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:
Any help would be appreciated, thanks!
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