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
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:
letmut cam = videoio::VideoCapture::from_file("data/test_vid.mp4", videoio::CAP_ANY)?;let opened = videoio::VideoCapture::is_opened(&cam)?;//always false independent of file path or file format
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:
os: Mint 21.2
way to install opencv: manual build (cmake)
opencv version: 4.9.0-dev
rustc version: 1.76.0 (07dca489a 2024-02-04)
crate version: 0.88.8
The text was updated successfully, but these errors were encountered:
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.
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:
The text was updated successfully, but these errors were encountered: