84 lines
2.1 KiB
JSON
84 lines
2.1 KiB
JSON
{
|
|
"name": "std_service_test_stream",
|
|
"description": "最简服务可用性测试流程,用于验证视频解码、预处理、编码与发布链路是否正常。",
|
|
"source": "configs/test_face_only.json",
|
|
"slots": {
|
|
"inputs": [
|
|
{"name": "video_input_main", "type": "video_source", "required": true, "description": "主视频输入"}
|
|
],
|
|
"services": [],
|
|
"outputs": [
|
|
{"name": "stream_output_main", "type": "stream_publish", "required": true, "description": "主视频输出"}
|
|
]
|
|
},
|
|
"template": {
|
|
"executor": {
|
|
"batch_size": 1,
|
|
"run_budget": 3
|
|
},
|
|
"nodes": [
|
|
{
|
|
"id": "input_rtsp_main",
|
|
"type": "input_rtsp",
|
|
"role": "source",
|
|
"enable": true,
|
|
"url": "${slot:video_input_main.url}",
|
|
"fps": 25,
|
|
"width": 1280,
|
|
"height": 720,
|
|
"use_ffmpeg": true,
|
|
"use_mpp": false,
|
|
"force_tcp": true,
|
|
"reconnect_sec": 5,
|
|
"reconnect_backoff_max_sec": 30
|
|
},
|
|
{
|
|
"id": "prepare_publish",
|
|
"type": "preprocess",
|
|
"role": "filter",
|
|
"enable": true,
|
|
"dst_w": 1280,
|
|
"dst_h": 720,
|
|
"dst_format": "nv12",
|
|
"resize_mode": "stretch",
|
|
"use_rga": true,
|
|
"rga_gate": "service_test_pipeline_rga"
|
|
},
|
|
{
|
|
"id": "publish_stream",
|
|
"type": "publish",
|
|
"role": "sink",
|
|
"enable": true,
|
|
"codec": "h264",
|
|
"fps": 25,
|
|
"gop": 50,
|
|
"bitrate_kbps": 1500,
|
|
"use_mpp": true,
|
|
"use_ffmpeg_mux": true,
|
|
"outputs": [
|
|
{
|
|
"proto": "hls",
|
|
"path": "${slot:stream_output_main.publish_hls_path}",
|
|
"segment_sec": 2
|
|
},
|
|
{
|
|
"proto": "rtsp_server",
|
|
"port": "${slot:stream_output_main.publish_rtsp_port}",
|
|
"path": "${slot:stream_output_main.publish_rtsp_path}"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"edges": [
|
|
[
|
|
"input_rtsp_main",
|
|
"prepare_publish"
|
|
],
|
|
[
|
|
"prepare_publish",
|
|
"publish_stream"
|
|
]
|
|
]
|
|
}
|
|
}
|