Important: Please read the Qt Code of Conduct -

QMediaPlayer does not play videos with .yuv and .y4m extension

  • Hello,
    I want to play videos with .y4m or .yuv extension inside my Qt Application. I am using QT 5.4 on windows 8. I had written the following lines of code.

         QMediaPlayer *player = new QMediaPlayer;
         QVideoWidget *videoWidget = new QVideoWidget;
         QFile *file = new QFile(path to local file);
             qDebug() << "Could not open file";
         QUrl url = QUrl::fromLocalFile(path to local file);
         player->setMedia(url, file);

    The video files play well with the windows media player. QMediaPlayer is able to play videos with .avi extension but not y4m or yuv videos. can anyone help me?

  • @gopi Use libVLC

Log in to reply