mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-16 11:58:47 +00:00
add scenedetect
This commit is contained in:
parent
1cab13aaaf
commit
314f5c7db9
@ -183,6 +183,7 @@ A collection of delicious docker recipes.
|
|||||||
- [x] red5-arm :construction: :camera:
|
- [x] red5-arm :construction: :camera:
|
||||||
- [x] rtmp-client-arm :+1:
|
- [x] rtmp-client-arm :+1:
|
||||||
- [x] rtmp-server :camera:
|
- [x] rtmp-server :camera:
|
||||||
|
- [x] scenedetect
|
||||||
- [x] shairplay-arm
|
- [x] shairplay-arm
|
||||||
- [x] shoutcast :musical_note:
|
- [x] shoutcast :musical_note:
|
||||||
- [x] tesseract
|
- [x] tesseract
|
||||||
|
23
scenedetect/Dockerfile
Normal file
23
scenedetect/Dockerfile
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
#
|
||||||
|
# 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 pip install scenedetect[opencv-headless]==$SCENEDETECT_VERSION
|
||||||
|
|
||||||
|
ENTRYPOINT ["scenedetect"]
|
||||||
|
CMD ["--help"]
|
21
scenedetect/README.md
Normal file
21
scenedetect/README.md
Normal 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/
|
Loading…
Reference in New Issue
Block a user