From bd02e178379bc1845e993c957ae276e529f15024 Mon Sep 17 00:00:00 2001 From: tian <11429339@qq.com> Date: Sun, 15 Mar 2026 02:28:15 +0800 Subject: [PATCH] Add pipeline configs to isolate publish stalls --- configs/sample_rtsp_preprocess_publish.json | 75 +++++++++++++++++++++ configs/sample_rtsp_publish_only.json | 46 +++++++++++++ 2 files changed, 121 insertions(+) create mode 100644 configs/sample_rtsp_preprocess_publish.json create mode 100644 configs/sample_rtsp_publish_only.json diff --git a/configs/sample_rtsp_preprocess_publish.json b/configs/sample_rtsp_preprocess_publish.json new file mode 100644 index 0000000..16f52a6 --- /dev/null +++ b/configs/sample_rtsp_preprocess_publish.json @@ -0,0 +1,75 @@ +{ + "queue": { + "size": 16, + "strategy": "drop_oldest" + }, + "graphs": [ + { + "name": "rtsp_preprocess_publish", + "executor": { + "batch_size": 2, + "run_budget": 8 + }, + "nodes": [ + { + "id": "in", + "type": "input_rtsp", + "role": "source", + "enable": true, + "url": "rtsp://10.0.0.49:8554/cam", + "fps": 30, + "width": 1920, + "height": 1080, + "use_mpp": true, + "force_tcp": true + }, + { + "id": "pre_rgb", + "type": "preprocess", + "role": "filter", + "enable": true, + "cpu_affinity": [7], + "dst_w": 1920, + "dst_h": 1080, + "dst_format": "rgb", + "dst_packed": true, + "resize_mode": "stretch", + "rga_gate": "rtsp_preprocess_publish", + "use_rga": true + }, + { + "id": "post", + "type": "preprocess", + "role": "filter", + "enable": true, + "cpu_affinity": [7], + "dst_w": 1920, + "dst_h": 1080, + "dst_format": "nv12", + "resize_mode": "stretch", + "rga_gate": "rtsp_preprocess_publish", + "use_rga": true + }, + { + "id": "pub", + "type": "publish", + "role": "filter", + "enable": true, + "cpu_affinity": [3], + "codec": "h264", + "fps": 30, + "bitrate_kbps": 2000, + "use_mpp": true, + "outputs": [ + {"proto": "rtsp_server", "port": 8555, "path": "/live/cam1"} + ] + } + ], + "edges": [ + ["in", "pre_rgb"], + ["pre_rgb", "post", {"queue": {"size": 32, "strategy": "drop_oldest"}}], + ["post", "pub", {"queue": {"size": 64, "strategy": "drop_oldest"}}] + ] + } + ] +} diff --git a/configs/sample_rtsp_publish_only.json b/configs/sample_rtsp_publish_only.json new file mode 100644 index 0000000..7f7b3e8 --- /dev/null +++ b/configs/sample_rtsp_publish_only.json @@ -0,0 +1,46 @@ +{ + "queue": { + "size": 16, + "strategy": "drop_oldest" + }, + "graphs": [ + { + "name": "rtsp_publish_only", + "executor": { + "batch_size": 2, + "run_budget": 8 + }, + "nodes": [ + { + "id": "in", + "type": "input_rtsp", + "role": "source", + "enable": true, + "url": "rtsp://10.0.0.49:8554/cam", + "fps": 30, + "width": 1920, + "height": 1080, + "use_mpp": true, + "force_tcp": true + }, + { + "id": "pub", + "type": "publish", + "role": "filter", + "enable": true, + "cpu_affinity": [3], + "codec": "h264", + "fps": 30, + "bitrate_kbps": 2000, + "use_mpp": true, + "outputs": [ + {"proto": "rtsp_server", "port": 8555, "path": "/live/cam1"} + ] + } + ], + "edges": [ + ["in", "pub", {"queue": {"size": 64, "strategy": "drop_oldest"}}] + ] + } + ] +}