Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Problem with QMediaPlayer
I want to develop a video player via qmediaplayer, but it always had a problem as below:
Error: "GStreamer encountered a general stream error." (play mp4 file)
Error: "Internal data stream error." (play avi file)
Even that I run Qt example videowidget, it still had same problem.
Gstreamer 1.0 and 0.1
And I've used command line to play video
gst-launch-1.0 playbin uri=file://home/user/video.mp4
gst-launch-0.10 playbin2 uri=file://home/user/video.mp4
the above can play.
Any idea or suggestion about this problem?
Kent-Dorfman last edited by
do other mp4 files play correctly in your Qt app or is it a specific file?
@Kent-Dorfman Thanks for your reply.
It isn't a specific file and other mp4 files also have this problem.
I can play video via gstreamer directly.
Is it the problem of my Qt config?
@Nian0713 Is there a reason why you're using 5 years old unsupported Ubuntu version?
Did you install Qt GStreamer packages?
@jsulm Are you mean "qtgstreamer-dbg, qtgstreamer-declarative, qtgstreamer-doc and qtgstreamer-plugins "?
If yes, I've install those.