1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-30 09:16:41 +02:00

update rtmp-client-arm

This commit is contained in:
kev 2016-07-04 00:52:24 +08:00
parent 89e0d7a001
commit 39b7596d0d
3 changed files with 8 additions and 9 deletions

View File

@ -26,16 +26,18 @@ server:
restart: always restart: always
client: client:
image: vimagick/rtmp-client-arm image: easypi/rtmp-client-arm
# command: ffmpeg -i /dev/video0 -vf "hflip,vflip" -f flv rtmp://cctv.easypi.info/live/webcam # command: ffmpeg -i /dev/video0 -vf "hflip,vflip" -f flv rtmp://cctv.easypi.info/live/webcam
devices: devices:
- /dev/video0:/dev/video0 - /dev/video0:/dev/video0
environment: environment:
# - RTMP_DEV=rtsp://192.168.42.1/live
- RTMP_URI=rtmp://easypi.info/live/webcam - RTMP_URI=rtmp://easypi.info/live/webcam
restart: always restart: always
``` ```
> You can run customized `ffmpeg` command. > - You can run customized `ffmpeg` command.
> - Input can be stream instead of device. (It works as a relay!)
## Server ## Server

View File

@ -2,12 +2,10 @@
# Dockerfile for rtmp-client-arm # Dockerfile for rtmp-client-arm
# #
FROM vimagick/alpine-arm FROM easypi/alpine-arm
MAINTAINER kev <noreply@easypi.info> MAINTAINER EasyPi Software Foundation
RUN set -xe \ RUN apk add --no-cache ffmpeg
&& apk add -U ffmpeg \
&& rm -rf /var/cache/apk/*
ENV RTMP_DEV=/dev/video0 \ ENV RTMP_DEV=/dev/video0 \
RTMP_FMT=flv \ RTMP_FMT=flv \

View File

@ -1,9 +1,8 @@
client: client:
image: vimagick/rtmp-client-arm image: easypi/rtmp-client-arm
devices: devices:
- /dev/video0:/dev/video0 - /dev/video0:/dev/video0
environment: environment:
# - RTMP_DEV=rtsp://192.168.42.1/live # - RTMP_DEV=rtsp://192.168.42.1/live
- RTMP_URI=rtmp://cctv.easypi.info/live/webcam - RTMP_URI=rtmp://cctv.easypi.info/live/webcam
# net: host
restart: always restart: always