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

Wenpeng Zhou zhou.wenpeng at rdnet.fi
Tue Oct 30 14:28:28 CET 2012


Hi

The problem was resolved.

-----Original Message-----
From: libav-user-bounces at ffmpeg.org [mailto:libav-user-bounces at ffmpeg.org]
On Behalf Of Wenpeng Zhou
Sent: 30. lokakuuta 2012 13:58
To: 'This list is about using libavcodec, libavformat, libavutil,
libavdevice and libavfilter.'
Subject: [Libav-user] Can not open dshow usb camera by avformat_open_input()

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!

_______________________________________________
Libav-user mailing list
Libav-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user



More information about the Libav-user mailing list