All Projects → GB28181 → VAG.Node

GB28181 / VAG.Node

Licence: MIT license
GB28181 PS流转发网关服务<Node 版>,以GB28181对接的方式将摄像机/硬盘录像机 的PS流(H264/H265)打包推送到RTMP服务器。

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to VAG.Node

Pandoraplayer
🅿️ PandoraPlayer is a lightweight music player for iOS, based on AudioKit and completely written in Swift.
Stars: ✭ 1,037 (+2060.42%)
Mutual labels:  streaming, media
Rtp
A Go implementation of RTP
Stars: ✭ 120 (+150%)
Mutual labels:  streaming, media
Oblecto
Oblecto is a media server, which streams media you already own, and is designed to be at the heart of your entertainment experience. It runs on your home server to index and analyze your media such as Movies and TV Shows and presents them in an interface tailored for your media consupmtion needs.
Stars: ✭ 67 (+39.58%)
Mutual labels:  streaming, media
Gb28181.solution
Linux/Win/Docker/kubernetes/Chart/Kustomize/GB28181/SIP/RTP/SDP/WebRTC/作为上下级域/平台级联互联
Stars: ✭ 323 (+572.92%)
Mutual labels:  streaming, sip
Azure Event Hubs
☁️ Cloud-scale telemetry ingestion from any stream of data with Azure Event Hubs
Stars: ✭ 233 (+385.42%)
Mutual labels:  streaming, node-js
Homehost
self-hosted, Netflix-like app made for streaming
Stars: ✭ 564 (+1075%)
Mutual labels:  streaming, media
Swifty360player
iOS 360-degree video player streaming from an AVPlayer.
Stars: ✭ 118 (+145.83%)
Mutual labels:  streaming, media
Streama
Self hosted streaming media server. https://docs.streama-project.com/
Stars: ✭ 8,948 (+18541.67%)
Mutual labels:  streaming, media
Yt Dlc
media downloader and library for various sites.
Stars: ✭ 2,590 (+5295.83%)
Mutual labels:  streaming, media
Render Media
Intelligently render media files in the browser
Stars: ✭ 181 (+277.08%)
Mutual labels:  streaming, media
Icecast Server
Icecast streaming media server (Mirror) - Please report bugs at https://gitlab.xiph.org/xiph/icecast-server/issues
Stars: ✭ 312 (+550%)
Mutual labels:  streaming, media
exosip
some library source code about sip
Stars: ✭ 18 (-62.5%)
Mutual labels:  sip, gb28181
Rtspallthethings
Deprecated RTSP media server -- Use github.com/aler9/rtsp-simple-server instead.
Stars: ✭ 258 (+437.5%)
Mutual labels:  streaming, media
app
studio link - app - mirror repo only -> issues now https://gitlab.com/studio.link/app
Stars: ✭ 56 (+16.67%)
Mutual labels:  streaming, sip
playercast
Cast to media player and control playback remotely.
Stars: ✭ 46 (-4.17%)
Mutual labels:  streaming, media
Stun
A Go implementation of STUN
Stars: ✭ 141 (+193.75%)
Mutual labels:  streaming, sip
dsip
通过netty网络框架,编解码sip消息。 以及国标gb28181的部分功能, 不依赖spring,方便集成
Stars: ✭ 19 (-60.42%)
Mutual labels:  sip, gb28181-2016
SimpleRemoteDesktop
Remote desktop client based on h264 steam. like splashtop and other
Stars: ✭ 17 (-64.58%)
Mutual labels:  streaming, node-js
platform-sdk-js
Webtor.io platform SDK for online torrent streaming
Stars: ✭ 38 (-20.83%)
Mutual labels:  streaming
Katari
Katari - Python Session Initiated Protocol Framework
Stars: ✭ 29 (-39.58%)
Mutual labels:  sip

VAG.Node

GB28181 VAG(Video Agent Gateway) ,主要应用将 GB28181协议 摄像机/硬盘录像机 的PS流(H264/H265)打包推送到RTMP服务器发布.

国内用户可以使用下述镜像地址:

git clone https://gitee.com/GB28181/VAG.Node.git

使用

Run:

step 1: npm installyarn

step 2: node vag.js

注意:如果需要对接的流媒体服务器具备 GB28181/PS/RTP 流处理能力的,请将配置 streamServer: { enable: true } 中,enable 设置为false,这样将不启用内置的流媒体接收转换功能,支持SRS4.0,ZLMediaKit

API:

  • /api/v1/vag/devices 获取设备/通道列表
  • /api/v1/vag/devices/{deviceID}/{channelID}/ptz/{controlCode} 云台控制
  • /api/v1/vag/devices/{deviceID}/{channelID}/recordQuery/{starttime}/{endtime} 录像文件查询<按unix时间段> .
  • /api/v1/vag/devices/{deviceID}/{channelID}/realplay/{action}/{mediaHost}/{mediaPort}/{streamMode} 实时预览
  • /api/v1/vag/devices/{deviceID}/{channelID}/playback/{action}/{starttime}/{endtime}/{mediaHost}/{mediaPort}/{streamMode} 录像回看

controlCode: 0:停止/1:向右/2:向左/3:向下/4:向上/5:放大/6:缩小/7:组合(暂不支持)

action :start/stop

streamMode : 0:udp ,1:tcp被动,2:tcp主动

注意 PTZ默认速度5,暂不支持自定义速度,点击开始后云台不会停止,直到再次请求接口发送控制码0,才会停止动作

示例:

目标设备:

34020000001320000001 设备编码
34020000001310000001 通道编码

流媒体服务器:

 192.168.3.5:媒体流接收者 MediaHost
 9200: 媒体流流接收者端口 MediaPort

1、视频播放

//开始预览
http://localhost:8001/api/v1/vag/devices/34020000001320000001/34020000001310000001/realplay/start/192.168.3.5/9200/0

输出结果:

{"data":{"ssrc":"0200004754"},"result":true,"message":"OK"}

说明: 如果对接是ZLMediaKit 取ssrc转换为16进行后=0BEBD193,0BEBD193就是ZK里的流id

//停止预览
http://localhost:8001/api/v1/vag/devices/34020000001320000001/34020000001310000001/realplay/stop/192.168.3.5/9200/0

2、 云台控制

//向右转动 默认速度5
http://localhost:8001/api/v1/vag/devices/34020000001320000001/34020000001310000001/ptz/1

//停止
http://localhost:8001/api/v1/vag/devices/34020000001320000001/34020000001310000001/ptz/0

3、录像查询

按时间段(unix时戳)进行录像文件查询.

//开始查询
http://localhost:8001/api/v1/vag/devices/34020000001110000001/34020000001320000001/recordQuery/1592021099/1592161099

其中 :

34020000001320000001 设备编码 
34020000001310000001为通道编码
1583141099:开始时间  
1584161099: 结束时间

4、录像回看/停止

//开始回看
http://localhost:8001/api/v1/vag/devices/34020000001110000001/34020000001320000001/playback/start/1592029748/1592161099/192.168.3.5/9200/0

//停止回看
http://localhost:8001/api/v1/vag/devices/34020000001110000001/34020000001320000001/playback/stop/1592029748/1592161099/192.168.3.5/9200/0

其中:

34020000001320000001 设备编码 
34020000001310000001 通道编码
1592029748:开始时间 
1592161099: 结束时间
192.168.3.5: MediaHost 
9200 : MediaPort
0: streamMode 

更多

可以配合 RTMP 流服务器使用,RTMP 流服务 推荐使用 Node-Media-Server 进行测试

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].