Open ayang opened 4 months ago
let mut cap = videoio::VideoCapture::from_file("d:\\中文文件名.mp4", videoio::CAP_ANY)?; let opened = videoio::VideoCapture::is_opened(&cap)?;
Then the opened == false
The codes can be compiled, but can't open the file, if I change the filename to an english name, it will be ok. I guess it's an encoding problem.
This can happen if your filesystem encoding is not utf-8. I'm going to try to investigate this, maybe there is a solution for this. Thanks for reporting!
imgcodecs::imread win11 same error
imgcodecs::imread
Then the opened == false
The codes can be compiled, but can't open the file, if I change the filename to an english name, it will be ok. I guess it's an encoding problem.