[Libav-user] Can not open dshow usb camera by avformat_open_input()

Wenpeng Zhou zhou.wenpeng at rdnet.fi
Tue Oct 30 12:58:29 CET 2012


Hi,

I try to use the USB camera with windows. But I failed.
{
AVFormatContext *pFormatCtx;
 av_register_all();
AVInputFormat * a= av_find_input_format("dshow");
avformat_open_input(&pFormatCtx, "video=Mercury USB2.0 Camera", a, NULL);
}

The function avformat_open_input() crashed.

Please help me.

Thanks!



More information about the Libav-user mailing list