Qt6 topics merged with General

Problem with QMediaPlayer

  • Hi all,
    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.

    My environment:

    • Ubuntu 14.04

    • Qt 5.6.2

    • Gstreamer 1.0 and 0.1

    And I've used command line to play video
    gst-play-1.0 video.mp4
    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?

  • 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?

  • Lifetime Qt Champion

    @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.

Log in to reply