Function |
Receives the input video path of the external calling API, pulls video streams, stores the pulled raw stream in the buffer, and sends the data to the downstream plugin. |
|---|---|
Constraints |
Currently, only H.264 and H.265 stream pulling is supported, and the encrypted transmission function supports only the password-based certificate private key. |
Plugin Base Class (Factory) |
mxpi_rtspsrc |
Input/Output |
|
Property |
For details, see Table 1. |
Property Name |
Description |
Mandatory or Not |
Modifiable or Not |
|---|---|---|---|
rtspUrl |
URL for obtaining RTSP streams. You can obtain the streams from the network camera or use a tool such as LIVE555 to convert local video files into RTSP streams. |
Yes |
Yes |
channelId |
Number of channels for video stream pulling. The default value is 0. |
No |
Yes |
timeout |
If no stream is pulled for a period of time (timeout), the stream pulling will stop. The default value is 0. |
No |
Yes |
fpsMode |
Whether to print the stream pulling frame rate. The value can only be 0 or 1.
If the stream address of the first stream pulling is invalid, the frame rate is not printed even if it is set to 1. |
No |
Yes |
tlsValidationFlags |
TLS certificate verification flag used to verify services. This parameter does not take effect in RTSP scenarios. The options are as follows:
|
No |
Yes |
tlsCertFilePathList |
Input CertCrt, CertKey, CaCert, Token, and Crl in sequence and separate them with commas (,). The default value is empty. This parameter does not take effect in RTSP scenarios. (The permission on the certificate and key files must be set to 400.)
|
No |
Yes |
async-handling |
Handles asynchronous status. |
No |
Yes |
message-forward |
Forwards all sub-messages. |
No |
Yes |
1 2 3 4 5 6 7 8 9 10 11 | "mxpi_rtspsrc0": { "factory": "mxpi_rtspsrc", "props": { "rtspUrl": "rtsps://username:password@xxx.xxx.xxx.xxx:xxx/xxx", "channelId": "0", "tlsValidationFlags": "127", "tlsCertFilePathList": "xxx/server.crt,xxx/server.key,xxx/ca.crt,<cert_password>,xxx/server.crl", "fpsMode": "1" }, "next": "mxpi_videodecoder0" }, |