jpegparse required after multipartdemux?

Guillermo Rodriguez Garcia guille.rodriguez at gmail.com
Tue Aug 6 08:54:53 UTC 2019


Hello all,

I am trying to decode a live mjpeg stream from an IP camera using
souphttpsrc ! multipartdemux ! avdec_ffmpeg, but I get not-negotated errors:

0:00:01.216966334   326   0xaba920 WARN                 basesrc
gstbasesrc.c:3055:gst_base_src_loop:<souphttpsrc0> error: Internal data
stream error.
0:00:01.217129000   326   0xaba920 WARN                 basesrc
gstbasesrc.c:3055:gst_base_src_loop:<souphttpsrc0> error: streaming
stopped, reason not-negotiated (-4)
ERROR: from element /GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0:
Internal data stream error.

If I add jpegparse between multipartdemux and avdec_ffmpeg, then all works
fine.

But, once I add jpegparse, do I need multipartdemux at all ? souphttpsrc
! jpegparse ! avdec_ffmpeg *also* seems to work fine. Is there any reason
to keep multipartdemux then?

Moreover, if I replace avdec_ffmpeg with jpegdec, then I don't seem to need
neither multipartdemux nor jpegparse; I can just have souphttpsrc ! jpegdec
and that seems to work as well...

I am a bit confused about the interaction between all these plugins. Also I
checked the examples in the documentation, but that didn't help -- the docs
for multipartdemux show an example pipeline that includes jpegparse, while
the docs for a jpegparse show a similar example pipeline that does not
include multipartdemux...

Is there a "canonical" or recommended way to decode a mjpeg stream from a
live HTTP source?

Thank you,

Guillermo Rodriguez Garcia
guille.rodriguez at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190806/31f377d8/attachment-0001.html>


More information about the gstreamer-devel mailing list