1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-27 02:09:06 +02:00
dockerfiles/red5
2017-12-31 04:05:58 +08:00
..
arm update red5 2017-12-31 03:31:45 +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 2017-12-31 04:05:58 +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 (bottom right with 10 pixel padding)
$ ffmpeg -i /dev/video0 -video_size 800x600 -vf "drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf:expansion=strftime:text='\%F \%T':fontcolor=white@0.8:x=w-tw-10:y=h-th-10" -b 512k -f flv rtmp://easypi.pro/live/webcam

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