Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

yanceyou/rtsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RTSP Middleware

Use node.js as middleware to translate RTSP into WebSocket

运行环境

使用

git clone <repo>
cd <repo>
npm install

参考资料

解决思路

方案1:直接连接 IP摄像头 ---> 浏览器

  1. 目前浏览器并不直接支持 RTSP 协议
  1. 使用浏览器插件 VLC WebPlugin 存在兼容性问题
  1. 使用 javascript/webassembly 直接实现对 RTSP 协议的支持
  • (^o^)/~

方案2:间接连接 IP摄像头 ---> 服务器 ---> 浏览器

  1. RTSP -> (ffmpeg -> RTMP) -> flash
  2. RTSP -> (ffmpeg -> HTTP -> WebSocket) -> Canvas
  3. RTSP -> (ffmpeg -> WebSocket[MPEG1]) -> Canvas
  4. RTSP -> (ffmpeg -> WebSocket[fMP4]) -> (MSE -> Video)
  5. RTSP -> (ffmpeg -> WebSocket[raw h264]) -> (fMP4 -> MSE -> Video)

About

Test RTSP stream.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages