1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 22:08:39 +00:00

add ffmpeg-arm

This commit is contained in:
kev 2016-07-04 11:37:59 +08:00
parent 39b7596d0d
commit 46dbf7abda
3 changed files with 25 additions and 4 deletions

13
ffmpeg/arm/Dockerfile Normal file

@ -0,0 +1,13 @@
#
# Dockerfile for ffmpeg-arm
#
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
RUN apk add --no-cache ffmpeg
WORKDIR /data
ENTRYPOINT ["ffmpeg"]
CMD ["--help"]

@ -27,7 +27,7 @@ server:
client:
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 -video_size 640x480 -vf "hflip,vflip" -f flv rtmp://cctv.easypi.info/live/webcam
devices:
- /dev/video0:/dev/video0
environment:
@ -83,9 +83,18 @@ $ cd ~/fig/rtmp/
$ docker-compose up -d client
```
## OBS
```yaml
Stream Type: Custom Streaming Server
URL: rtmp://192.168.31.254/live/
Streaming key: webcam
```
## References
- https://github.com/arut/nginx-rtmp-module/wiki/Directives
- https://trac.ffmpeg.org/wiki/StreamingGuide
- https://trac.ffmpeg.org/wiki/Capture/Webcam
- https://trac.ffmpeg.org/wiki/EncodingForStreamingSites
- http://apk-dl.com/vlc-for-android/org.videolan.vlc/

@ -2,10 +2,9 @@
# Dockerfile for rtmp-client-arm
#
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
FROM easypi/ffmpeg-arm
RUN apk add --no-cache ffmpeg
MAINTAINER EasyPi Software Foundation
ENV RTMP_DEV=/dev/video0 \
RTMP_FMT=flv \