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

Jan van Essen jve at gmx.de
Tue Jan 2 19:38:48 EET 2018


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.

$uname -a 
Linux devh 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23) x86_64 GNU/Linux

$mplayer -h
MPlayer 1.3.0 (Debian)

Any ideas?


More information about the MPlayer-users mailing list