Skip to content

out of box solution to convert rtsp stream to hls stream. 转流转码工具,可以转换RTSP流为HLS流

Notifications You must be signed in to change notification settings

aak1247/rtsp2hls

Repository files navigation

RTSP2HLS

| English | 简体中文 |

Deploy

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

About

out of box solution to convert rtsp stream to hls stream. 转流转码工具,可以转换RTSP流为HLS流

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published