Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Phonon and mp3-support on embedded device

    Mobile and Embedded
    2
    5
    4536
    Loading More Posts
    • 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
      almagest last edited by

      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 Reply Quote 0
      • M
        mario last edited by

        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 Reply Quote 0
        • A
          almagest last edited by

          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 Reply Quote 0
          • M
            mario last edited by

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

            1 Reply Last reply Reply Quote 0
            • A
              almagest last edited by

              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 Reply Quote 0
              • First post
                Last post