Closed 111raigeki closed 6 months ago
It can be that OpenCV is built without mp4 support for example, but python is using the different OpenCV version that has this support. Please also post cargo build -vv
after doing cargo clean
, it contains a lot of helpful debug information that might aid in tracking the source of the issue down.
The codecs were indeed the issue - for some reason opencv did not recognize ffmpeg. Thank you for help.
The codecs were indeed the issue - for some reason opencv did not recognize ffmpeg. Thank you for help.
@111raigeki I have the same problem, what codecs did you need to install?
Hello, I am trying to open a video using VideoCapture::from_file, but I can't get it to read the file properly. The project builds without any issues, but is_opened doesn't return true:
I've tried to do the same in python (3.10, opencv-python 4.9.0) and it works just fine. Capturing video from webcam also works fine.
Information: