rtpjpegdepay ! jpegdec error

Wolfgang Grandegger wg at grandegger.com
Tue Dec 10 12:28:18 UTC 2019


we have problems to decode a MJPEG RTP video stream from a camera
with the pipeline:

$ gst-launch-1.0 udpsrc port=5678 caps="application/x-rtp,media=(string)video,clockrate=(int)90000,\
	encoding-name=(string)JPEG,payload=(int)26,framerate=(fraction)30/1" \
      ! rtpjitterbuffer latency=20 ! rtpjpegdepay ! jpegdec ! vaapisink

The pipeline aborts and reports the warning/error:

  0 WARN            videodecoder gstvideodecoder.c:4138:_gst_video_decoder_error:<jpegdec0>
  error: Decode error #6 3: Invalid JPEG file structure: two SOI markers

"vaapijpegdec" shows the image but the brightness changes at a rather
high frequency (flickering),

MPlayer, VLC and FFPlay do *not* have real problems with the stream. VLC
is reporting the following warnings, though:

  [mjpeg @ 0x7fd468c305a0] No JPEG data found in image

Obviously there are JPEG frames, which the JPEG decoders from GStreamer
do not like. Any idea, what could cause this problem? Could that be a
bug in the "rtpjpegdepay" element?

Thanks for your help.


More information about the gstreamer-devel mailing list