diff --git a/ffmpeg/arm/Dockerfile b/ffmpeg/arm/Dockerfile new file mode 100644 index 0000000..410fdda --- /dev/null +++ b/ffmpeg/arm/Dockerfile @@ -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"] diff --git a/rtmp/README.md b/rtmp/README.md index dda99c1..750eeb1 100644 --- a/rtmp/README.md +++ b/rtmp/README.md @@ -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/ diff --git a/rtmp/client/Dockerfile b/rtmp/client/Dockerfile index be59745..2dcddda 100644 --- a/rtmp/client/Dockerfile +++ b/rtmp/client/Dockerfile @@ -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 \