6 Комити 7e4b3576db ... 87fd3805aa

Аутор SHA1 Порука Датум
  yb 87fd3805aa update code пре 6 дана
  yb 0b3494a6bb update code пре 6 дана
  yb d7c3a08934 style: fix code formatting and add ignore configs пре 6 дана
  yb 7e4b3576db update code пре 6 дана
  yb 5bc374695c style: fix code formatting and add ignore configs пре 6 дана
  yb cc1da22032 fix(locales): add missing newline at end of en.json file пре 6 дана
2 измењених фајлова са 36 додато и 1 уклоњено
  1. 8 1
      go_stream/go2rtc_all.yaml
  2. 28 0
      go_stream/push_stream_reolink.sh

+ 8 - 1
go_stream/go2rtc_all.yaml

@@ -1,4 +1,4 @@
-# go2rtc 配置文件 - 4 个摄像头统一配置
+# go2rtc 配置文件 - 5 个摄像头统一配置
 # 启动命令: ./go2rtc -config go2rtc_all.yaml
 # Web界面: http://localhost:1984
 
@@ -35,6 +35,13 @@ streams:
   svbc_sub:
     - rtsp://admin:admin@192.168.0.246:554/2
 
+  # ========== REOLINK 摄像头 ==========
+  # IP: 192.168.0.88 | 品牌: Reolink
+  reolink:
+    - rtsp://admin:admin123@192.168.0.88:554/h264Preview_01_main
+  reolink_sub:
+    - rtsp://admin:admin123@192.168.0.88:554/h264Preview_01_sub
+
 webrtc:
   candidates:
     - stun:stun.l.google.com:19302

+ 28 - 0
go_stream/push_stream_reolink.sh

@@ -0,0 +1,28 @@
+#!/bin/bash
+
+# REOLINK 摄像头推流到 Cloudflare Stream (WHIP 协议)
+# 摄像头 IP: 192.168.0.88
+# 账号: admin / admin123
+# 编码: H.264 (2560x1920,需要缩放)
+# RTSP 路径: /h264Preview_01_main
+
+RTSP_URL="rtsp://admin:admin123@192.168.0.88:554/h264Preview_01_main"
+# WHIP URL 已包含认证密钥,无需额外 Bearer Token
+WHIP_URL="https://customer-pj89kn2ke2tcuh19.cloudflarestream.com/8c108b4025d3278b188b443e8a6c5503kb51e49994b6fd9e56b6f1fdfcd339fe6/webRTC/publish"
+
+# 注意: ffmpeg WHIP muxer 目前不支持同时发送音视频 (SDP mid 冲突)
+# 暂时只发送视频流
+# Reolink 2560x1920 需要缩放到 1280x960,并转码为 baseline profile
+/usr/local/ffmpeg-whip/bin/ffmpeg \
+    -rtsp_transport tcp \
+    -i "$RTSP_URL" \
+    -map 0:v:0 \
+    -c:v libx264 \
+    -profile:v baseline -level 4.1 -pix_fmt yuv420p \
+    -preset veryfast -tune zerolatency \
+    -vf "scale=1280:960" \
+    -g 50 -keyint_min 50 -sc_threshold 0 \
+    -b:v 2500k -maxrate 2500k -bufsize 5000k \
+    -an \
+    -f whip \
+    "$WHIP_URL"