moviemasher / moviemasher.js

JavaScript library for realtime, browser-based video and audio editing
Mozilla Public License 2.0
304 stars 63 forks source link

how to set output file metadata on s3 bucket? #16

Closed think-01 closed 6 years ago

think-01 commented 7 years ago

I'm sending a job to masher transcoder AMI with a destination pointing to the s3 bucket i.e.:

                                    'bucket'    => $S3_BUCKET,
                                    'type'      => 's3',
                                    'region'    => $S3_REGION,
                                    'path'      => "public/videos"

how can I set metadata to the video file being created on s3 i.e.:

image

syntropo commented 7 years ago

You can set a limited number of S3 options in the output object (not the destination), but there is no generalized support for metadata. The mime_type property should populate the Content-Type. Within the destination you can set acl, which controls the permissions. I don't believe there is any support for setting the Cache-Control header - it might be easiest to set that within the callback?