Internal stream data error and a lot of rejected buffer when i run qtmedia player in imx7

Hi ,

I tired to diplay a video splash screen using qtmedia player , i faced many problem such as black screen when displaying video ,crash etc …

I did many reaserch , finally i added this config to local.conf :

I used this code :

   QMediaPlayer* video= new QMediaPlayer;
    QVideoWidget* videoWidg = new QVideoWidget();
    qDebug() <<"media "<<video->mediaStatus();
    QTimer::singleShot(9000,  video, SLOT(stop()));
    QTimer::singleShot(9000,  videoWidg, SLOT(close()));

this code is not stable , sometime it run without error and sometime the video stop (internal data stream error) Beside , when it run is very slow , how can i optimize the speed and resolve codec and qt error?

Thank you

Please note that the i.MX 7 does NOT have any kind of hardware accelerated multimedia support and also does NOT feature any kind of GPU. What exactly is it that you are trying to achieve (resolution, frame rate, codec properties)?