Compare commits

...

2 Commits

Author SHA1 Message Date
kev d49aee6ae1 update 2024-04-08 15:13:07 +08:00
kev 314f5c7db9 add scenedetect 2024-04-08 14:54:47 +08:00
3 changed files with 47 additions and 0 deletions

View File

@ -183,6 +183,7 @@ A collection of delicious docker recipes.
- [x] red5-arm :construction: :camera:
- [x] rtmp-client-arm :+1:
- [x] rtmp-server :camera:
- [x] scenedetect
- [x] shairplay-arm
- [x] shoutcast :musical_note:
- [x] tesseract

25
scenedetect/Dockerfile Normal file
View File

@ -0,0 +1,25 @@
#
# Dockerfile for scenedetect
#
FROM python:3.11-bookworm
MAINTAINER EasyPi Software Foundation
ARG SCENEDETECT_VERSION=0.6.3
ARG FFMPEG_VERSION=6.1
RUN set -xe \
&& apt update \
&& apt install -y curl dumb-init fonts-noto-cjk xvfb xz-utils \
&& curl -sSL https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz \
| tar xJC /usr/bin/ ffmpeg-${FFMPEG_VERSION}-amd64-static/ffprobe ffmpeg-${FFMPEG_VERSION}-amd64-static/ffmpeg --strip 1 \
&& ffmpeg -version \
&& ffprobe -version \
&& rm -rf /var/lib/apt/lists/*
RUN set -xe \
&& pip install scenedetect[opencv-headless]==$SCENEDETECT_VERSION \
&& scenedetect version
ENTRYPOINT ["scenedetect"]
CMD ["--help"]

21
scenedetect/README.md Normal file
View File

@ -0,0 +1,21 @@
scenedetect
===========
[PySceneDetect][1] is a tool for detecting shot changes in videos
([example][2]), and can automatically split the video into separate clips.
## Tutorial
```bash
# Create an alias
$ alias scenedetect='docker run --rm -u $(id -u):$(id -g) -v $PWD:/data -w /data vimagick/scenedetect'
# Download sample video
$ wget https://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4
# Perform video splitting
$ scenedetect -i BigBuckBunny_320x180.mp4 split-video
```
[1]: https://github.com/Breakthrough/PySceneDetect
[2]: https://www.scenedetect.com/cli/