https://github.com/aak1247/rtsp2hls
out of box solution to convert rtsp stream to hls stream. 转流转码工具,可以转换RTSP流为HLS流
https://github.com/aak1247/rtsp2hls
docker docker-image hls hls-live-streaming hls-stream livestream rtsp rtsp-stream rtsp-to-hls
Last synced: 5 months ago
JSON representation
out of box solution to convert rtsp stream to hls stream. 转流转码工具,可以转换RTSP流为HLS流
- Host: GitHub
- URL: https://github.com/aak1247/rtsp2hls
- Owner: aak1247
- Created: 2023-01-11T16:00:09.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-28T12:06:52.000Z (about 2 years ago)
- Last Synced: 2024-04-28T13:26:43.023Z (about 2 years ago)
- Topics: docker, docker-image, hls, hls-live-streaming, hls-stream, livestream, rtsp, rtsp-stream, rtsp-to-hls
- Language: TypeScript
- Homepage:
- Size: 90.8 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RTSP2HLS
| English | [简体中文](./README.zh-CN.md) |
## Deploy
```bash
docker run -d -p 3001:3001 --name rtsp2hls aak1247/rtsp2hls
```
1. docker image already contains ffmpeg package, can be deployed independently, the default temporary file directory is /app/dist/rtsp_temp.
2. default port is 3001
## Workflow
1. The rtsp2hls service handles the url, concatenates the complete rtsp address, calls the ffmpeg sub-process to complete the rtsp to hls conversion, and creates a temporary folder to save the temporary files of the current stream.
2. Periodically process the current stream, close the sub-process and delete the temporary file after timeout (default 5min)
## Example
> If Request rtsp stream address: ``rtsp://1@2:xxx.bbb``, ``rtsp-stream`` service deployment address: ``http://localhost:3001``, then request ``http://localhost:3001/1@2:xxx.bbb`` to get hls stream