![]() |
![]() |
![]() |
GStreamer Good Plugins 0.10 Plugins Reference Manual | ![]() |
---|---|---|---|---|
multipartdemuxmultipartdemux — Demuxer that takes a multipart digital stream as input and demuxes one or many digital streams from it. |
"autoscan" gboolean : Read / Write / Construct "boundary" gchararray : Read / Write / Construct
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.
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.
typedef struct _GstMultipartDemux GstMultipartDemux;
The opaque GstMultipartDemux structure.
autoscan
" property"autoscan" gboolean : Read / Write / Construct
Try to autofind the prefix.
Default value: FALSE
boundary
" property"boundary" gchararray : Read / Write / Construct
The boundary string separating data.
Default value: "ThisRandomString"