Closed
Description
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
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
Metadata
Metadata
Assignees
Labels
No labels