[FFmpeg-user] mjpeg decoding problem

Umair.Khan at uni-klu.ac.at Umair.Khan at uni-klu.ac.at
Wed May 11 16:08:34 CEST 2011


I also tried output-example.c in libavcodec. When I try to run it with the following arguments:


./output-example rtsp://192.168.1.168:8555/PSIA/Streaming/channels/0?videoCodecType=MJPEG


I get following errors:


[mjpeg @ 0x9846750] only 8 bits/component accepted
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (cd)
[mjpeg @ 0x9846750] Found EOI before any SOF, ignoring
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (c8)
[mjpeg @ 0x9846750] Can not process SOS before SOF, skipping
[mjpeg @ 0x9846750] Found EOI before any SOF, ignoring
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (ce)
[mjpeg @ 0x9846750] dqt: 16bit precision
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (cd)
[mjpeg @ 0x9846750] Found EOI before any SOF, ignoring
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (ca)
[mjpeg @ 0x9846750] only 8 bits/component accepted
[mjpeg @ 0x9846750] only 8 bits/component accepted
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (c6)
[mjpeg @ 0x9846750] invalid id 61
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (cd)
[mjpeg @ 0x9846750] Found EOI before any SOF, ignoring
[mjpeg @ 0x9846750] only 8 bits/component accepted
[mjpeg @ 0x9846750] [IMGUTILS @ 0xbfb7f138] Picture size 51117x18481 is invalid
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (cf)
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (c7)
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (c5)
[mjpeg @ 0x9846750] Found EOI before any SOF, ignoring
[mjpeg @ 0x9846750] only 8 bits/component accepted
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (cb)
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (cd)
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (cd)
[mjpeg @ 0x9846750] Found EOI before any SOF, ignoring
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (c7)
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (c5)
[mjpeg @ 0x9846750] Found EOI before any SOF, ignoring
[mjpeg @ 0x9846750] invalid id 198
[mjpeg @ 0x9846750] dqt: 16bit precision
[mjpeg @ 0x9846750] Found EOI before any SOF, ignoring
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (c6)
[mjpeg @ 0x9846750] [IMGUTILS @ 0xbfb7f138] Picture size 27136x19751 is invalid
[mjpeg @ 0x9846750] Found EOI before any SOF, ignoring
[mjpeg @ 0x9846750] only 8 bits/component accepted
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (c5)
[mjpeg @ 0x9846750] Found EOI before any SOF, ignoring
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (ca)
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (c5)
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (cd)
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (cf)
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (c7)
[mjpeg @ 0x9846750] Found EOI before any SOF, ignoring
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (ce)
[mjpeg @ 0x9846750] Found EOI before any SOF, ignoring
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (c6)
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (cd)
[mjpeg @ 0x9846750] Found EOI before any SOF, ignoring
[mjpeg @ 0x9846750] only 8 bits/component accepted
[mjpeg @ 0x9846750] Can not process SOS before SOF, skipping
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (c6)
[mjpeg @ 0x9846750] Found EOI before any SOF, ignoring
[mjpeg @ 0x9846750] Can not process SOS before SOF, skipping
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (c6)
[mjpeg @ 0x9846750] Can not process SOS before SOF, skipping
[mjpeg @ 0x9846750] Found EOI before any SOF, ignoring
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (ca)
[mjpeg @ 0x9846750] mjpeg: unsupported coding type (c7)
[mjpeg @ 0x9846750] only 8 bits/component accepted
[mjpeg @ 0x9846750] dqt: 16bit precision
[mjpeg @ 0x9846750] No JPEG data found in image





Please anyone help me what is this problem?


Regards,



































Dipl.-Ing. Umair Ali Khan
Research Staff Member,
Pervasive Computing Group
Institute of Networked and Embedded Systems
Klagenfurt University, Austria
--------------------------------------------------------
Lakeside Park L.2.1.33, 9020 Klagenfurt
Voice: +43(0)463 2700 3872
Fax:    +43(0)463 2700 3679
--------------------------------------------------------
www.pervasive.uni-klu.ac.at
>>> "Vincent,Wei"  05/11/11 10:56 AM >>>
Hi,
      As I know, the avi file format is use the CODEC_ID_MPEG4 as the codec,
so this may not support the MJPEG, you may
try the MPEG4 stream , or you can edit ffmpeg.c to change the codec type
,and rebuild the ffmpeg.

      AVOutputFormat avi_muxer = {
    "avi",
    "avi format",
    "video/x-msvideo",
    "avi",
    sizeof(AVIContext),
    CODEC_ID_MP2,
    CODEC_ID_MPEG4,
    avi_write_header,
    avi_write_packet,
    avi_write_trailer,
    .codec_tag= (const AVCodecTag*[]){codec_bmp_tags, codec_wav_tags, 0},
};
2011/5/11 

> Hi,
>
>
> I am streaming MJPEG stream from an IP camera over RTSP. The stream runs
> fine in VLC but when I try to stream with FFMPEG, it gives following error:
>
>
> "mjpeg: unsupported coding type"
>
>
> I am using following command to record a video from the camera:
>
>
> ffmpeg -i rtsp://
> 192.168.1.168:8555/PSIA/Streaming/channels/0?videoCodecType=MJPEG -vcodec
> mjpeg sample.avi
>
>
> Can anyone please tell me the solution of this issue? I have spent many
> days to resolve it, but to no avail. I will really appreciate any help in
> this regard.
>
>
> Regards,
>
>
> Dipl.-Ing. Umair Ali Khan
> Research Staff Member,
> Pervasive Computing Group
> Institute of Networked and Embedded Systems
> Klagenfurt University, Austria
> --------------------------------------------------------
> Lakeside Park L.2.1.33, 9020 Klagenfurt
> Voice: +43(0)463 2700 3872
> Fax:    +43(0)463 2700 3679
> --------------------------------------------------------
> www.pervasive.uni-klu.ac.at
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user




More information about the ffmpeg-user mailing list