Detect changes in resolution in a mjpeg stream

Carlos Rafael Giani dv at pseudoterminal.org
Thu Aug 13 12:03:48 PDT 2015


You can install a pad probe at the srcpad of jpegdec, and set the probe 
to watch for downstream events. If the probe then sees a CAPS event, you 
can check the caps in that event for changes in width, height, etc.

Am 2015-08-13 um 20:36 schrieb Guillermo Rodriguez Garcia:
> Hello all,
>
> I have a mjpeg stream that can sometimes switch to a different image
> resolution on the fly. This depends on external events over which I
> have no control. When this happens, I need to do some extra processing
> in my application.
>
> The pipeline is souphttpsrc ! multipartdemux ! jpegdec ! <custom sink element>
>
> Are there any events related to multipartdemux or jpegdec that I could
> use to detect these changes in resolution ?
>
> Thank you,
>
> Guillermo Rodriguez Garcia
> guille.rodriguez at gmail.com
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list