1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:15 +02:00
dockerfiles/red5/README.md

60 lines
1.3 KiB
Markdown
Raw Normal View History

2016-07-04 17:02:35 +02:00
red5
====
![](https://badge.imagelayers.io/vimagick/red5-server:latest.svg)
[Red5][1] is an Open Source Flash Server written in Java.
## docker-compose.yml
```yaml
red5:
image: vimagick/red5
ports:
2017-12-30 21:31:45 +02:00
- "1935:1935"
2016-07-04 17:02:35 +02:00
restart: always
```
2016-07-04 21:33:59 +02:00
## Server Setup
```bash
$ docker-compose up -d
2016-07-06 11:04:44 +02:00
$ docker-compose exec red5 bash
>>> vi /opt/red5/conf/red5.properties
>>> exit
$ docker-compose restart
2016-07-04 21:33:59 +02:00
```
## Client Setup
```bash
2017-12-30 21:59:57 +02:00
# no watermark
$ ffmpeg -i /dev/video0 -video_size 800x600 -b 512k -f flv rtmp://easypi.pro/live/webcam
2017-12-31 05:24:08 +02:00
# with watermark (top right with 10px padding)
$ ffmpeg -i /dev/video0 -video_size 800x600 -vf "drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf:expansion=strftime:text='\%F^L \%T':fontcolor=white@0.8:x=w-tw-10:y=10" -b 512k -f flv rtmp://easypi.pro/live/webcam
2016-07-04 21:33:59 +02:00
```
2017-12-31 05:24:08 +02:00
> Note: `^L` was typed via pressing `Ctrl-V` + `Ctrl-L`
Please try [easypi/rtmp-client-arm][2] on Raspberry Pi.
2016-07-07 12:17:27 +02:00
2016-07-04 21:33:59 +02:00
## Player Setup
```bash
# kodi
2017-12-30 21:59:57 +02:00
$ echo 'rtmp://easypi.pro/live/webcam live=1' > ~/Movies/webcam.strm
2016-07-04 21:33:59 +02:00
# ffplay
$ brew reinstall ffmpeg --with-ffplay --with-rtmpdump
2017-12-30 21:59:57 +02:00
$ ffplay 'rtmp://easypi.pro/live/webcam live=1'
2016-07-04 21:33:59 +02:00
```
2016-07-04 17:02:35 +02:00
## references
- <https://github.com/Red5/docker>
2016-07-04 21:33:59 +02:00
- <http://kodi.wiki/view/Internet_video_and_audio_streams>
2016-07-04 17:02:35 +02:00
[1]: https://github.com/Red5/red5-server
2016-07-07 12:17:27 +02:00
[2]: https://hub.docker.com/r/easypi/rtmp-client-arm/