diff --git a/acm-config-default.json b/acm-config-default.json index e9173a1..6185c5d 100644 --- a/acm-config-default.json +++ b/acm-config-default.json @@ -26,7 +26,7 @@ "webm" ], "outputExtension": "webm", - "command": "ffmpeg -hide_banner -loglevel panic -i {{input_file}} -c:v libvpx -crf 10 {{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": { "processors": ["ffmpeg", "opusenc"], @@ -104,7 +104,7 @@ "webm" ], "outputExtension": "webm", - "command": "ffmpeg -hide_banner -loglevel panic -i {{input_file}} -vf scale=-1:720 -c:v libvpx -crf 16 {{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": { "processors": ["ffmpeg", "opusenc"], diff --git a/acm-config.json.example b/acm-config.json.example index cb37ecf..75e593b 100644 --- a/acm-config.json.example +++ b/acm-config.json.example @@ -3,122 +3,5 @@ "s3": { "secure": false, "host": "127.0.0.1:9000" - }, - "profiles": { - "default": { - "jpeg": { - "processors": ["cjpeg"], - "extensions": [ - "jpg", - "jpeg" - ], - "outputExtension": "jpg", - "command": "cjpeg -optimize -quality 90 -progressive -outfile {{output_file}} {{input_file}}" - }, - "png": { - "processors": ["optipng"], - "extensions": [ - "png" - ], - "outputExtension": "png", - "command": "optipng -o2 -strip all -out {{output_file}} {{input_file}}" - }, - "video": { - "processors": ["ffmpeg"], - "extensions": [ - "mp4", - "webm" - ], - "outputExtension": "mp4", - "command": "ffmpeg -hide_banner -loglevel panic -i {{input_file}} -vcodec libx264 -crf 20 {{output_file}}" - }, - "audio": { - "processors": ["ffmpeg", "opusenc"], - "extensions": [ - "wav", - "mp3" - ], - "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}}" - } - }, - "placebo": { - "jpeg": { - "processors": ["cp"], - "extensions": [ - "jpg", - "jpeg" - ], - "outputExtension": "jpg", - "preserveInputExtension": true, - "command": "cp {{input_file}} {{output_file}}" - }, - "png": { - "processors": ["cp"], - "extensions": [ - "png" - ], - "outputExtension": "png", - "preserveInputExtension": true, - "command": "cp {{input_file}} {{output_file}}" - }, - "video": { - "processors": ["cp"], - "extensions": [ - "mp4", - "webm" - ], - "outputExtension": "mp4", - "preserveInputExtension": true, - "command": "cp {{input_file}} {{output_file}}" - }, - "audio": { - "processors": ["cp"], - "extensions": [ - "wav", - "mp3" - ], - "outputExtension": "ogg", - "preserveInputExtension": true, - "command": "cp {{input_file}} {{output_file}}" - } - }, - "aggressive": { - "jpeg": { - "processors": ["ffmpeg", ""cjpeg"], - "extensions": [ - "jpg", - "jpeg" - ], - "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}" - }, - "png": { - "processors": ["optipng"], - "extensions": [ - "png" - ], - "outputExtension": "png", - "command": "optipng -o2 -strip all -out {{output_file}} {{input_file}}" - }, - "video": { - "processors": ["ffmpeg"], - "extensions": [ - "mp4", - "webm" - ], - "outputExtension": "mp4", - "command": "ffmpeg -hide_banner -loglevel panic -i {{input_file}} -vf scale=-1:720 -vcodec libx264 -crf 24 {{output_file}}" - }, - "audio": { - "processors": ["ffmpeg", "opusenc"], - "extensions": [ - "wav", - "mp3" - ], - "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}}" - } - } } } \ No newline at end of file