ON7AMI n00b
Joined: 26 Feb 2019 Posts: 11 Location: Belgium
|
Posted: Thu Feb 28, 2019 2:01 pm Post subject: QVideoWidget extreme slow on RPi3 |
|
|
Dear all,
I use a QVideoWidget in Qt to play mpeg4 files - On a Windows or a Linux on Intel machine this words fine.
I ported the program to Raspberry Pi-3 and the video plays extremely slow.
If i use mplayer to play the same video the stream is smooth.
I Integrated both methods in my program and the difference is terrible.
The QVideoWidget version:
Code: | QVideoWidget* videoWidget;
QMediaPlayer* player;
player->setVideoOutput(videoWidget);
player->setMedia(QUrl::fromLocalFile(filename));
videoWidget->setFullScreen(true);
videoWidget->show();
player->play();
|
The mplayer version:
Code: | QProcess process;
process.start(QString("mplayer -fs -nosound -vo gl -cache 16000 %2").arg(filename));
process.waitForFinished(-1);
process.close();
|
Someone has an idea how to solve it
tnx
Jean Paul |
|