zlibcompress

Compress data using the zlib algorithm (includes checksum).

The srcpad caps will be application/x-zlib-compressed with an original-caps field carrying the sinkpad caps.

Unless the compressed stream will be multiplexed into a container, using the GStreamer Data Protocol (GDP) is recommended so that caps are preserved in-band and zlibdecompress can restore them without out-of-band signalling.

Examples

Using GDP (caps preserved in-band)

... ! zlibcompress ! gdppay ! filesink location=/path/to/file

Without GDP

... ! zlibcompress ! filesink location=/path/to/file

See Also zlibdecompress, deflatecompress

SECTION:element-deflatecompress

Compress data using the deflate algorithm (no checksum).

The srcpad caps will be application/x-deflate-compressed with an original-caps field carrying the sinkpad caps.

Unless the compressed stream will be multiplexed into a container, using the GStreamer Data Protocol (GDP) is recommended so that caps are preserved in-band and deflatedecompress can restore them without out-of-band signalling.

Examples

Using GDP (caps preserved in-band)

... ! deflatecompress ! gdppay ! filesink location=/path/to/file

Without GDP

... ! deflatecompress ! filesink location=/path/to/file

See Also deflatedecompress, zlibcompress

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstBaseTransform
                    ╰──GstFlateCompress
                        ╰──zlibcompress

Factory details

Authors: – Daniel Morin

Classification:Encoder/Generic

Rank – none

Plugin – compress

Package – gst-plugin-compress

Pad Templates

sink

ANY

Presencealways

Directionsink

Object typeGstPad


src

application/x-zlib-compressed:

Presencealways

Directionsrc

Object typeGstPad


The results of the search are