# qtisocketsink

Source: [https://docs.qualcomm.com/doc/80-70015-50/topic/qtisocketsink.html](https://docs.qualcomm.com/doc/80-70015-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 (which 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.

The following are some of the configurations that can be performed using
            qtisocketsink:

| Property | Configuration |
| :--- | :--- |
| *async* | Set to false for the sockets to transition asynchronously to the<br>                            PAUSED state. |
| *max-lateness* | Adjust the maximum number of nanoseconds that a buffer can be late<br>                            before it is dropped. |
| *max-bitrate* | Set the maximum bits per second to render. |

## 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-70015-50/topic/socketsrc-and-socketsink-use-case.html).

## Pad configuration

| Pad Name | Capabilities | Capabilities |
| --- | --- | --- |
| SINK template: 'sink'<br><br><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 that was 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:** [Display, camera, encode and decode plugins](https://docs.qualcomm.com/doc/80-70015-50/topic/display-plugins.html)

Last Published: Oct 27, 2025

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