Browse Source

Using new template format

add-file-preservation 1.1.7
Drew Short 5 years ago
parent
commit
66cfc1be73
  1. 24
      acm-config-default.json

24
acm-config-default.json

@ -9,7 +9,7 @@
"jpeg" "jpeg"
], ],
"outputExtension": "jpg", "outputExtension": "jpg",
"command": "cjpeg -optimize -quality 90 -progressive -outfile {{output_file}} {{input_file}}"
"command": "cjpeg -optimize -quality 90 -progressive -outfile {output_file} {input_file}"
}, },
"png": { "png": {
"processors": ["optipng"], "processors": ["optipng"],
@ -17,7 +17,7 @@
"png" "png"
], ],
"outputExtension": "png", "outputExtension": "png",
"command": "optipng -o2 -strip all -out {{output_file}} {{input_file}}"
"command": "optipng -o2 -strip all -out {output_file} {input_file}"
}, },
"video": { "video": {
"processors": ["ffmpeg"], "processors": ["ffmpeg"],
@ -26,7 +26,7 @@
"webm" "webm"
], ],
"outputExtension": "webm", "outputExtension": "webm",
"command": "ffmpeg -hide_banner -loglevel panic -i {{input_file}} -c:v libvpx-vp9 -b:v 0 -crf 29 -c:a libopus {{output_file}}"
"command": "ffmpeg -hide_banner -loglevel panic -i {input_file} -c:v libvpx-vp9 -b:v 0 -crf 29 -c:a libopus {output_file}"
}, },
"audio": { "audio": {
"processors": ["ffmpeg", "opusenc"], "processors": ["ffmpeg", "opusenc"],
@ -35,7 +35,7 @@
"mp3" "mp3"
], ],
"outputExtension": "ogg", "outputExtension": "ogg",
"command": "ffmpeg -hide_banner -loglevel panic -i {{input_file}} -f wav -| opusenc --bitrate 64 --vbr --downmix-stereo --discard-comments --discard-pictures - {{output_file}}"
"command": "ffmpeg -hide_banner -loglevel panic -i {input_file} -f wav -| opusenc --bitrate 64 --vbr --downmix-stereo --discard-comments --discard-pictures - {output_file}"
} }
}, },
"placebo": { "placebo": {
@ -47,7 +47,7 @@
], ],
"outputExtension": "jpg", "outputExtension": "jpg",
"preserveInputExtension": true, "preserveInputExtension": true,
"command": "cp {{input_file}} {{output_file}}"
"command": "cp {input_file} {output_file}"
}, },
"png": { "png": {
"processors": ["cp"], "processors": ["cp"],
@ -56,7 +56,7 @@
], ],
"outputExtension": "png", "outputExtension": "png",
"preserveInputExtension": true, "preserveInputExtension": true,
"command": "cp {{input_file}} {{output_file}}"
"command": "cp {input_file} {output_file}"
}, },
"video": { "video": {
"processors": ["cp"], "processors": ["cp"],
@ -66,7 +66,7 @@
], ],
"outputExtension": "mp4", "outputExtension": "mp4",
"preserveInputExtension": true, "preserveInputExtension": true,
"command": "cp {{input_file}} {{output_file}}"
"command": "cp {input_file} {output_file}"
}, },
"audio": { "audio": {
"processors": ["cp"], "processors": ["cp"],
@ -76,7 +76,7 @@
], ],
"outputExtension": "ogg", "outputExtension": "ogg",
"preserveInputExtension": true, "preserveInputExtension": true,
"command": "cp {{input_file}} {{output_file}}"
"command": "cp {input_file} {output_file}"
} }
}, },
"aggressive": { "aggressive": {
@ -87,7 +87,7 @@
"jpeg" "jpeg"
], ],
"outputExtension": "jpg", "outputExtension": "jpg",
"command": "export FILE={{output_file}} && export TEMP_FILE=${FILE}_tmp.jpg && ffmpeg -i {{input_file}} -vf scale=-1:720 ${TEMP_FILE} && cjpeg -optimize -quality 75 -progressive -outfile {{output_file}} ${TEMP_FILE} && rm ${TEMP_FILE}"
"command": "export FILE={output_file} && export TEMP_FILE=${FILE}_tmp.jpg && ffmpeg -i {input_file} -vf scale=-1:720 ${TEMP_FILE} && cjpeg -optimize -quality 75 -progressive -outfile {output_file} ${TEMP_FILE} && rm ${TEMP_FILE}"
}, },
"png": { "png": {
"processors": ["optipng"], "processors": ["optipng"],
@ -95,7 +95,7 @@
"png" "png"
], ],
"outputExtension": "png", "outputExtension": "png",
"command": "optipng -o2 -strip all -out {{output_file}} {{input_file}}"
"command": "optipng -o2 -strip all -out {output_file} {input_file}"
}, },
"video": { "video": {
"processors": ["ffmpeg"], "processors": ["ffmpeg"],
@ -104,7 +104,7 @@
"webm" "webm"
], ],
"outputExtension": "webm", "outputExtension": "webm",
"command": "ffmpeg -hide_banner -loglevel panic -i {{input_file}} -vf scale=-1:720 -c:v libvpx-vp9 -b:v 0 -crf 38 -c:a libopus {{output_file}}"
"command": "ffmpeg -hide_banner -loglevel panic -i {input_file} -vf scale=-1:720 -c:v libvpx-vp9 -b:v 0 -crf 38 -c:a libopus {output_file}"
}, },
"audio": { "audio": {
"processors": ["ffmpeg", "opusenc"], "processors": ["ffmpeg", "opusenc"],
@ -113,7 +113,7 @@
"mp3" "mp3"
], ],
"outputExtension": "ogg", "outputExtension": "ogg",
"command": "ffmpeg -hide_banner -loglevel panic -i {{input_file}} -f wav -| opusenc --bitrate 64 --vbr --downmix-stereo --discard-comments --discard-pictures - {{output_file}}"
"command": "ffmpeg -hide_banner -loglevel panic -i {input_file} -f wav -| opusenc --bitrate 64 --vbr --downmix-stereo --discard-comments --discard-pictures - {output_file}"
} }
} }
} }

Loading…
Cancel
Save