
Pipe = popen("mplayer -slave 'your_audio_file_here. * Open mplayer as a child process, granting us write access to its input */
#Mplayer command line options how to
Here's an example program in C demonstrating how to use MPlayer's slave mode: #include Since you have tagged the question as Qt, I'm going to assume you are using C++. So MPlayer is the playback engine, SMPlayer adds the buttons, menus, dialogs, and so on. As this is not very user friendly, several graphical interfaces have been developed, and SMPlayer is one of them.
Open the default gui.-config-pathOpen the mpc GUI instead of the default one.-defaultgui. Open the mini GUI instead of the default one.-mpcgui. Basic mplayer Usage from Command-Line sudo apt-get install mplayer sudo yum install mplayer sudo zypper in mplayer cd /Music ls The Offspring. For a full list of commands supported, run mplayer -input cmdlist. MPlayer is a command-line application, it doesn't have menus or buttons. SMPlayer is a GUI media player based on Qt, using mplayer(1) as its backend. In this mode, MPlayer ignores its standard input bindings and instead accepts a different vocabulary of text commands that can be sent one at a time separated by newlines. You can launch MPlayer in this mode by giving it the -slave command line option when launching it. MPlayer is a command-line application, it doesnt have menus or buttons. What you probably want is MPlayer's slave mode of input, which makes it easy to give it commands from another program.
