[Bug 709352] New: Issues displaying jpeg image from an http source

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Oct 3 14:11:54 CEST 2013


https://bugzilla.gnome.org/show_bug.cgi?id=709352
  GStreamer | gst-plugins-good | git

           Summary: Issues displaying jpeg image from an http source
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: gst-plugins-good
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: matthieu.bouron at collabora.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


I've got some issue displaying jpeg images from an http source using the
following command line:

gst-launch-1.0 souphttpsrc location=http://91.121.134.112/sample.jpg !
decodebin ! videoconvert ! imagefreeze ! autovideosink

First it seems that typefind is not receiving enough data to be able to find
the width and height of the image, thus the resulting caps are just image/jpeg.

If gst-libav is present, avdec_mjpeg is used resulting in a incomplete image
displayed on screen (or no image at all), since it tries to decode an
incomplete buffer.

If gst-libav is not present, jpegdec is not used because its sink caps required
width and heigh (even if the decoder seems to have some kind of parser).
Removing the width/height caps from the jpegdec sink does the trick and the
image is displayed on screen. My question is: is removing thoses caps be ok ?
Why avdec_mjpeg is prefered over the jpegdec element ?

This problem could possibly be solved by making the http src send a first
buffer with the same size of the typefind recommanded buffer size (4096). I
didn't try this actually.

There is still an issue left with avdec_mjpeg decoder that requires the
jpegparser inserted to work as an accumulator before the decoder.

A common solution to those problems would be to auto insert the jpegparser
element. As an experiment, I tried to set the rank of the current jpegparser to
GST_RANK_PRIMARY but the element does not get auto inserted, is there a way to
do this ?

Is the new jpegparser (https://bugzilla.gnome.org/show_bug.cgi?id=673925) going
to be automatically inserted ?

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list