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); if(!file->open(QIODevice::ReadOnly)) qDebug() << "Could not open file"; QUrl url = QUrl::fromLocalFile(path to local file); player->setMedia(url, file); player->setVideoOutput(videoWidget); videoWidget->show(); player->play();
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?