Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

rdp commented Nov 13, 2012

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

@J0hmy

This comment has been minimized.

J0hmy commented Jul 18, 2017

av_register_all();
avdevice_register_all();

@rdp

This comment has been minimized.

rdp commented Aug 23, 2018

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