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. Media Player Example no sound on b2qt QT 5.12.3 image RPI3
Forum Updated to NodeBB v4.3 + New Features

Media Player Example no sound on b2qt QT 5.12.3 image RPI3

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 542 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.
  • P Offline
    P Offline
    pawelk
    wrote on last edited by pawelk
    #1

    Hi I'm trying to run the example provided with the Qt called "Media Player Example" on the RPI3 but the sound is not coming out of the 3,5 jack ( I'm only trying to play mp3 the amplitude indicators are showing changes so I think it should be playing and
    I guess the sound card is configured correctly because I get the sound from the mpg123 player.
    Am I missing something?
    I found that pulseaudio package is not included in the build, is it necessary to play audio?
    Note the image is custom built but with default settings.

    EDIT:
    I've just found myself an USB headset and it also is not working with Qt, I made it to be the default device via /etc/asound.conf
    and still situation is the same it plays mp3 via mpg123 but not QMediaPlayer

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pawelk
      wrote on last edited by
      #2

      Ok It seems that I got it working, the culprit was the pulseaudio, actually the fact that it was missing from the default build
      With the help of the following topic "Yocto + Qt5 + Alsa + RaspberryPi + USB Audio" I was able to finally hear the sound out of the 3,5mm jack.
      For posterity in short modify the local.conf with the following (perhaps this is an overkill but this settings do actually work):

      DISTRO_FEATURES_append = " pulseaudio dbus systemd "
      IMAGE_INSTALL_append = " avahi-daemon pulseaudio pulseaudio-server pulseaudio-misc pulseaudio-module-dbus-protocol alsa-utils "
      PACKAGECONFIG_append_pn-qtmultimedia = " pulseaudio "
      PACKAGECONFIG_append_pn-pulseaudio = " systemd "
      

      note avahi-daemon is added so you can (in short) reach the board via its /etc/hostname

      1 Reply Last reply
      1

      • Login

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