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. QMediaPlayer running on Raspberry Pi 4 returns CRITICAL gst_alsa_device_new: assertion 'caps' failed

QMediaPlayer running on Raspberry Pi 4 returns CRITICAL gst_alsa_device_new: assertion 'caps' failed

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
raspberry pi 4qt6.3.0qmediaplayergstreameraudioplayer
1 Posts 1 Posters 368 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
    popsharts
    wrote on 20 May 2023, 08:33 last edited by
    #1

    Re: [QML MediaPlayer](Raspberry Pi 4. gst_alsa_device_new: assertion 'caps' failed error)

    I ran into a similar problem as the referenced post where running a program that worked on x86 now returns this error message once cross-compiled for the RPI:

    ** (user:10149): CRITICAL**: gst_alsa_device_new: assertion 'caps' failed
    Segmentation fault

    the code I'm using to try and test audio output:

    music_player = new QMediaPlayer(this);
    audio_out = new QAudioOutput(this);
    music_player->setAudioOutput(audio_out);
    music_player->setSource(QUrl::fromLocalFile("/home...");
    audio_out->setVolume(100);
    music_player->play();

    Is this a problem with the gstreamer backend? Not quite sure why this doesn't work with all the prerequisite packages installed for qt multimedia. If anyone has any insight please reach out!! Apologies if anything isn't formatted correctly, I'm new to the forums and trying to learn.

    1 Reply Last reply
    0

    1/1

    20 May 2023, 08:33

    • Login

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