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!