[MPlayer-users] mplayer (slave mode in Qt) doesn't switch to fullscreen

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Feb 24 17:36:45 EET 2018

On Tue, Jan 02, 2018 at 06:38:48PM +0100, Jan van Essen wrote:
> Hi,
> I'm using mplayer in slave mode in a QWidget. Everything is working fine so far. This is the (simplified) string to start the process:
> playString = QString("mplayer -slave -quiet -vf screenshot -wid 1120 -zoom -xy 400 tv:// -tv driver=v4l2:device=/dev/video0");
> and then I'm binding it to a process:
> QProcess *playProcess;
> playProcess->start(playString);
> I use this method to pass commands to the mplayer process:
> void sendCommand(QString cmd) {
>     QByteArray command(QString("%1\n").arg(cmd).toLatin1().data());
>     playProcess->write(command);
> }
> Everything is working fine up to this point. I can use sendCommand("pause 1") or sendCommand("screenshot 0") to pause or screenshot the current playback. So no problems here.
> However, I can't use "vo_fullscreen 1" to switch into fullscreen mode. It just ignores the command and does nothing. It doesn't even return any output.

Well, how could that work?
You are telling it to draw into a window you fully control,
it can't just make it go fullscreen (if it did with some
low-level X11 stuff it would likely make Qt angry).
You will have to make your window fullscreen yourself.
That said, I think vo_fullscreen does still have an effect,
I believe it changes how it handles video- and window-aspect

More information about the MPlayer-users mailing list