Skip to content

Commit

Permalink
fix: set correct file extension for QVBR metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
oshinongit committed Aug 15, 2024
1 parent b00012b commit 5bbbd45
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pipelines/aws/aws-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,15 @@ export default class AWSPipeline implements Pipeline {
if (variables ? variables['QVBR'] : undefined) {
const url = this.generatePresignedUrl(outputBucket, outputObject, 5);
const metadata = await runFfprobe(url);
const outputMetadataFilename = outputObject.replace(
'.mp4',
'_metadata.json'
);
const upload = new Upload({
client: this.s3,
params: {
Bucket: outputBucket,
Key: `${outputObject}_metadata`,
Key: outputMetadataFilename,
Body: JSON.stringify(metadata)
}
});
Expand Down

0 comments on commit 5bbbd45

Please sign in to comment.