Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
QVideoWidget extreme slow on RPi3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
ON7AMI
n00b
n00b


Joined: 26 Feb 2019
Posts: 11
Location: Belgium

PostPosted: Thu Feb 28, 2019 2:01 pm    Post subject: QVideoWidget extreme slow on RPi3 Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum