FFmpeg读取Mac摄像头的问题

在这篇文章中讲解了怎么使用FFmpeg读取摄像头,包括Windows,Linux和Mac。通过测试,发如今Mac 下avformat_open_input老是出错,提示Input/Output error。后来发现对于Mac下经过avfoudmation读取摄像头,须要提早设置framerate和video_size。正确的代码以下:ios #include <iostream> extern "
相关文章
相关标签/搜索