[FFmpeg-user] help decoding mjpeg in rtsp

Daniel Martinez Ramos daniel.martinez at sacnet.es
Tue May 22 16:43:25 CEST 2012


Hi everyone

I'm trying to save a rtsp - MJPEG  stream to disk, but a kind of error 
in decoder is found:

root at deb:~# ffmpeg -i rtsp://192.168.101.141:665 -c:v mjpeg -na -vcodec 
copy demo.mpeg
ffmpeg version 0.8.11, Copyright (c) 2000-2011 the FFmpeg developers
   built on May 22 2012 13:32:07 with gcc 4.4.5
   configuration:
   libavutil    51.  9. 1 / 51.  9. 1
   libavcodec   53.  8. 0 / 53.  8. 0
   libavformat  53.  5. 0 / 53.  5. 0
   libavdevice  53.  1. 1 / 53.  1. 1
   libavfilter   2. 23. 0 /  2. 23. 0
   libswscale    2.  0. 0 /  2.  0. 0
[mjpeg @ 0x9619000] Found EOI before any SOF, ignoring
[mjpeg @ 0x9619000] No JPEG data found in image
[mjpeg @ 0x9619000] Found EOI before any SOF, ignoring
[mjpeg @ 0x9619000] No JPEG data found in image
[mjpeg @ 0x9619000] Found EOI before any SOF, ignoring
[mjpeg @ 0x9619000] No JPEG data found in image
[mjpeg @ 0x9619000] Found EOI before any SOF, ignoring


My ffmpeg options are :

My  ffmpeg -formats enabled
.....

DE mjpeg           raw MJPEG video
....
  DE mpeg            MPEG-1 System format
   E mpeg1video      raw MPEG-1 video
   E mpeg2video      raw MPEG-2 video
  DE mpegts          MPEG-2 transport stream format
  D  mpegtsraw       MPEG-2 raw transport stream format
  D  mpegvideo       raw MPEG video
   E mpjpeg          MIME multipart JPEG format


As far as I know, the payload type is 26, which corresponds with mjpeg 
video. VLC can

any clue? Am I missing any parameter?

Any advice will be appreciated.

Daniel M.


More information about the ffmpeg-user mailing list