[*] 服务端录制

This commit is contained in:
acgist
2023-06-01 07:32:35 +08:00
parent 441e99483b
commit a06f6a251f
11 changed files with 521 additions and 167 deletions

View File

@@ -228,21 +228,21 @@ taoyao:
# SDPVP8 | H264
sdp: |
v=0
o=- 0 0 IN IP4 127.0.0.1
o=- 0 0 IN IP4 %s
s=TaoyaoRecord
t=0 0
m=audio %d RTP/AVP 97
c=IN IP4 127.0.0.1
a=rtpmap:97 opus/48000/2
c=IN IP4 %s
a=rtpmap:97 OPUS/48000/2
a=fmtp:97 sprop-stereo=1
m=video %d RTP/AVP 96
c=IN IP4 127.0.0.1
c=IN IP4 %s
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1
# 录像命令
record: ffmpeg -y -protocol_whitelist "file,rtp,udp" -i %s %s
record: ffmpeg -protocol_whitelist "file,rtp,udp" -y -i %s %s
# 截图命令
preview: ffmpeg -y -i %s -t %d -f image2 %s
preview: ffmpeg -y -i %s -ss %d -vframes 1 -f image2 %s
# 时长命令
duration: ffprobe -i %s -show_entries format=duration
# 存储目录
@@ -251,6 +251,8 @@ taoyao:
storage-image-path: /data/taoyao/storage/image
# 视频存储目录
storage-video-path: /data/taoyao/storage/video
# 录像地址
host: 127.0.0.1
# 端口范围
min-port: 50000
max-port: 59999