https://github.com/deepch/dvriptowebrtc
https://github.com/deepch/dvriptowebrtc
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/deepch/dvriptowebrtc
- Owner: deepch
- Created: 2021-05-23T11:13:25.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T08:43:09.000Z (over 2 years ago)
- Last Synced: 2025-04-09T11:50:16.630Z (over 1 year ago)
- Language: JavaScript
- Size: 1.42 MB
- Stars: 8
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DVRIPtoWebRTC
###WORK in progress!! not full work
DVRIP Stream to WebBrowser over WebRTC based on Pion
full native! not use ffmpeg or gstreamer

### Download Source
1. Download source
```bash
$ git clone https://github.com/deepch/DVRIPtoWebRTC
```
3. CD to Directory
```bash
$ cd DVRIPtoWebRTC/
```
4. Test Run
```bash
$ GO111MODULE=on go run *.go
```
5. Open Browser
```bash
open web browser http://127.0.0.1:8083 work chrome, safari, firefox
```
## Configuration
### Edit file config.json
format:
```bash
{
"server": {
"http_port": ":8083",
"ice_servers": ["stun:stun.l.google.com:19302"],
"ice_username": "",
"ice_credential": ""
},
"streams": {
"H264_AAC": {
"on_demand": false,
"disable_audio": true,
"url": "dvrip://95.72.95.9/Main"
}
}
}
```
## Livestreams
Use option ``` "on_demand": false ``` otherwise you will get choppy jerky streams and performance issues when multiple clients connect.
## Limitations
Video Codecs Supported: H264
Audio Codecs Supported: pcm alaw and pcm mulaw
## Team
Deepch - https://github.com/deepch streaming developer
Dmitry - https://github.com/vdalex25 web developer
Now test work on (chrome, safari, firefox) no MAC OS
## Other Example
Examples of working with video on golang
- [RTSPtoWeb](https://github.com/deepch/RTSPtoWeb)
- [DVRIPtoWebRTC](https://github.com/deepch/DVRIPtoWebRTC)
- [RTSPtoWSMP4f](https://github.com/deepch/RTSPtoWSMP4f)
- [RTSPtoImage](https://github.com/deepch/RTSPtoImage)
- [RTSPtoHLS](https://github.com/deepch/RTSPtoHLS)
- [RTSPtoHLSLL](https://github.com/deepch/RTSPtoHLSLL)
[](https://www.paypal.me/AndreySemochkin) - You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea: