-
Notifications
You must be signed in to change notification settings - Fork 0
/
process-media.yaml
88 lines (63 loc) · 2.09 KB
/
process-media.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
%YAML 1.1
---
# 0 = auto, set to detected cpu(s)/core(s)
max_threads: 0
# activate a more verbose output
verbose: false
# do not rename file to the format YYYYMMDD-HHMMSS according to Exif:CreatDate
keep_name: false
# overwrite existing file(s)
overwrite: false
# allow to change the default timezone offset used to rename file(s)
# by default use the current system timezone offset
# must be specified in seconds (ex: +3600, -7200, etc...)
tzoffset: 0
---
# Format(s) to generate
archive_photo:
type: 'photo'
# if set to 'auto', do an auto-rotate according to metadata
# otherwise rotate to specified value (possible values are 90, 180 or 270 in clockwise)
rotate: 'auto'
# specify the directory where files will be written
# output_dir is a relative path from source file directory
# if no output_dir is specified, default is to use format name
output_dir: 'archive'
web_photo:
type: 'photo'
rotate: 'auto'
# resize in order to get the larger side set to this value
# (only if it is larger, no upscale)
resize: 1920
# compress the jpeg photo according to this value
# a low value result in a better compression but in a lower quality
compress: 90
# create a progressive jpeg
progressive: true
# if set to true, all metadata will be removed except ones specified by strip_exclude
strip: true
# a comma separated list of tags that must not be deleted
# for now only support the tag "orientation" and "gps"
strip_exclude: 'orientation'
output_dir: 'web'
archive_video:
type: 'video'
rotate: 'auto'
# specify that we want to reencode the video in order to reduce the file size
reencode: true
# use the x264 video codec (it is the default)
# for now only support the "x264" and "x265" video codec
vcodec: 'x264'
# allow to specify any ffmpeg video codec params
# see "x264 --help" or "x265 --help" for available options
#vcodec_params: 'crf=20'
output_dir: 'archive/videos'
web_video:
type: 'video'
rotate: 'auto'
reencode: true
resize: 1024
strip: true
# we want to generate a thumbnail image
thumbnail: true
output_dir: 'web/videos'