76 lines
1.7 KiB
JSON
76 lines
1.7 KiB
JSON
{
|
|
"name": "std_service_test_stream",
|
|
"description": "最简服务可用性测试流程,用于验证视频解码、预处理、编码与发布链路是否正常。",
|
|
"source": "configs/test_face_only.json",
|
|
"params": {},
|
|
"template": {
|
|
"executor": {
|
|
"batch_size": 1,
|
|
"run_budget": 3
|
|
},
|
|
"nodes": [
|
|
{
|
|
"id": "input_rtsp_main",
|
|
"type": "input_rtsp",
|
|
"role": "source",
|
|
"enable": true,
|
|
"url": "${rtsp_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": "${publish_hls_path}",
|
|
"segment_sec": 2
|
|
},
|
|
{
|
|
"proto": "rtsp_server",
|
|
"port": "${publish_rtsp_port}",
|
|
"path": "${publish_rtsp_path}"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"edges": [
|
|
[
|
|
"input_rtsp_main",
|
|
"prepare_publish"
|
|
],
|
|
[
|
|
"prepare_publish",
|
|
"publish_stream"
|
|
]
|
|
]
|
|
}
|
|
}
|