awslabs / amplify-video

An open source Category Plugin for the AWS Amplify-CLI that makes it easy to deploy live and file based streaming video services and integrate them into your Amplify applications.
https://www.npmjs.com/package/amplify-category-video
Apache License 2.0
267 stars 56 forks source link

Audio-Only Pipeline Guide in Wiki Fails to Output Audio HLS #332

Open djsjr opened 2 years ago

djsjr commented 2 years ago

Describe the bug Steps in wiki to produce audio-only pipeline fail. Output bucket remains empty after uploading audio file to input bucket.

Uploading a video file results in an output of an audio-only HLS. However, audio files do not work.

I have tried changing suffix in SetupTriggerLambda to '.mp3', '.aac', leaving as is. No change. Also I noticed that the lambda function 'project_name-dev-cfTrigger' found from the Lambda console does not change even after pushing an updated video resource.

To Reproduce

  1. Follow steps in wiki for changing pipeline to audio-only.
  2. Upload audio file (let's say .mp3) to input bucket
  3. No HLS in output bucket.

Expected behavior Expect to find audio-only HLS in output bucket.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information): N/A

Additional context I am using flutter. I notice the file paths in the audio guide do not exactly match my own. Guide: ./amplify/backend/video/project_name/vod-helpers/LambdaFunctions/SetupTriggerLambda/index.js Actual: ./amplify/backend/video/project_name/build/vod-helpers/LambdaFunctions/SetupTriggerLambda/index.js

Guide: ./amplify/video/project_name/mediaconvert-job-temp.json Actual: ./amplify/backend/video/project_name/mediaconvert-job-temp.json

EDIT: Changing audio file extension to .mp4 and uploading (after having changed the media convert template per guide) seems to work. It's a workaround at least.