mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-02 03:37:40 +02:00
add editly
This commit is contained in:
parent
0f27d619cc
commit
8b163893bc
@ -151,6 +151,7 @@ A collection of delicious docker recipes.
|
||||
|
||||
- [x] cmus
|
||||
- [x] cmus-arm
|
||||
- [x] editly :tv:
|
||||
- [x] ffmpeg
|
||||
- [x] ffmpeg-arm
|
||||
- [x] ffserver :beetle:
|
||||
|
18
editly/Dockerfile
Normal file
18
editly/Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
#
|
||||
# Dockerfile for editly
|
||||
#
|
||||
|
||||
FROM node:lts-buster
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
RUN set -xe \
|
||||
&& apt update \
|
||||
&& apt install -y dumb-init ffmpeg xvfb \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN npm install --global --unsafe-perm editly
|
||||
|
||||
WORKDIR /data
|
||||
|
||||
ENTRYPOINT ["/usr/bin/dumb-init", "--", "xvfb-run", "--server-args", "-screen 0 1280x1024x24 -ac", "editly"]
|
||||
CMD ["--help"]
|
22
editly/README.md
Normal file
22
editly/README.md
Normal file
@ -0,0 +1,22 @@
|
||||
editly
|
||||
======
|
||||
|
||||
[Editly][1] is a tool and framework for declarative NLE (non-linear video editing)
|
||||
using Node.js and ffmpeg. Editly allows you to easily and programmatically
|
||||
create a video from a set of clips, images, audio and titles, with smooth
|
||||
transitions and music overlaid.
|
||||
|
||||
## Tutorial
|
||||
|
||||
```bash
|
||||
# Create an alias
|
||||
$ alias editly='docker run --rm -u $(id -u):$(id -g) -v $PWD:/data vimagick/editly'
|
||||
|
||||
# Make config file
|
||||
$ cat slideshow.json5
|
||||
|
||||
# Do video transcoding
|
||||
$ editly --fast slideshow.json5
|
||||
```
|
||||
|
||||
[1]: https://github.com/mifi/editly
|
BIN
editly/output.mp4
Normal file
BIN
editly/output.mp4
Normal file
Binary file not shown.
17
editly/slideshow.json5
Normal file
17
editly/slideshow.json5
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
width: 400,
|
||||
height: 300,
|
||||
outPath: './output.mp4',
|
||||
allowRemoteRequests: true,
|
||||
defaults: {
|
||||
duration: 3,
|
||||
},
|
||||
clips: [
|
||||
{ layers: [{ type: 'image', path: 'https://github.com/mifi/editly-assets/raw/main/pano.jpg' }] },
|
||||
{ layers: [{ type: 'image', path: 'https://github.com/mifi/editly-assets/raw/main/vertical.jpg' }] },
|
||||
{ layers: [{ type: 'image', path: 'https://github.com/mifi/editly-assets/raw/main/pano.jpg', resizeMode: 'cover' }] },
|
||||
{ layers: [{ type: 'image', path: 'https://github.com/mifi/editly-assets/raw/main/vertical.jpg', resizeMode: 'cover' }] },
|
||||
{ layers: [{ type: 'image', path: 'https://github.com/mifi/editly-assets/raw/main/pano.jpg', resizeMode: 'stretch' }] },
|
||||
{ layers: [{ type: 'image', path: 'https://github.com/mifi/editly-assets/raw/main/vertical.jpg', resizeMode: 'stretch' }] },
|
||||
],
|
||||
}
|
Loading…
Reference in New Issue
Block a user