[SOLVED]

@mrjj
Thanks. It solved the problem. Actually i used the following code:

mplayerProcess->start("mplayer2 --slave --quiet input.mp4"); ... QByteArray command("pause 1\n"); mplayerProcess->write( command );