Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Multimedia
  4. Problem with playing sound via ffmpeg backend

Problem with playing sound via ffmpeg backend

Scheduled Pinned Locked Moved Unsolved Qt Multimedia
4 Posts 2 Posters 769 Views 1 Watching
  • 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.
  • D Offline
    D Offline
    detomassino
    wrote on last edited by detomassino
    #1

    Hello,
    I have a problem playing sound on Arch linux under Plasma 6.5.3

    I would like to add a sound to accompany an animation in the libreoffice impress and having problems.

    When I select the sound from the animation effect it plays just fine when select the play button in the menu.

    However, when I start the presentation, there is no sound coming out.
    I get this error from the console.

    qt.multimedia.ffmpeg.mediadataholder: Could not open media. FFmpeg error description: Immediate exit requested.
    

    Strangely, when I insert the same sound as a standalone Audio/Video into the presentation it plays fine.

    Also when I play the sound directly from the command line it plays find. I use this command:

    ffplay /usr/lib/libreoffice/share/gallery/sounds/nature1.wav
    

    Why is this happening?

    I don't know enough about linux to investigate further.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Which version of Qt does libreoffice use on your machine ?
      One other thing you can do is enable logging for all QtMultimedia. That might give you some additional clue about what is happening.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • D Offline
        D Offline
        detomassino
        wrote on last edited by
        #3

        Hello SGaist,

        I think it uses qt6. How do I find out?

        Also, how do I enable logging for QtMultimedia?

        Interestingly, when start libreoffice with this environmental variable to set backend for gstreamer, the sound is working

        QT_MEDIA_BACKEND=gstreamer libreoffice --impress
        

        I found it in another post with similar problem which apparently was fixed by the last QT update
        link text

        1 Reply Last reply
        1
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You can run ldd on your libreoffice binary to see which libraries are linked.

          To enable logging categories, you have the different options describe in the documentation.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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