rtpjpegdepay ! jpegdec error

Mailing List SVR lists at svrinformatica.it
Tue Dec 10 13:06:44 UTC 2019


Il 10/12/19 13:28, Wolfgang Grandegger ha scritto:
> Hello,

Hi

>
> 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

you can try to add a jpegparse element before jpegdec, this should drop 
invalid jpegs or you can try to replace jpegdec with avdec_mjpeg,

avdec_mjpeg requires the parsed if you don't have this patch

https://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?h=1.16

Nicola

>
> 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.
>
> Wolfgang
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list