-
Notifications
You must be signed in to change notification settings - Fork 241
Open
Labels
Description
Hi, I wanted to replace destination folder name from guid to a custom name (source folder name). In lamda function 'encode' I replaced the URL with srcVideo which sorted out the problem of replacing guid based folder name to source folder name. However, as srcVideo has file path (folder/filename.mp4), the final URL path and cloudfront URLs add another file extension. The result is duplication of .mp4. The following is the code where i changed it to srcVideo:
const inputPath = `s3://${event.srcBucket}/${event.srcVideo}`;
const outputPath = `s3://${event.destBucket}/${event.srcVideo}`;
Output file name: myfile.mp4.mp4
Can anyone help by guiding how to remove the duplicate file extension.
Thanks.
Reactions are currently unavailable