mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:15 +02:00
add ffmpeg-arm
This commit is contained in:
parent
39b7596d0d
commit
46dbf7abda
13
ffmpeg/arm/Dockerfile
Normal file
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 \
|
||||
|
Loading…
Reference in New Issue
Block a user