https://github.com/meonardo/accrtsprtc
https://github.com/meonardo/accrtsprtc
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/meonardo/accrtsprtc
- Owner: Meonardo
- Created: 2021-07-02T09:49:38.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-10T10:53:56.000Z (over 3 years ago)
- Last Synced: 2025-01-29T22:19:18.469Z (4 months ago)
- Language: Python
- Size: 1.44 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## accrtsprtc
A simple HTTP server for starting & stopping publishing RTSP stream to JanusVideoRoom.
## Notice
* aiortc is a copy from [jpiat](https://github.com/jpiat/aiortc) (brilliant work of avoiding unnecessary transcoding);
## Usage
For Server side:
* Run `python3 accrtsprtc.py --p {your port}`;
* Install some dependencies if any error pop out;
* Need Gstreamer framework(python binding).For client side:
* Start publishing RTSP stream to Janus VideoRoom
URI:
**POST** http://192.168.5.12:9001/camera/start
Params: (**form**)
| | Type | Example | Notice |
| :-----: | :----: | :--------------------------------: | :-----------------------: |
| rtsp | String | rtsp://192.168.5.158:554/main.h264 | Required |
| display | String | IPCamera158 | Required |
| room | Int | 1234 | Required |
| janus | String| ws://127.0.0.1:8188 | Required |Response:
`{
"success": true,
"code": 1,
"data": "rtsp://192.168.5.201:554/main.h264 has been published to VideoRoom 1234"
}`* Stop publishing RTSP stream to Janus VideoRoom
URI:
**POST** http://192.168.5.12:9001/camera/stop
Params: (**form**)
| | Type | Example | Notice |
| :--: | :----: | :--------------------------------: | :----: |
| rtsp | String | rtsp://192.168.5.158:554/main.h264 | Required |
| room | Int | 1234 | Required |Response:
`{
"success": true,
"code": 1,
"data": "rtsp://192.168.5.201:554/main.h264 Stopped!"
}`