1,451
社区成员
发帖
与我相关
我的任务
分享
ffmpeg -list_devices true -f dshow -i dummy
//Show Device
void show_dshow_device(){
AVFormatContext *pFmtCtx = avformat_alloc_context();
AVDictionary* options = NULL;
av_dict_set(&options, "list_devices", "true", 0);
AVInputFormat *iformat = av_find_input_format("dshow");
printf("Device Info=============\n");
avformat_open_input(&pFmtCtx, "video=dummy", iformat, &options);
printf("========================\n");
}