mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-27 02:09:06 +02:00
.. | ||
arm | ||
docker-compose.yml | ||
Dockerfile | ||
README.md |
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'