Re: [Libav-user] How to connect to an IP camera in libav

2012-12-11 Thread Alexander Wischnewski
> ** > > From: Alexander Wischnewski > > To: This list is about using libavcodec, libavformat, > libavutil,libavdevice and libavfilter. > > Sent: Sunday, December 09, 2012 9:43 PM > > Subject: Re: [Libav-user] How to connect to an IP camera in libav >

Re: [Libav-user] How to connect to an IP camera in libav

2012-12-10 Thread Don Moir
> From: Alexander Wischnewski > To: This list is about using libavcodec, libavformat, libavutil,libavdevice > and libavfilter. > Sent: Sunday, December 09, 2012 9:43 PM > Subject: Re: [Libav-user] How to connect to an IP camera in libav > > Hello Don, > > is the a

Re: [Libav-user] How to connect to an IP camera in libav

2012-12-09 Thread Alexander Wischnewski
Hello Don, is the *avformat_open_input *function* *taking long or maybe the * avformat_find_stream_info* ? In the second case you have to reduce the maximal analyze duration of the AVFormatContext, you can do it like this: pFormatCtx->max_analyze_duration = 1.0 * AV_TIME_BASE; // Retrie

Re: [Libav-user] How to connect to an IP camera in libav

2012-12-09 Thread Don Moir
> I’m trying to connect to a Foscam MJpeg IP camera (http) using libav on > Windows and am getting an error code of -5 after For the foscam F18918W the default http string is: (dont forget &pwd=) http://x.x.x.x/videostream.asf?user=admin&pwd= For a list of possible strings for foscam cameras g

Re: [Libav-user] How to connect to an IP camera in libav

2012-12-03 Thread Alexander Wischnewski
Hello Brian, not long ago i ran into a similar problem so i have a clue what it could be. In some cases, when it comes to receiving a live stream, you have to tell ffmpeg which format the input should have. Attached you find some code how to do that, i am using it for several mjpeg cameras. AVInpu

[Libav-user] How to connect to an IP camera in libav

2012-11-29 Thread Brian Martin
Hello, I'm trying to connect to a Foscam MJpeg IP camera (http) using libav on Windows and am getting an error code of -5 after AVFormatContext *pFormatCtx=NULL; int i, videoStream; AVCodecContext *pCodecCtx; AVCodec *