Skip to content

Commit

Permalink
lower config
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlevy0 committed Dec 1, 2023
1 parent b6c518e commit 23678ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions amplify/backend/function/S3Trigger52a3ac74/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ export const conf = {
region: 'eu-west-3',
nameModifier: '_edited',
batchModifier: '_batch_',
quality: EQuality.HIGH,
// quality: EQuality.HIGH,
quality: EQuality.LOW,
debug: false,
targetWidth: 360,
targetHeight: 640,
batchSize: 5,
// batchSize: 5,
batchSize: 2,
cropFile: 'qlip-crop-model-out.json',
updateIntervalProgress: 100,
}
2 changes: 1 addition & 1 deletion amplify/backend/function/S3Trigger52a3ac74/lib/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export async function processVideo(_in: string, _out: string) {
const ffmpegCommand = getCmd(_in, batchOutput, batchShots)
await execPromise(ffmpegCommand)
} catch (error) {
console.log(`--ERROR execPromise : ${error}`)
console.log(`--ERROR execPromise at index ${index} : ${error}`)
throw new Error(error)
}
}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"amplify:S3Trigger52a3ac74": "cd amplify/backend/function/S3Trigger52a3ac74 && tsc -p ./tsconfig.json && cd -",
"---": "---",
"invoke": "cd amplify/backend/function/S3Trigger52a3ac74 && sam local invoke 'LambdaFunction' -e lib/event.json -t S3Trigger52a3ac74-cloudformation-template.json",
"run:invoke": "npm run amplify:S3Trigger52a3ac74 && npm run invoke && cd -"
"run:invoke": "npm run amplify:S3Trigger52a3ac74 && npm run invoke && cd -",
"local:docker:fix": "sudo ln -sf '$HOME/.docker/run/docker.sock' /var/run/docker.sock"
},
"jest": {
"preset": "ts-jest",
Expand Down

0 comments on commit 23678ae

Please sign in to comment.