tags:

views:

97

answers:

3

My C++ application calls VLC as a subprocess. Is there a way to avoid having the GUI pop-up? I am looking for a Mac and a Windows solution. Hackish workarounds are welcome too.

PS: I know there is such a thing as cvlc (command-line version of VLC), but I haven't found any builds for it online. You do get it when you make the build yourself, but that hasn't worked out yet on my Snow Leopard machine. I also need a Windows version, but I don't feel courageous enough to attempt making a VLC build myself on this platform.

Solved

All I had to do was add the "-I dummy" parameters.

A: 

There are a few options in this thread

Dave Hillier
A: 

When you create the VLC instance using the libvlc_new function you have a VLC arguments to not display VLC interface. See this small example.

Patrice Bernassola
A: 

I found the answer. VLC allows you to start without GUI by using:

VLC -I dummy
Starts the "dummy" interface.

VLC -I rc
Starts the "remote control" interface, which allows you to send commands using the stdin channel.

StackedCrooked