DevoutPrayer 2018-08-30 12:49 采纳率: 66.7%
浏览 3835
已结题

关于ffmpeg打开摄像头播放的问题

看了雷神的博客

        avdevice_register_all();
    AVFormatContext *pFormatCtx = avformat_alloc_context();
    AVInputFormat *ifmt=ifmt=av_find_input_format("vfwcap");
    avformat_open_input(&pFormatCtx, 0, ifmt,NULL);

程序运行之后显示

程序输出
最终无法打开摄像头,不清楚是什么原因,网上也没类似答案

  • 写回答

2条回答 默认 最新

  • wjintao 2018-08-31 02:24
    关注

    没有遇到过,你可以到这里看看雷神的案例:https://blog.csdn.net/leixiaohua1020/article/details/39702113

    评论

报告相同问题?