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. How to silence "Using Qt multimedia with FFmpeg version..."

How to silence "Using Qt multimedia with FFmpeg version..."

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 367 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.
  • A Offline
    A Offline
    akshaybabloo
    wrote on last edited by
    #1

    I am using Qt Multimedia to play a video, everytime I run it I get - Using Qt multimedia with FFmpeg version 7.1.2 LGPL version 2.1 or later - how do I silence the message?

    In the code, its seems to be hard-coded to info? - https://github.com/qt/qtmultimedia/blob/dev/src/plugins/multimedia/ffmpeg/qffmpegmediaintegration.cpp#L171-L172

    1 Reply Last reply
    1
    • A Offline
      A Offline
      akshaybabloo
      wrote on last edited by
      #6

      I think, I figured it out. Using this qputenv("QT_LOGGING_RULES", "qt.multimedia.ffmpeg*=false"); in main does not log anything from ffmpeg

      1 Reply Last reply
      3
      • Kent-DorfmanK Offline
        Kent-DorfmanK Offline
        Kent-Dorfman
        wrote on last edited by Kent-Dorfman
        #2

        "I get" is ambiguous. when do you "get it"? Have you redirected stderr and/or stdout to /dev/null yet?

        The dystopian literature that served as a warning in my youth has become an instruction manual in my elder years.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          akshaybabloo
          wrote on last edited by
          #3

          For example if I run this Qt example - https://doc.qt.io/qt-6/qtmultimedia-video-mediaplayer-example.html - I get - qt.multimedia.ffmpeg: Using Qt multimedia with FFmpeg version 7.1.2 LGPL version 2.1 or later in the console with a bunch of information about the video being played.

          Is there a way to silence them?

          1 Reply Last reply
          0
          • Kent-DorfmanK Offline
            Kent-DorfmanK Offline
            Kent-Dorfman
            wrote on last edited by
            #4

            yes
            app_name 2>&1 > /dev/null

            The dystopian literature that served as a warning in my youth has become an instruction manual in my elder years.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              akshaybabloo
              wrote on last edited by
              #5

              Okay, but this also hides any info and error logs to console

              1 Reply Last reply
              0
              • A Offline
                A Offline
                akshaybabloo
                wrote on last edited by
                #6

                I think, I figured it out. Using this qputenv("QT_LOGGING_RULES", "qt.multimedia.ffmpeg*=false"); in main does not log anything from ffmpeg

                1 Reply Last reply
                3
                • A akshaybabloo has marked this topic as solved on

                • Login

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