-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (26 loc) · 1.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
WORKDIR=$(CURDIR)
PYTHON:=docker run -it --rm -v $(WORKDIR)/samples:/opt/app/samples -v $(WORKDIR):/opt/app gitrust/moviepy python
# build docker image
build:
docker build -t gitrust/moviepy .
# Run docker image
run:
$(PYTHON) /bin/bash
render-examples: render/sketchy.gif render/sketchy.gif
render/pixelate.gif:
$(PYTHON) src/pixelate.py samples/bee1.mp4 render/pixelate.gif
render/crossfade.gif:
$(PYTHON) src/crossfade.py samples/bee1.mp4 samples/bee2.mp4 render/crossfade.gif
render/sketchy.gif:
$(PYTHON) src/sketchy.py samples/bee1.mp4 render/sketchy.gif
render/cartoonify.gif:
$(PYTHON) src/cartoonify.py samples/bee1.mp4 render/cartoonify.gif
render/zoom.gif:
$(PYTHON) src/zoom.py samples/bee1.mp4 render/zoom.gif
extract_images:
$(PYTHON) src/extract_img.py samples/bee1.mp4
$(PYTHON) src/extract_img.py render/cartoonify.gif
$(PYTHON) src/extract_img.py render/crossfade.gif
$(PYTHON) src/extract_img.py render/pixelate.gif
$(PYTHON) src/extract_img.py render/sketchy.gif
$(PYTHON) src/extract_img.py render/zoom.gif