Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Audio and Video Playback Stuck in QT6 Docker

Audio and Video Playback Stuck in QT6 Docker

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 376 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.
  • L Offline
    L Offline
    Lija
    wrote on last edited by
    #1

    Hi,

    I tried to dockerize a Qt6 application using the torizon/qt6-wayland-imx8:next image from Docker Hub as the base. For my specific Qt6 application, I needed to install the following packages to the above-mentioned Qt6 image:

    RUN apt-get install imx-gpu-viv-wayland-dev
    RUN apt-get update && apt-get -y install qml6-module-qtquick qml6-module-qtquick-controls qml6-module-qtqml-workerscript qml6-module-qtquick-templates qml6-module-qtquick-layouts qml6-module-qtquick-window qml6-module-qtmultimedia libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio

    After installing these packages, I encountered the following issues while running the application:

    i)The Qt6 application is supposed to continuously playback audio, but after dockerizing, the audio only plays once and then stops.
    ii)When running the application, the video plays with frequent stuttering and displays the error: qt.multimedia.player: Warning: "A lot of buffers are being dropped."

    I then switched to Qt5 and replaced the GStreamer pipeline with:
    gst-launch-1.0 playbin uri=file:///<file location>

    When I switched to Qt5 with the new pipeline, the audio played more consistently than with Qt6. However, after some time, the audio still got stuck, and no sound was produced, although the sound card remained in a running state.

    I used the following flags in my docker run command:
    --privileged -v /dev/snd:/dev/snd --network host -e QT_QPA_PLATFORM=wayland -v /run/user/0:/tmp/1000-runtime-dir

    Despite these attempts, the audio playback issues persist with both Qt5 and Qt6 when running inside the Docker container. Further investigation and troubleshooting are required to resolve these audio and video playback problems.

    Any advice or suggestions from the community would be greatly appreciated.

    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