Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Phonon and mp3-support on embedded device
QtWS25 Last Chance

Phonon and mp3-support on embedded device

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 4.9k 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.
  • A Offline
    A Offline
    almagest
    wrote on last edited by
    #1

    Hello.

    I have cross compiled qt for an embedded device (the freescale i.mx51 evk) but have difficulty using phonon the way i want.
    Phonon works fine when using simple wav-files. But when i try to play mp3-files, no sound. And no error messages either.
    I suspect some library or something is missing.

    The system is running Linux - Busybox with a vast number of libraries and add-ons.
    I can however play mp3 files (and wav as well) using mp3player from the command line.

    I know this issue probably is not directly related to qt, but maybe someone can provide some guidance anyway.
    Thanks for your time!

    -almagest

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mario
      wrote on last edited by
      #2

      You should try playing mp3 files with gstreamer which should be available in your embedded system. If that fails, phonon will also fail playing mp3s.

      Use google to find out, search for "gst-launch mp3"

      1 Reply Last reply
      0
      • A Offline
        A Offline
        almagest
        wrote on last edited by
        #3

        Hello, and thanks for quick reply!

        I have installed the following packages to the embedded system.
        alsa-utils, alsa-lib, gstreamer, gstreamer-plugins-base, gstreamer-plugins-good
        gstreamer-plugins-bad, gstreamer-plugins-ugly, gstreamer-FFmpeg-plugins, libmad.

        While running the following command, i get an error.

        gst-launch filesrc location=dr.mp3 ! mad ! alsasink
        WARNING: erroneous pipeline: no element "mad"

        I checked the paths, they seem to be in order.

        The sink is working as it should;
        gst-launch audiotestsrc ! alsasink -> results in nice tone.

        I have a libmad.so in /usr/lib , but noticed that on my host system, i have an libgstmad.so in /usr/lib/gstreamer-1.0/ directory.

        I got not errors when compiling, so i assume the file is not supposed to be there?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mario
          wrote on last edited by
          #4

          I think you need to have libgstmad.so too if you're trying to launch with !mad!

          1 Reply Last reply
          0
          • A Offline
            A Offline
            almagest
            wrote on last edited by
            #5

            I got this to work by other means.

            By running gst-inspect i found that i had another decoder available, namely 'mfw_mp3decoder'.
            It plays mp3 flawlessly. Then the simple Phonon-code worked fine afterwards.

            I dont remember whether i ran some gst-command that setup the path for playback or not.
            Worth googling if you read this and have the same issue.

            Thanks for all help!

            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