1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

update red5 ffmpeg command

This commit is contained in:
kev 2017-12-31 11:24:08 +08:00
parent 468235f4e8
commit 597b09d182

View File

@ -31,11 +31,13 @@ $ docker-compose restart
# 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
# 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
```
> Please try [easypi/rtmp-client-arm][2] on Raspberry Pi.
> Note: `^L` was typed via pressing `Ctrl-V` + `Ctrl-L`
Please try [easypi/rtmp-client-arm][2] on Raspberry Pi.
## Player Setup