# qtisocketsrc

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

The qtisocketsrc plugin uses UNIX sockets to receive FD backed [GstBuffers](https://gstreamer.freedesktop.org/documentation/gstreamer/gstbuffer.html) from other processes that have
        qtisocketsink as the exit point.

The qtisocketsrc plugin requires a socket file (which should have the extension of .sock)
            to be passed as the socket property so it can receive the file descriptor.

After connecting to a socket, the plugin polls or waits to receive a GstBuffer that is
            used to create a block to contain the frame data received.

Customizations can be done on buffer such as:

- Block size: The read buffer size in bytes.
- num-buffers: The number of buffers that are sent to the output before sending the
                EOF signal.

## 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) → [GstBaseSrc](https://gstreamer.freedesktop.org/documentation/base/gstbasesrc.html?gi-language=c) → [GstPushSrc](https://gstreamer.freedesktop.org/documentation/base/gstpushsrc.html?gi-language=c) → GstFdSocketSrc

The following tables provide information on pad templates and element properties of
                qtisocketsrc. 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 |
| --- | --- | --- |
| SRC template: 'src'<br><ul class="ul" id="qtisocketsrc__ul_kll_q2p_y1c"><br>                                    <li class="li"><em class="ph i">Availability:</em> Always</li><br><br>                                    <li class="li"><em class="ph i">Direction:</em> source</li><br><br>                                </ul> | ANY | – |

## Element configuration

Table : Element properties of qtisocketsrc

| Property | Description |
| --- | --- |
| name | The name of the object.<ul class="ul" id="qtisocketsrc__ul_vgm_swn_myb"><br>                                    <li class="li">flags: readable, writable</li><br><br>                                    <li class="li">String. Default: "fdsocketsrc0"</li><br><br>                                </ul> |
| parent | The parent of the object.<ul class="ul" id="qtisocketsrc__ul_wgm_swn_myb"><br>                                    <li class="li">flags: readable, writable</li><br><br>                                    <li class="li">Object of type "GstObject"</li><br><br>                                </ul> |
| blocksize | Size in bytes to read per buffer (-1 = default).<ul class="ul" id="qtisocketsrc__ul_xgm_swn_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> |
| num-buffers | Number of buffers to output before sending EOS (-1 =<br>                                    unlimited).<ul class="ul" id="qtisocketsrc__ul_ygm_swn_myb"><br>                                    <li class="li">flags: readable, writable</li><br><br>                                    <li class="li">Integer. Range: -1 - 2147483647 Default: -1</li><br><br>                                </ul> |
| typefind | Run typefind before negotiating (deprecated, non-functional).<ul class="ul" id="qtisocketsrc__ul_zgm_swn_myb"><br>                                    <li class="li">flags: readable, writable, deprecated</li><br><br>                                    <li class="li">Boolean. Default: false</li><br><br>                                </ul> |
| do-timestamp | Apply current stream time to buffers.<ul class="ul" id="qtisocketsrc__ul_ahm_swn_myb"><br>                                    <li class="li">flags: readable, writable</li><br><br>                                    <li class="li">Boolean. Default: false</li><br><br>                                </ul> |
| socket | Location of the UNIX domain socket.<ul class="ul" id="qtisocketsrc__ul_bhm_swn_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> |
| timeout | Socket post timeout.<ul class="ul" id="qtisocketsrc__ul_chm_swn_myb"><br>                                    <li class="li">flags: readable, writable, changeable only in NULL or READY<br>                                        state</li><br><br>                                    <li class="li">Unsigned Integer64. Range: 0 - 18446744073709551615 Default:<br>                                        0</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
qtisocketsink](https://docs.qualcomm.com/bundle/publicresource/80-70015-50/topics/qtisocketsink.md) [Next Topic
v4l2h264dec](https://docs.qualcomm.com/bundle/publicresource/80-70015-50/topics/v4l2h264dec.md)