# qtisocketsrc

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’s 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 with socket](https://docs.qualcomm.com/doc/80-80022-50/topic/camera.html#socketsrc-and-socketsink-use-case).

## Pad configuration

| Pad Name | Capabilities | Capabilities |
| --- | --- | --- |
| - SRC template: 'src'<br>    - <ul class="simple"><br><li><p><em>Availability:</em>  Always</p></li><br><li><p><em>Direction:</em>  source</p></li><br></ul> | ANY | – |

## Element configuration

Table : Element properties of qtisocketsrc

| Property | Description |
| --- | --- |
| name | - The name of the object.<br>    - <ul class="simple"><br><li><p>flags: readable, writable</p></li><br><li><p>String. Default: "fdsocketsrc0"</p></li><br></ul> |
| parent | - The parent of the object.<br>    - <ul class="simple"><br><li><p>flags: readable, writable</p></li><br><li><p>Object of type "GstObject"</p></li><br></ul> |
| blocksize | - Size in bytes to read per buffer (-1 = default).<br>    - <ul class="simple"><br><li><p>flags: readable, writable</p></li><br><li><p>Unsigned Integer. Range: 0 to 4294967295, default: 4096</p></li><br></ul> |
| num-buffers | - Number of buffers to output before sending EOS (-1 = unlimited).<br>    - <ul class="simple"><br><li><p>flags: readable, writable</p></li><br><li><p>Integer. Range: ˗1 to 2147483647, default: ˗1</p></li><br></ul> |
| typefind | - Run type-find before negotiating (deprecated, non-functional).<br>    - <ul class="simple"><br><li><p>flags: readable, writable, deprecated</p></li><br><li><p>Boolean. Default: false</p></li><br></ul> |
| do-timestamp | - Apply current stream time to buffers.<br>    - <ul class="simple"><br><li><p>flags: readable, writable</p></li><br><li><p>Boolean. Default: false</p></li><br></ul> |
| socket | - Location of the UNIX domain socket.<br>    - <ul class="simple"><br><li><p>flags: readable, writable, changeable only in NULL or READY state</p></li><br><li><p>String. Default: null</p></li><br></ul> |
| timeout | - Socket post timeout.<br>    - <ul class="simple"><br><li><p>flags: readable, writable, changeable only in NULL or READY state</p></li><br><li><p>Unsigned Integer64. Range: 0 to18446744073709551615, default: 0</p></li><br></ul> |

Last Published: May 14, 2026

[Previous Topic
qtisocketsink](https://docs.qualcomm.com/bundle/publicresource/80-80022-50/topics/qtisocketsink.md) [Next Topic
v4l2h264dec](https://docs.qualcomm.com/bundle/publicresource/80-80022-50/topics/v4l2h264dec.md)

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