mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
update rtmp
This commit is contained in:
parent
0c11b77a9d
commit
06bf8fa1af
@ -41,7 +41,6 @@ client:
|
||||
devices:
|
||||
- /dev/video0:/dev/video0
|
||||
environment:
|
||||
- RTMP_RATE=10
|
||||
- RTMP_URI=rtmp://datageek.info/live/webcam
|
||||
restart: always
|
||||
```
|
||||
|
@ -9,4 +9,8 @@ RUN set -xe \
|
||||
&& apk add -U ffmpeg \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
CMD ffmpeg -f video4linux2 -r ${RTMP_RATE:-24} -i /dev/video0 -f flv ${RTMP_URI}
|
||||
ENV RTMP_DEV=/dev/video0 \
|
||||
RTMP_FMT=flv \
|
||||
RTMP_URI=
|
||||
|
||||
CMD ffmpeg -i $RTMP_DEV -f $RTMP_FMT $RTMP_URI
|
||||
|
@ -3,6 +3,7 @@ client:
|
||||
devices:
|
||||
- /dev/video0:/dev/video0
|
||||
environment:
|
||||
- RTMP_RATE=10
|
||||
- RTMP_URI=rtmp://boss.datageek.info/live/webcam
|
||||
# - RTMP_DEV=rtsp://192.168.42.1/live
|
||||
- RTMP_URI=rtmp://cctv.datageek.info/live/webcam
|
||||
# net: host
|
||||
restart: always
|
||||
|
Loading…
Reference in New Issue
Block a user