appsrc
Function |
Native GStreamer plugin. This plugin is used together with the SendData and SendDataWithUniqueId APIs to send data to the stream. appsrc sends data to the downstream element. The preceding two APIs are valid only when the appsrc plugin exists in the stream. |
|---|---|
Constraints |
None |
Plugin Base Class (Factory) |
appsrc |
Input/Output |
Input: external API calling Output: buffer (data type: MxpiBuffer) |
Property |
For details, see Table 1. |
Property Name |
Description |
Mandatory or Not |
Modifiable or Not |
|---|---|---|---|
blocksize |
Size of data read from each buffer (in bytes). The default value is 4096. |
No |
Yes |
num-buffers |
Number of buffers to be output before the end of stream (EOS) is sent. The default value is -1, indicating that there is no limit. |
No |
No |
typefind |
Running type search before negotiation. This property is not recommended because it is not a function. |
No |
No |
do-timestamp |
Whether to apply the current time stream to the buffer. The default value is no. |
No |
No |
caps |
Allowed capabilities of the source pad. |
No |
No |
size |
Size of the data stream (in bytes). If the size is unknown, the value is -1. |
No |
No |
stream-type |
Stream type. The default value is Stream. |
No |
No |
max-bytes |
Maximum number of bytes in an internal queue. The default value is 200000. 0 indicates that the number of bytes is not limited. |
No |
No |
format |
Segment event and seek format. By default, the seek is performed by byte. |
No |
No |
block |
Whether to push blocks to buffer when the maximum number of bytes is queued. The default value is no. |
No |
No |
is-live |
Whether the source is a live source. By default, it is not a live source. |
No |
No |
min-latency |
Minimum delay. The default value is -1. |
No |
No |
max-latency |
Maximum delay. The default value is -1, indicating that there is no limit. |
No |
No |
emit-signals |
Whether to send the required data. If the data is sufficient, search for the data signal. The default value is yes. |
No |
No |
min-percent |
Whether to send required data when the number of bytes in the queue is less than the percentage of the maximum number of bytes. By default, the data is sent. |
No |
No |
current-level-bytes |
Number of bytes in the current queue. The default value is 0. |
No |
No |
duration |
Duration of a data stream, in nanoseconds. The default value is 18446744073709551615. |
No |
No |