# go2rtc 配置文件 - ANPVIZ
# 启动命令: ./go2rtc -config go2rtc_anpviz.yaml
# Web界面: http://localhost:1985

streams:
  # ANPVIZ 摄像头 (使用 ffmpeg 转码 H.265 -> H.264)
  anpviz:
    - ffmpeg:rtsp://admin:123456@192.168.0.96:554/Streaming/Channels/101#video=h264

  # 主码流 (原始 H.265，可能不支持浏览器播放)
  anpviz_main:
    - rtsp://admin:123456@192.168.0.96:554/Streaming/Channels/101

  # 子码流 (通常是较低分辨率)
  anpviz_sub:
    - rtsp://admin:123456@192.168.0.96:554/Streaming/Channels/102

webrtc:
  candidates:
    - stun:stun.l.google.com:19302

api:
  listen: ":1985"
  origin: "*"

log:
  level: info
  format: text
