# qtisocketsink

Source: [https://docs.qualcomm.com/doc/80-70014-50/topic/qtisocketsink.html](https://docs.qualcomm.com/doc/80-70014-50/topic/qtisocketsink.html)

The qtisocketsink plugin uses UNIX sockets to transfer file descriptor (FD) backed
            [GstBuffers](https://gstreamer.freedesktop.org/documentation/gstreamer/gstbuffer.html) to other processes with qtisocketsrc as
        the entry point.

The qtisocketsink plugin requires a UNIX domain socket file (should have the extension
            of .sock) to be passed as the *socket*  property to transfer the FD.

The buffers passed from the other process to this plugin are tracked with a reference
            counter, which is incremented or decremented accordingly when the buffers are sent or
            returned through the socket.

Some of the configurations that can be performed using qtisocketsink:

- The *async* property can be set to false for the sockets to transition
                asynchronously to PAUSED state.
- For more advance configuration, the maximum number of nanoseconds that a buffer can
                be late before it is dropped can be adjusted via the *max-lateness*
                property.
- The maximum bits per second to render can be set with the *max-bitrate*
                property.

## Inheritance chain

[GObject](https://docs.gtk.org/gobject/) → [GstObject](https://gstreamer.freedesktop.org/documentation/gstreamer/gstobject.html?gi-language=c) → [GstElement](https://gstreamer.freedesktop.org/documentation/gstreamer/gstelement.html?gi-language=c) → [GstBaseSink](https://gstreamer.freedesktop.org/documentation/base/gstbasesink.html?gi-language=c) → GstFdSocketSink

The following tables provide information on pad templates and element properties of
                qtisocketsink. For use cases, see [Single camera stream and socket use case](https://docs.qualcomm.com/doc/80-70014-50/topic/socketsrc-and-socketsink-use-case.html).

## Pad configuration

| Pad Name | Capabilities | Capabilities |
| --- | --- | --- |
| SINK template: 'sink'<br><ul class="ul" id="qtisocketsink__ul_dlk_vdp_y1c"><br>                                    <li class="li"><em class="ph i">Availability:</em> Always</li><br><br>                                    <li class="li"><em class="ph i">Direction:</em> sink</li><br><br>                                </ul> | ANY | – |

## Element configuration

Table : Element properties for qtisocketsink

| Property | Description |
| --- | --- |
| name | The name of the object<ul class="ul" id="qtisocketsink__ul_zmh_vxn_myb"><br>                                    <li class="li">flags: readable, writable</li><br><br>                                    <li class="li">String. Default: "fdsocketsink0"</li><br><br>                                </ul> |
| parent | The parent of the object<ul class="ul" id="qtisocketsink__ul_anh_vxn_myb"><br>                                    <li class="li">flags: readable, writable</li><br><br>                                    <li class="li">Object of type "GstObject"</li><br><br>                                </ul> |
| sync | Sync on the clock<ul class="ul" id="qtisocketsink__ul_bnh_vxn_myb"><br>                                    <li class="li">flags: readable, writable</li><br><br>                                    <li class="li">Boolean. Default: true</li><br><br>                                </ul> |
| max-lateness | Maximum number of nanoseconds that a buffer can be late before it<br>                                is dropped (-1 unlimited)<ul class="ul" id="qtisocketsink__ul_cnh_vxn_myb"><br>                                    <li class="li">flags: readable, writable</li><br><br>                                    <li class="li">Integer64. Range: -1 - 9223372036854775807 Default: -1</li><br><br>                                </ul> |
| qos | Generate QoS events upstream<ul class="ul" id="qtisocketsink__ul_dnh_vxn_myb"><br>                                    <li class="li">flags: readable, writable</li><br><br>                                    <li class="li">Boolean. Default: false</li><br><br>                                </ul> |
| async | Go asynchronously to PAUSED<ul class="ul" id="qtisocketsink__ul_enh_vxn_myb"><br>                                    <li class="li">flags: readable, writable</li><br><br>                                    <li class="li">Boolean. Default: true</li><br><br>                                </ul> |
| ts-offset | Time stamp offset in nanoseconds<ul class="ul" id="qtisocketsink__ul_fnh_vxn_myb"><br>                                    <li class="li">flags: readable, writable</li><br><br>                                    <li class="li">Integer64. Range: -9223372036854775808 - 9223372036854775807<br>                                        Default: 0</li><br><br>                                </ul> |
| enable-last-sample | Enable the last-sample property<ul class="ul" id="qtisocketsink__ul_gnh_vxn_myb"><br>                                    <li class="li">flags: readable, writable</li><br><br>                                    <li class="li">Boolean. Default: true</li><br><br>                                </ul> |
| last-sample | The last sample received in the sink<ul class="ul" id="qtisocketsink__ul_hnh_vxn_myb"><br>                                    <li class="li">flags: readable</li><br><br>                                    <li class="li">Boxed pointer of type "GstSample"</li><br><br>                                </ul> |
| blocksize | Size in bytes to pull per buffer (0 = default)<ul class="ul" id="qtisocketsink__ul_inh_vxn_myb"><br>                                    <li class="li">flags: readable, writable</li><br><br>                                    <li class="li">Unsigned Integer. Range: 0 - 4294967295 Default: 4096</li><br><br>                                </ul> |
| render-delay | Additional render delay of the sink in nanoseconds<ul class="ul" id="qtisocketsink__ul_jnh_vxn_myb"><br>                                    <li class="li">flags: readable, writable</li><br><br>                                    <li class="li">Unsigned Integer64. Range: 0 - 18446744073709551615 Default:<br>                                        0</li><br><br>                                </ul> |
| throttle-time | The time to keep between rendered buffers (0 = disabled)<ul class="ul" id="qtisocketsink__ul_knh_vxn_myb"><br>                                    <li class="li">flags: readable, writable</li><br><br>                                    <li class="li">Unsigned Integer64. Range: 0 - 18446744073709551615 Default:<br>                                        0</li><br><br>                                </ul> |
| max-bitrate | The maximum bits per second to render (0 = disabled)<ul class="ul" id="qtisocketsink__ul_lnh_vxn_myb"><br>                                    <li class="li">flags: readable, writable</li><br><br>                                    <li class="li">Unsigned Integer64. Range: 0 - 18446744073709551615 Default:<br>                                        0</li><br><br>                                </ul> |
| socket | Location of the Unix Domain Socket<ul class="ul" id="qtisocketsink__ul_mnh_vxn_myb"><br>                                    <li class="li">flags: readable, writable, changeable only in NULL or READY<br>                                        state</li><br><br>                                    <li class="li">String. Default: null</li><br><br>                                </ul> |

**Parent Topic:** [Qualcomm GST plugins](https://docs.qualcomm.com/doc/80-70014-50/topic/qim-sdk-plugins.html)

Last Published: Oct 27, 2025

[Previous Topic
qtioverlay](https://docs.qualcomm.com/bundle/publicresource/80-70014-50/topics/qtioverlay.md) [Next Topic
qtisocketsrc](https://docs.qualcomm.com/bundle/publicresource/80-70014-50/topics/qtisocketsrc.md)