xcode OpenCV:无法从文件中读取视频流
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/48746651/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
OpenCV: Couldn't read video stream from file
提问by Eugenie
I'm trying to output a video from file using OpenCV 3.4.0. Xcode gives an error message: OpenCV: Couldn't read video stream from file. When i capture video from cam xcode run successfull. I try install ffmpeg 3.4.1 and don't know what headers i need to include. It's all on OSX 10.12 Sierra
我正在尝试使用 OpenCV 3.4.0 从文件中输出视频。Xcode 给出错误消息:OpenCV:无法从文件读取视频流。当我从 cam xcode 捕获视频时运行成功。我尝试安装 ffmpeg 3.4.1,但不知道我需要包含哪些标头。这一切都在 OSX 10.12 Sierra 上
回答by Eugenie
Found solution, i point wrong path to file "~/Desktop/test.mp4"
just changed to "/Users/jameson/Desktop/test.mp4"
apparantly opencv not enough abridged version of path
找到解决方案,我指向错误的文件路径"~/Desktop/test.mp4"
刚刚更改为"/Users/jameson/Desktop/test.mp4"
明显的 opencv 没有足够的路径的删节版本