-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathPlexCleaner.defaults.json
187 lines (187 loc) · 5.4 KB
/
PlexCleaner.defaults.json
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
{
"$schema": "https://raw.githubusercontent.com/ptr727/PlexCleaner/main/PlexCleaner.schema.json",
"SchemaVersion": 4,
"ToolsOptions": {
// Use system installed tools or tools directory
"UseSystem": false,
"RootPath": ".\\Tools\\",
// Tools directory is relative to PlexCleaner binary locations
"RootRelative": true,
// Automatically check for and update new tool versions on launch
"AutoUpdate": true
},
"ProcessOptions": {
// Files to skip, use * and ? wildcards, non-ascii characters must be JSON escaped
"FileIgnoreMasks": [
"*.ass",
"*.fuse_hidden*",
"*.jpg",
"*.nfo",
"*.partial~",
"*.sample.*",
"*.sample",
"*.smi",
"*.srt",
"*.ssa",
"*.vtt"
],
// Keep all tracks flagged as original language
"KeepOriginalLanguage": true,
// Remove EIA-608 Closed Captions embedded in video streams
"RemoveClosedCaptions": true,
// Set IETF language tags when not set
"SetIetfLanguageTags": true,
// Set track flags based on track title keywords
"SetTrackFlags": true,
"ReMuxExtensions": [
".asf",
".avi",
".dv",
".m2ts",
".m4v",
".mp4",
".ts",
".vob",
".wmv"
],
// Re-encode video if the Format, Codec, and Profile values match
// Empty fields will match with any value
// Use FfProbe attribute naming, and the `printmediainfo` command to get media info
"ReEncodeVideo": [
{
"Format": "h264",
"Profile": "Constrained Baseline@30"
},
{
"Format": "indeo5"
},
{
"Format": "mpeg2video"
},
{
"Format": "mpeg4",
"Codec": "dx50"
},
{
"Format": "msmpeg4v2",
"Codec": "mp42"
},
{
"Format": "msmpeg4v3",
"Codec": "div3"
},
{
"Format": "msrle"
},
{
"Format": "rawvideo"
},
{
"Format": "vc1"
},
{
"Format": "wmv3"
}
],
// Re-encode audio if the Format matches
// Use FfProbe attribute naming, and the `printmediainfo` command to get media info
"ReEncodeAudioFormats": [
"adpcm_ms",
"flac",
"mp2",
"opus",
"pcm_s16le",
"pcm_u8",
"vorbis",
"wmapro",
"wmav2"
],
// Keep tracks if the language tags match, use RFC-5646 format
"KeepLanguages": [
"af",
"en",
"in",
"ja",
"ko",
"zh"
],
// Preferred audio tracks in order and by Format
// Use MkvMerge attribute naming, and the `printmediainfo` command to get media info
"PreferredAudioFormats": [
"ac-3",
"dts-hd high resolution audio",
"dts-hd master audio",
"dts",
"e-ac-3",
"truehd atmos",
"truehd"
],
// Delete empty folders
"DeleteEmptyFolders": true,
// Delete non-MKV files not in KeepExtensions or ReMuxExtensions lists
"DeleteUnwantedExtensions": true,
// Re-mux files in ReMuxExtensions list to MKV
"ReMux": true,
// De-interlace interlaced media
"DeInterlace": true,
// Re-encode audio and video tracks as specified in ReEncodeVideo and ReEncodeAudioFormats
"ReEncode": true,
// Set tracks with undefined language to DefaultLanguage
"SetUnknownLanguage": true,
// Default track language in RFC-5646 format
"DefaultLanguage": "en",
// Remove tracks if track language is not in KeepLanguages
"RemoveUnwantedLanguageTracks": false,
// Remove duplicate tracks of the same type, language, and attributes
// Audio tracks will use PreferredAudioFormats to select the preferred audio track
"RemoveDuplicateTracks": false,
// Remove tags, titles, and attachments
"RemoveTags": true,
// Speedup re-processing by caching state in sidecar files
"UseSidecarFiles": true,
// Invalidate sidecar cache when tool versions change
"SidecarUpdateOnToolChange": false,
// Verify containers and media streams
"Verify": true,
// Restore media file modified timestamp to original pre-processed value
"RestoreFileTimestamp": false,
// List of files to skip, exact match, non-ascii characters must be JSON escaped
"FileIgnoreList": []
},
"ConvertOptions": {
// FFmpeg commandline options
"FfMpegOptions": {
// Video encoding option following -c:v
"Video": "libx264 -crf 22 -preset medium",
// Audio encoding option following -c:a
"Audio": "ac3",
// Global options
"Global": ""
},
// HandBrake commandline options
"HandBrakeOptions": {
// Video encoding options following --encode
"Video": "x264 --quality 22 --encoder-preset medium",
// Audio encoding option following --aencode
"Audio": "copy --audio-fallback ac3"
}
},
"VerifyOptions": {
// If verify fails attempt media repair by re-encoding
"AutoRepair": true,
// Delete files that fail verification
"DeleteInvalidFiles": false,
// Add media files that fail verification to the FileIgnoreList
"RegisterInvalidFiles": false,
// Warn when bitrate in bits per second is exceeded
"MaximumBitrate": 100000000
},
"MonitorOptions": {
// Time to wait in seconds after detecting a file change
"MonitorWaitTime": 60,
// Time to wait in seconds between file retry operations
"FileRetryWaitTime": 5,
// Maximum number of file retry operations
"FileRetryCount": 2
}
}