Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem with QMediaPlayer

Problem with QMediaPlayer

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 981 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nian0713
    wrote on last edited by
    #1

    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?
    Thanks!!

    1 Reply Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #2

      do other mp4 files play correctly in your Qt app or is it a specific file?

      N 1 Reply Last reply
      0
      • Kent-DorfmanK Kent-Dorfman

        do other mp4 files play correctly in your Qt app or is it a specific file?

        N Offline
        N Offline
        Nian0713
        wrote on last edited by
        #3

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

        jsulmJ 1 Reply Last reply
        0
        • N Nian0713

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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Nian0713 Is there a reason why you're using 5 years old unsupported Ubuntu version?
          Did you install Qt GStreamer packages?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          N 1 Reply Last reply
          0
          • jsulmJ jsulm

            @Nian0713 Is there a reason why you're using 5 years old unsupported Ubuntu version?
            Did you install Qt GStreamer packages?

            N Offline
            N Offline
            Nian0713
            wrote on last edited by
            #5

            @jsulm Are you mean "qtgstreamer-dbg, qtgstreamer-declarative, qtgstreamer-doc and qtgstreamer-plugins "?
            If yes, I've install those.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved