Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mpromonet/rtsp2web
RTSP to websocket proxy
https://github.com/mpromonet/rtsp2web
rtsp webcodecs websocket
Last synced: 3 months ago
JSON representation
RTSP to websocket proxy
- Host: GitHub
- URL: https://github.com/mpromonet/rtsp2web
- Owner: mpromonet
- License: unlicense
- Created: 2024-02-18T14:07:17.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-10-13T17:09:12.000Z (4 months ago)
- Last Synced: 2024-10-16T03:49:22.674Z (4 months ago)
- Topics: rtsp, webcodecs, websocket
- Language: C++
- Homepage: https://rtsp2web.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/
- Size: 482 KB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[![Snap Status](https://snapcraft.io/rtsp2ws/badge.svg)](https://snapcraft.io/rtsp2ws)
[![GithubCI](https://github.com/mpromonet/rtsp2ws/workflows/C/C++%20CI%20linux/badge.svg)](https://github.com/mpromonet/rtsp2ws/actions)
[![GithubCI](https://github.com/mpromonet/rtsp2ws/workflows/C/C++%20CI%20windows/badge.svg)](https://github.com/mpromonet/rtsp2ws/actions)# rtsp2web
This is a simple application that connect to RTSP streams, send compressed data over websocket and then decode on browser side using [webcodec](https://github.com/w3c/webcodecs)
[![Screenshot](images/screenshot.jpg)](https://rtsp2web.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io)
[Live Demo](https://rtsp2web.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io)Build
-------
cmake . && makeUsage
-------
./rtsp2ws [OPTION...] ...-h, --help Print usage
-v, --verbose arg Verbose (default: 0)
-P, --port arg Listening port (default: 8080)
-N, --thread arg Server number threads (default: "")
-p, --path arg Server root path (default: html)
-c, --sslkeycert arg Path to private key and certificate for HTTPS (default: "keycert.pem")
-C, --config arg Config
-r, --rtptransport arg RTP transport(udp,tcp,multicast,http) (default:
tcp)Using Docker image
===============
You can start the application using the docker image :docker run -p 8080:8080 ghcr.io/mpromonet/rtsp2web
The container entry point is the application, then you can :
* get the help using :
docker run ghcr.io/mpromonet/rtsp2web -h
* run the container specifying parameters :
docker run -p 8080:8080 ghcr.io/mpromonet/rtsp2web rtsp://37.157.51.30/axis-media/media.amp rtsp://71.83.5.156/axis-media/media.amp rtsp://86.44.41.160/axis-media/media.amp
docker run -p 8080:8080 -v $PWD/keycert.pem:/tmp/keycert.pem ghcr.io/mpromonet/rtsp2web -c /tmp/keycert.pem rtsp://37.157.51.30/axis-media/media.amp rtsp://71.83.5.156/axis-media/media.amp