Skip to content

Commit

Permalink
Fixed some bugs and trimmed down memory.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobRoseKnows committed Sep 17, 2018
1 parent 9d9409f commit 3d7a2da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stabVideo/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get_tmp_file_from_key(key):

def lambda_handler(event, context):
bucket = event['Records'][0]['s3']['bucket']['name']
key = urllib.unquote_plus(event['Records'][0]['s3']['object']['key'].encode('utf8'))
key = urllib.parse.unquote_plus(event['Records'][0]['s3']['object']['key'], encoding='utf-8')

if VIDSTAB_ERROR is not None:
raise VIDSTAB_ERROR
Expand Down
2 changes: 1 addition & 1 deletion stabVideo/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Resources:
Runtime: python3.6
CodeUri: s3://robrose-serverless-repo/dist/stabVideo.zip
Description: An Amazon S3 trigger that uses OpenCV to stabilize videos.
MemorySize: 1280
MemorySize: 512
Timeout: 60
Policies:
- S3ReadPolicy:
Expand Down

0 comments on commit 3d7a2da

Please sign in to comment.