fix: pull rtsp

This commit is contained in:
langhuihui
2024-10-06 17:55:48 +08:00
parent c57200178d
commit fc790cfe06
30 changed files with 371 additions and 108 deletions

View File

@@ -1,25 +1,16 @@
global:
loglevel: debug
#rtsp:
# tcp:
# listenaddr: :10554
loglevel: trace
http: :8081
tcp: :50052
rtsp:
pull:
live/test: rtsp://127.0.0.1:8554/live/test
debug:
profile: cpu.prof
transcode:
onpub:
transform:
# .+:
# output:
# - target: rtmp://localhost/$0/h265
# conf: -loglevel debug -c:a aac -c:v hevc_videotoolbox
live/.*:
output:
- target: rtmp://localhost/$0/h264
overlay: rtmp://localhost/overlay/test
# filter: drawtext=fontfile=/usr/share/fonts/truetype/noto/NotoSans-Regular.ttf:fontsize=24:fontcolor=white:box=1:boxcolor=black@0.5:boxborderw=5:x=(w-tw)/2:y=h-th-10:text='%{localtime\:%Y-%m-%d %H.%M.%S}'
filter: |
[1:v]crop=400:300:10:10[overlay];
[0:v][overlay]overlay=600:100[base];
[base]drawtext=fontfile=/usr/share/fonts/truetype/noto/NotoSans-Regular.ttf:fontsize=24:fontcolor=white:box=1:boxcolor=black@0.5:boxborderw=5:x=(w-tw)/2:y=h-th-10:text='%{localtime\:%Y-%m-%d %H.%M.%S}'[out]
conf: -loglevel debug -c:a copy -c:v h264
^live.+:
output:
- target: rtmp://localhost/trans/$0/small
conf: -loglevel debug -c:a aac -c:v h264 -vf scale=320:240