-
Notifications
You must be signed in to change notification settings - Fork 896
Logs from VideoWriter is not affected by set log level, using OPENCV_LOG_LEVEL #1066
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @anitoanto, Could you share environment details in which you are trying to run this program? |
@l3002 Win 11, Python 3.11.7, opencv-python==4.10.0.84 |
@anitoanto I believe what you are seeing may not be logs but the intentional output from the FFMPEG Backend or OpenCV, |
@AdityaSinghDevs When the fourcc is set incorrectly, the error message is displayed irrespective of the set log level. Sample code give below.
|
Hi @anitoanto, I agree with @AdityaSinghDevs, I believe these are intentional error messages displayed which are separate from logs. These are raised for indicating misuse of the method. I think these were conscious decisions made by the devs. |
There are 3 types of messages produced by OpenCV:
|
Expected behaviour
Setting environment variable OPENCV_LOG_LEVEL=OFF is expected to disable logs from OpenCV.
Actual behaviour
Initializing VideoWriter with fourcc as -1 is producing a list of fourcc.
Update: Setting the fourcc to an incorrect value will also produce error logs irrespective of set log level.
I have read, setting fourcc -1 is expected to list the available fourcc for the format, but what is a potential way to disable this list of fourcc appearing in console?
Any help in disabling those messages is really helpful. Recommendations on setting this log level or disabling the messages from OpenCV on open forums didn't help.
Steps to reproduce
Issue submission checklist
opencv-python
The text was updated successfully, but these errors were encountered: