Playing video files on the gui
General and Desktop
5
Posts
3
Posters
2.6k
Views
1
Watching
-
I'm also looking for a better way to do this.
As far as I know, the YUV format is not supported by Qt. Until now, we've been using OpenCV to load video sequences and convert them to RGB, placed them in a QImage and display them in a QLabel.
I haven't tried the Qt Multimedia classes yet. They should give you more control over playback (with a label, you'll have to "manually" time when each frame should be displayed), but might still not support YUV.
-
I apologize, it seems I was wrong and was reading RGB data all the time. I verified the OpenCV doc and YUV is not supported. From what I understand, ffmpeg is used as the OpenCV backend for reading different video formats and ffmpeg doesn't decode YUV data by default. My bad... :(