[FFmpeg-user] mjpeg decoding problem
Umair.Khan at uni-klu.ac.at
Umair.Khan at uni-klu.ac.at
Wed May 11 11:32:09 CEST 2011
Hi,
My aim is not just to convert into avi format. I want to get the MJPEG streaming and save the images into JPEG. In every case, ffmpeg shows the error "mjpeg: unsupported codec type". When I looked into ffmpeg supported codecs, I could only find MKTAG ('M', 'J', 'P', 'G') and no MJPEG. Offcourse this is mjpeg codec, but my camera streams with the codec ID: MJPEG. Anyone please suggest me what should I do?
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