You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
import cv2
out = cv2.VideoWriter("sample.mp4", -1, 30, (400, 400))
import cv2
out = cv2.VideoWriter("sample.mp4", 2, 30, (400, 400))
Issue submission checklist
This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
I'm using the latest version of opencv-python
The text was updated successfully, but these errors were encountered:
@anitoanto I believe what you are seeing may not be logs but the intentional output from the FFMPEG Backend or OpenCV, fourcc=-1 is used for explicitly listing the available codec,
Since this behavior is intentional, the methods for suppressing logs (such as setting OPENCV_LOG_LEVEL) won't be affecting it. The codec list is generated and displayed as standard output from OpenCV's VideoWriter initialization.
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: