Merge pull request #6 from catseye/develop-0.7
Develop 0.7
Chris Pressey authored 3 years ago
GitHub committed 3 years ago
0 | |
FROM python:3.5.7-slim-stretch
|
1 | |
RUN apt-get update && apt-get upgrade -y
|
2 | |
RUN apt-get install -y povray povray-includes ffmpeg imagemagick librsvg2-bin
|
3 | |
RUN mkdir /mnt/host
|
4 | |
WORKDIR /usr/src/app
|
5 | |
COPY requirements.txt ./
|
6 | |
RUN pip install --no-cache-dir -r requirements.txt
|
7 | |
COPY bin ./bin
|
8 | |
COPY src ./src
|
9 | |
ENV PATH="/usr/src/app/bin:${PATH}"
|
10 | |
WORKDIR /mnt/host
|
0 | 0 |
kinoje
|
1 | 1 |
======
|
2 | 2 |
|
3 | |
*Version 0.6. Subject to backwards-incompatible changes without notice.*
|
|
3 |
_Version 0.7_
|
|
4 |
| _Entry_ [@ catseye.tc](https://catseye.tc/node/kinoje)
|
|
5 |
| _See also:_ [Canvas Feedback](https://github.com/catseye/Canvas-Feedback#readme)
|
|
6 |
|
|
7 |
- - - -
|
|
8 |
|
|
9 |
<img align="right" src="https://static.catseye.tc/movies/glass-warts.gif" />
|
4 | 10 |
|
5 | 11 |
**kinoje** is a templating-based animation tool. A provided template is filled out once for each
|
6 | 12 |
frame of the animation; the result of the template expansion is used to create a still image; and
|
0 | |
#!/bin/sh
|
1 | |
|
2 | |
# After building the image, you can run kinoje from within it like:
|
3 | |
#
|
4 | |
# docker run --user $(id -u):$(id -g) -i -t -v "${PWD}:/mnt/host" kinoje \
|
5 | |
# kinoje eg/moebius.yaml -o moebius.mp4
|
6 | |
#
|
7 | |
|
8 | |
rm -rf src/kinoje/*.pyc src/kinoje/__pycache__
|
9 | |
docker container prune
|
10 | |
docker rmi catseye/kinoje:0.6
|
11 | |
docker rmi kinoje
|
12 | |
docker build -t kinoje .
|
13 | |
docker tag kinoje catseye/kinoje:0.6
|
94 | 94 |
argparser.add_argument("--view", default=False, action='store_true',
|
95 | 95 |
help="Display the resultant movie."
|
96 | 96 |
)
|
|
97 |
argparser.add_argument('--version', action='version', version="%(prog)s 0.7")
|
97 | 98 |
|
98 | 99 |
options = argparser.parse_args(sys.argv[1:])
|
99 | 100 |
|
51 | 51 |
argparser.add_argument('instantsdir', metavar='DIRNAME', type=str,
|
52 | 52 |
help='Directory that will be populated with instants (text files describing frames)'
|
53 | 53 |
)
|
|
54 |
argparser.add_argument('--version', action='version', version="%(prog)s 0.7")
|
54 | 55 |
|
55 | 56 |
options = argparser.parse_args(sys.argv[1:])
|
56 | 57 |
|
29 | 29 |
'If not given, a default name will be chosen based on the '
|
30 | 30 |
'configuration filename with a .mp4 extension added.' % (SUPPORTED_OUTPUT_FORMATS,)
|
31 | 31 |
)
|
|
32 |
argparser.add_argument('--version', action='version', version="%(prog)s 0.7")
|
32 | 33 |
|
33 | 34 |
options, unknown = argparser.parse_known_args(sys.argv[1:])
|
34 | 35 |
remainder = ' '.join(unknown)
|
55 | 55 |
argparser.add_argument('framesdir', metavar='DIRNAME', type=str,
|
56 | 56 |
help='Directory that will be populated with images, one for each frame'
|
57 | 57 |
)
|
|
58 |
argparser.add_argument('--version', action='version', version="%(prog)s 0.7")
|
58 | 59 |
|
59 | 60 |
options = argparser.parse_args(sys.argv[1:])
|
60 | 61 |
|