Hi
so I am experimenting with trying to grab video(mjpeg) from an IP webcam and I 
am using the Stepehen Dranger's tutorial01 as my starting point and I know that 
in his program he does a call av_find_stream_info to retrieve the stream 
information. Now I tried to feed the url of the ip webcam into his program and 
it fails at av_find_stream_info (which is expected because when I try to grab 
video from this IP camera using ffplay I have to do a -f mjpg to specify an 
input format). Now I am assuming I will have to manually allocate and set the 
values of an AVCodecContext variable. Now I have allocated a an AVCodecContext 
variable using av_allocate_context(). So what should I do next? What fields 
inside the AVCodecContext variable do I need to set so that I can pass it into 
avcodec_open()? Thanks

Xin Cai


-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Cai, Xin
Sent: Mon 12/1/2008 2:30 PM
To: [email protected]
Subject: [libav-user] how to grab video from a IP camera
 
Hi guys

I am working on a program that requires me to grab video(mjpeg) from an
IP camera and I was able to do it using ffmpeg, but now I want to
acquire the video from the IP camera using libav api(s) directly. Now I
went through the Stephen Dranger tutorial already but the tutorial reads
from file, so how can I modify it to read from an IP camera? Any help
would be appreciated.

 

Thanks

 

Xin Cai

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

<<winmail.dat>>

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to