Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deepch/RTSPtoWebRTC
RTSP to WebRTC use Pion WebRTC
https://github.com/deepch/RTSPtoWebRTC
Last synced: 3 months ago
JSON representation
RTSP to WebRTC use Pion WebRTC
- Host: GitHub
- URL: https://github.com/deepch/RTSPtoWebRTC
- Owner: deepch
- License: mit
- Created: 2018-08-27T20:01:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T14:34:54.000Z (4 months ago)
- Last Synced: 2024-11-04T19:41:35.796Z (3 months ago)
- Language: JavaScript
- Size: 1.61 MB
- Stars: 1,576
- Watchers: 37
- Forks: 418
- Open Issues: 90
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pion - deepch/RTSPtoWebRTC - RTSP to WebRTC using Pion WebRTC (Media API)
README
# RTSPtoWebRTC
RTSP Stream to WebBrowser over WebRTC based on Pion (full native! not using ffmpeg or gstreamer).
**Note:** [RTSPtoWeb](https://github.com/deepch/RTSPtoWeb) is an improved service that provides the same functionality, an improved API, and supports even more protocols. *RTSPtoWeb is recommended over using this service.*
if you need RTSPtoWSMP4f use https://github.com/deepch/RTSPtoWSMP4f
![RTSPtoWebRTC image](doc/demo4.png)
### Download Source
1. Download source
```bash
$ git clone https://github.com/deepch/RTSPtoWebRTC
```
3. CD to Directory
```bash
$ cd RTSPtoWebRTC/
```
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"
},
"streams": {
"demo1": {
"on_demand" : false,
"url": "rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa"
},
"demo2": {
"on_demand" : true,
"url": "rtsp://admin:[email protected]/mpeg4"
},
"demo3": {
"on_demand" : false,
"url": "rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa"
}
}
}
```## 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)
- [RTSPtoWebRTC](https://github.com/deepch/RTSPtoWebRTC)
- [RTSPtoWSMP4f](https://github.com/deepch/RTSPtoWSMP4f)
- [RTSPtoImage](https://github.com/deepch/RTSPtoImage)
- [RTSPtoHLS](https://github.com/deepch/RTSPtoHLS)
- [RTSPtoHLSLL](https://github.com/deepch/RTSPtoHLSLL)[![paypal.me/AndreySemochkin](https://ionicabizau.github.io/badges/paypal.svg)](https://www.paypal.me/AndreySemochkin) - You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea: