[Ffmpeg-devel] Any pointers on how to connect to an MJPEG stream?
Michel Bardiaux
mbardiaux
Thu Feb 22 18:09:19 CET 2007
Robert Harle wrote:
> Hi,
>
> I have a camera that outputs an MJPEG stream to my network (connecting
> to http://camera_ip/mjpegstream). I want to be able to obtain frames
> from the video using libavformat. I can do this from a video file using
> av_open_input_file(), but I'm not sure how to convert to a stream. At
> present I have:
>
> av_open_input_file(&formatctx, filename, NULL, 0, NULL);
>
> I see there is an av_open_input_stream() but I'm unsure as to the
> parameters to pass to it, or even if this is intended to do what I want.
>
> Can anyone offer a suggestion, or a resource to try?
Try ffmpeg -i http://camera_ip/whatever -t 300 x.mpg , what happens?
--
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux at mediaxim.be
Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/
More information about the ffmpeg-devel
mailing list