How to silence "Using Qt multimedia with FFmpeg version..."
-
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
-
I think, I figured it out. Using this
qputenv("QT_LOGGING_RULES", "qt.multimedia.ffmpeg*=false");in main does not log anything from ffmpeg -
"I get" is ambiguous. when do you "get it"? Have you redirected stderr and/or stdout to /dev/null yet?
-
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 laterin the console with a bunch of information about the video being played.Is there a way to silence them?
-
yes
app_name 2>&1 > /dev/null -
Okay, but this also hides any info and error logs to console
-
I think, I figured it out. Using this
qputenv("QT_LOGGING_RULES", "qt.multimedia.ffmpeg*=false");in main does not log anything from ffmpeg -
A akshaybabloo has marked this topic as solved