You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.2 KiB
45 lines
1.2 KiB
{
|
|
"s3": {
|
|
"secure": false,
|
|
"host": "127.0.0.1:9000"
|
|
},
|
|
"profiles": {
|
|
"default": {
|
|
"jpeg": {
|
|
"processors": ["mozjpeg"],
|
|
"extensions": [
|
|
"jpg",
|
|
"jpeg"
|
|
],
|
|
"outputExtension": "jpg",
|
|
"command": "cjpeg -optimize -quality 75 -progressive -out {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 -i {input_file} -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 --quiet --bitrate 64 --vbr --downmix-stereo --discard-comments --discard-pictures - {output_file} >/dev/null 2>&1"
|
|
}
|
|
}
|
|
}
|
|
}
|