ffmpeg如何获取摄像头名?
小竹z 2014-12-24 11:37:57 rt,如何使用代码实现额?我找的代码如下,但是iformat里面name和设备管理器中查看名字不一样额,有什么办法吗?
AVFormatContext *pFormatCtx = avformat_alloc_context();
AVDictionary* options = NULL;
av_dict_set(&options,"list_devices","true",0);
AVInputFormat *iformat = av_find_input_format("dshow");
avformat_open_input(&pFormatCtx,"video=dummy",iformat,&options);