RTSPãããã³ã«ã使ç¨ããè¤æ°ã®ã«ã¡ã©æ åãä¸ç¶ããå¿ è¦ããã£ãã®ã§ãRTSPãããã·ãç«ã¦ãæé ãã¡ã¢ãã¦ããã¾ãã
ã¤ã³ã¹ãã¼ã«
RTSPãããã·ã«ã¯ãrtsp-simple-serverã使ç¨ãã¾ãã
ããªã³ã³ãã¤ã«ãããå®è¡å¯è½ãã¡ã¤ã«ãç¨æããã¦ããã®ã§ã次ã®URLãã対象ã¨ãªããã©ãããã©ã¼ã ã®ããã±ã¼ã¸ããã¦ã³ãã¼ããã¾ãã
Releases · aler9/rtsp-simple-server · GitHub
ãã¦ã³ãã¼ãããããã±ã¼ã¸ãä»»æã®å ´æã§å±éãã¾ããããã±ã¼ã¸ã«ã¯æ¬¡ã®ï¼ã¤ã®ãã¡ã¤ã«ãå«ã¾ãã¦ãã¾ãã
# Linuxçã®å ´å rtsp-simple-server # å®è¡å¯è½ãã¡ã¤ã« rtsp-simple-server.yml # è¨å®ãã¡ã¤ã«
è¨å®
ãããã·ç¨ã«è¨å®ãã¡ã¤ã«ãã³ãã¼ãã¾ãã
$ cp rtsp-simple-server.yml rtsp-proxy.yml
RTSP以å¤ã®ãããã³ã« (RTMP, HLS) ã¯ç¡å¹åãã¦ããã¾ãã
rtmpDisable: yes hlsDisable: yes
pathsã»ã¯ã·ã§ã³ã次ã®ããã«æ¸ãæãã¾ãã
paths: camera/1: source: rtsp://[ã«ã¡ã©1ã®URL] sourceOnDemand: yes camera/2: source: rtsp://[ã«ã¡ã©2ã®URL] sourceOnDemand: yes
sourceOnDemandãyesã«ããã¨ãã¯ã©ã¤ã¢ã³ããæ¥ç¶ãã¦ããã¨ãã«ã«ã¡ã©ããã¹ããªã¼ã ãpullããããã«ãªãã¾ãã
èµ·å
"/path/to"ã¯é©å®èªã¿æ¿ãã¦ãã ããã
$ /path/to/rtsp-simple-server /path/to/rtsp-proxy.yml
åä½ç¢ºèª
ãã¥ã¼ã¯ã§ã«ã¡ã©æ åã表示ãã¾ããVLCã¡ãã£ã¢ãã¬ã¼ã¤ã¼ã使ãå ´åã¯æ¬¡ã®ããã«ãã¾ãã
# ã«ã¡ã©1 vlc rtsp://[ãããã·ã®URL]/camera/1 # ã«ã¡ã©2 vlc rtsp://[ãããã·ã®URL]/camera/2