Skip to content

Double file extension #148

@spellsolutions

Description

@spellsolutions

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions