qt sample of player: win10 and ubuntu show different .
-
I understand what causes these types of errors but it doesn't help your problem. What happens if you reencode the video source using a different codec? go from h264 to MJPEG or divx or raw yuv? What is the codec type of the original clip?
-
Another thing you should do is to view the clip in linux using vlc or mplayer or ffplay directly. That will let you know if the problem is the clip, vlc, or the Qt media module. IIRC, vlc is the default backend media processor in Qt/Linux.
-
@Kent-Dorfman no, QtMultimedia uses GStreamer on Linux.
-
Thanks Kent-Dorfman! Thanks SGaist!
It's ok for me to play the other files in player.The difference between these files is that the abnormal files have an odd width and the others are even.I don't think that's the reason, but that's the only difference.And, when I convert qt_imageFromVideoFrame to image, only this file gets an exception.So, is it true that when you use qt_imageFromVideoFrame, the width cannot be odd and must be a multiple of 4? -
I must say that I haven't seen an odd sized video for a long time. Is it possible to share that file or at least a clip of it ?