Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Raspberry && Qt5 && play mp3 problem
Qt 6.12 LTS is out! See what's new in the release blog

Raspberry && Qt5 && play mp3 problem

Scheduled Pinned Locked Moved Mobile and Embedded
12 Posts 5 Posters 10.6k Views 1 Watching
  • 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.
  • L Offline
    L Offline
    luca
    wrote on last edited by
    #3

    Hi,
    now I'm using a "workaround":
    @
    QProcess("mpg123 myfile.mp3");
    @

    1 Reply Last reply
    0
    • tomasz3dkT Offline
      tomasz3dkT Offline
      tomasz3dk
      wrote on last edited by
      #4

      Hi,
      I had same issue on my pi, but my Qt was in 5.0.2 version, and didn't find solutions to solve this problem ;/, somewhere i've read that there is a problem with gstreamer for Pi maybe it has solved. But i've lost my cross-compiled Qt for Pi, and now i have problems to cross-compile Qt for Pi. Can you provide a good tutorial for it?

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #5

        Hi,

        I have followed the guidelines from the following sites:
        http://creeder.com/?page=RaspberryPi
        http://qt-project.org/wiki/RaspberryPi_Beginners_guide
        http://www.ics.com/blog/building-qt-5-raspberry-pi#.Up2JksTmOao

        If you want to compile 5.1.1, remember to do a
        @git checkout v5.1.1@

        I used the patches from "bakeqtpi":git://gitorious.org/bakeqtpi/bakeqtpi.git
        and also I had to add "patch to qeglfshooks_pi.cpp":https://codereview.qt-project.org/#patch,sidebyside,65404,2,mkspecs/devices/linux-rasp-pi-g%2B%2B/qeglfshooks_pi.cpp to avoid compilation error.

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #6

          ... I also tried to compile gst-omx as described @ http://creeder.com/?page=RaspberryPi but without luck - have read that the branch has been renamed from raspberrypi to 0.10. If you know how to preceed from here please share :)

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #7

            Meet same problem here.
            Any progress?

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #8

              Unfortunately I havent had time to look more into this issue, so I haven't had any progress.

              1 Reply Last reply
              0
              • tomasz3dkT Offline
                tomasz3dkT Offline
                tomasz3dk
                wrote on last edited by
                #9

                Me too... ;|

                1 Reply Last reply
                0
                • ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #10

                  [quote author="helthans" date="1398836868"]Unfortunately I havent had time to look more into this issue, so I haven't had any progress.[/quote]

                  So is there any other way to replace gstreamer?
                  I used a different ARM board, but I think it's the same situation.
                  To get the board run with audio program, I tried QSound, but there's no device in /dev/dsp, and I tried to add it back, but no way seemed to work.
                  And I also tried QMediaPlayer, and installed gstreamer on the board, didn't work either.

                  1 Reply Last reply
                  0
                  • ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #11

                    I'm really not sure. Lately I have been working with Odroid U3 board, which is also ARM based, and for this board the situation is completely different, but not sure why. I have compiled Qt5 using the same approach as for raspberry pi but things just works here :) The gstreamer is recognized the required libs for playing video and audio are created such that QMediaPlayer can handle audio and video. So far I have been able to play mpeg, m4a and aac without problems. The only issue I have right now, is that video is not hardware decoded and hence 1080p video is not played smoothly.

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      Dinesh Ponnuswamy
                      wrote on last edited by
                      #12

                      Problem solved !

                      install the whole gstreamer 0.10 package by using,

                      sudo apt-get update
                      sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev
                      sudo apt-get install gstreamer0.10*

                      this works for me..

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