Skip to content

Instantly share code, notes, and snippets.

@amki
Created July 30, 2012 21:10
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save amki/3210277 to your computer and use it in GitHub Desktop.
Save amki/3210277 to your computer and use it in GitHub Desktop.
AVFormatContext *formatC = avformat_alloc_context();
AVDictionary* options = NULL;
av_dict_set(&options,"list_devices","true",0);
AVInputFormat *iformat = av_find_input_format("dshow");
avformat_open_input(&formatC,"video=dummy",iformat,&options);
@rdp
Copy link

rdp commented Nov 13, 2012

does av_find_input_format("dshow"); work for you?

@johzzy
Copy link

johzzy commented Jul 18, 2017

av_register_all();
avdevice_register_all();

@rdp
Copy link

rdp commented Aug 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment