看了雷神的博客
avdevice_register_all();
AVFormatContext *pFormatCtx = avformat_alloc_context();
AVInputFormat *ifmt=ifmt=av_find_input_format("vfwcap");
avformat_open_input(&pFormatCtx, 0, ifmt,NULL);


最终无法打开摄像头,不清楚是什么原因,网上也没类似答案
看了雷神的博客
avdevice_register_all();
AVFormatContext *pFormatCtx = avformat_alloc_context();
AVInputFormat *ifmt=ifmt=av_find_input_format("vfwcap");
avformat_open_input(&pFormatCtx, 0, ifmt,NULL);


最终无法打开摄像头,不清楚是什么原因,网上也没类似答案
没有遇到过,你可以到这里看看雷神的案例:https://blog.csdn.net/leixiaohua1020/article/details/39702113