1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-07-17 01:22:25 +02:00

fix rtmp-client-arm framerate

This commit is contained in:
kev
2016-02-24 16:56:06 +08:00
parent 4333ce1239
commit bf9a6db596
3 changed files with 3 additions and 1 deletions

View File

@ -32,6 +32,7 @@ client:
devices:
- /dev/video0:/dev/video0
environment:
- RTMP_RATE=10
- RTMP_URI=rtmp://datageek.info/live/webcam
restart: always
```

View File

@ -9,4 +9,4 @@ RUN set -xe \
&& apk add -U ffmpeg \
&& rm -rf /var/cache/apk/*
CMD ffmpeg -f video4linux2 -r 24 -i /dev/video0 -f flv $RTMP_URI
CMD ffmpeg -f video4linux2 -r ${RTMP_RATE:-24} -i /dev/video0 -f flv ${RTMP_URI}

View File

@ -3,5 +3,6 @@ client:
devices:
- /dev/video0:/dev/video0
environment:
- RTMP_RATE=10
- RTMP_URI=rtmp://boss.datageek.info/live/webcam
restart: always