multipartdemux

multipartdemux — Demuxer that takes a multipart digital stream as input and demuxes one or many digital streams from it.

Synopsis




            GstMultipartDemux;

Object Hierarchy


  GObject
   +----GstObject
         +----GstElement
               +----GstMultipartDemux

Properties


  "autoscan"             gboolean              : Read / Write / Construct
  "boundary"             gchararray            : Read / Write / Construct

Description

MultipartDemux uses the Content-type field of incoming buffers to demux and push data to dynamic source pads. Most of the time multipart streams are sequential JPEG frames generated from a live source such as a network source or a camera.

Sample pipelines

Here is a simple pipeline to demux a multipart file muxed with GstMultipartMux containing JPEG frames at a rate of 5 frames per second :

gst-launch filesrc location=/tmp/test.multipart ! multipartdemux ! jpegdec ! video/x-raw-yuv, framerate=(fraction)5/1 ! ffmpegcolorspace ! ximagesink

The output buffers of the multipartdemux typically have no timestamps and are usually played as fast as possible (at the rate that the source provides the data).

the content in multipart files is separated with a boundary string that can be configured specifically with the "boundary" property otherwise it will be autodetected.

Element Information

plugin multipart
author Wim Taymans <wim@fluendo.com>
class Codec/Demuxer

Details

GstMultipartDemux

typedef struct _GstMultipartDemux GstMultipartDemux;

The opaque GstMultipartDemux structure.

Property Details

The "autoscan" property

  "autoscan"             gboolean              : Read / Write / Construct

Try to autofind the prefix.

Default value: FALSE


The "boundary" property

  "boundary"             gchararray            : Read / Write / Construct

The boundary string separating data.

Default value: "ThisRandomString"

See Also

GstMultipartMux