HUB
Sign inSign up
rtmp logo

penndev/rtmp

By penndev

•Updated 3 days ago

Image
0

182

penndev/rtmp repository overview

⁠penndev/rtmp

RTMP live server. Play with RTMP, HTTP-FLV, HLS, and DASH.

⁠Run
docker run -d --name rtmp -p 1935:1935 -p 8080:8080 penndev/rtmp:latest -user admin -pass 123456

-user and -pass follow the image name. Omit them and publishing is not checked. Playback is not checked either way, and the query is not part of the stream name.

1935 is RTMP. 8080 is HTTP. Open http://127.0.0.1:8080/. The page lists live streams. FLV, TS, and fMP4 files are written to /app/runtime.

Publishing to rtmp://127.0.0.1:1935/live/room?user=admin&pass=123456 gives:

  • http://127.0.0.1:8080/live-room.flv
  • http://127.0.0.1:8080/live-room.m3u8
  • http://127.0.0.1:8080/live-room.mpd
⁠Publish
ffmpeg -re -i in.mp4 -c:v libx264 -c:a aac -f flv "rtmp://127.0.0.1:1935/live/room?user=admin&pass=123456"

OBS Studio: Settings → Stream, server rtmp://127.0.0.1:1935/live/, stream key room?user=admin&pass=123456. Without -user, the stream key is room.

⁠Play
ffplay http://127.0.0.1:8080/live-room.m3u8
ffplay http://127.0.0.1:8080/live-room.mpd
ffplay http://127.0.0.1:8080/live-room.flv
ffplay rtmp://127.0.0.1:1935/live/room

HLS appears after a TS segment exists, and DASH appears after an fMP4 segment exists. H.263 stays FLV only.

⁠Codecs
  • Classic RTMP / FLV: Sorenson H.263, H.264
  • Enhanced RTMP: H.264 (avc1), H.265 (hvc1)

Source: https://github.com/penndev/rtmp-go⁠

Tag summary
Recent tags
Content type
Image
Digest
sha256:f69a0fdb1…
Size
10 MB
Last updated
3 days ago
docker pull penndev/rtmp:latest