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. Audio Playback issues with various formats (m4a, mp3, wav)
Forum Updated to NodeBB v4.3 + New Features

Audio Playback issues with various formats (m4a, mp3, wav)

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtmultimedia
2 Posts 2 Posters 1.3k 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.
  • K Offline
    K Offline
    Karim
    wrote on last edited by A Former User
    #1

    Hi all,

    I'm currently experiencing some technical and annoying issues with QtMultimedia and audio playback (using gstreamer).
    I'm currently working on an audio-player made in QML for a Tegra based enbedded device.
    Using Qt 5.7.

    Most of the files are mp3, m4a and sometime WAV files (some customers still use em...).

    The Qt (commercial) version is fully built with Yocto and come with gstreamer and all the plugins (base, bad good and ugly).

    Everything works fine but...not completly:

    First at all, I experienced an issue with QMediaPlayer (MediaPlayer for QML)
    with a choppy and ugly playback with m4a files and it seems that it is due to the
    "libgstaudioparsers.so" plugin. If I remove it from
    /usr/lib/gstreamer-1.0, it works fine, the sound is good (qtdemux plugin seems to be used instead).

    However, removing this plugin prevents me from playing regular mp3 files. I can no longer play them.

    Secondly, I pointed out that the playback of MP3 and WAV files was a little
    bit slower than the normal expected speed. It seems that the files played are
    recorded in 44 KHz and the ALSA system is in 48 KHz.

    If I launch the following gstreamer-1.0 command line, the problem is fixed:

    gst-launch-1.0 filesrc location=~/track00.wav ! wavparse ! audioconvert !
    audioresample ! audio/x-raw, rate=48000 ! alsasink
    

    But as far as I know, customizing the underlying gst pipeline is not possible with QtMultimedia.

    Any suggestion, critic, is welcome...

    K.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Alex Buznik
      wrote on last edited by
      #2

      Any updates or workarounds here?

      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