[Libav-user] MxPEG camera (Mobotix) avformat_open_input fail

Rafa Lopez rafaware at gmail.com
Wed Oct 23 17:44:15 CEST 2013


Hi all

I'm tryng to retrieve a MxPEG stream from a mobotix camera. I'm using
ffmpeg 2.0.2.

If i try:

./ffmpeg -f mxg -i "http://192.168.0.78/control/faststream.jpg?stream=MxPEG"
-y pipas.avi

i have no problem. If i write my own sample code

AVFormatContext formatContext;

avformat_open_input( &formatContext,
"http://192.168.0.78/control/faststream.jpg?stream=MxPEG&fps=6", NULL,
NULL ) !=0 )


always return 0 without message. How can I force the value of format to "mxg"?


I try:


    AVFormatContext *formatContext = avformat_alloc_context();
    formatContext->video_codec_id = AV_CODEC_ID_MXPEG;


but it doesn't work


Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20131023/189cd42e/attachment.html>


More information about the Libav-user mailing list