1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-30 09:16:41 +02:00
dockerfiles/red5
2018-01-02 23:28:05 +08:00
..
arm update red5-arm 2018-01-02 23:28:05 +08:00
docker-compose.yml update red5 2017-12-31 03:31:45 +08:00
Dockerfile upgrade red5 to 1.0.9 2017-06-12 16:30:18 +08:00
README.md update red5 ffmpeg command 2017-12-31 11:24:08 +08:00

red5

Red5 is an Open Source Flash Server written in Java.

docker-compose.yml

red5:
  image: vimagick/red5
  ports:
    - "1935:1935"
  restart: always

Server Setup

$ docker-compose up -d
$ docker-compose exec red5 bash
>>> vi /opt/red5/conf/red5.properties
>>> exit
$ docker-compose restart

Client Setup

# no watermark
$ ffmpeg -i /dev/video0 -video_size 800x600 -b 512k -f flv rtmp://easypi.pro/live/webcam

# 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

Note: ^L was typed via pressing Ctrl-V + Ctrl-L

Please try easypi/rtmp-client-arm on Raspberry Pi.

Player Setup

# kodi
$ echo 'rtmp://easypi.pro/live/webcam live=1' > ~/Movies/webcam.strm

# ffplay
$ brew reinstall ffmpeg --with-ffplay --with-rtmpdump
$ ffplay 'rtmp://easypi.pro/live/webcam live=1'

references