0

Currently, I'm trying to convert a response of Kinesis Vides Stream GetMedia API to an audio file but have had no success in this. According to AWS documentation, - result of GetMedia request? it's recommended to use Kinesis Video Stream Parser Library. But I'd like to use js/ts implementation. Is it possible to convert this stream to an audio file using just js/ts?

Thank you for your help.

  • 1
    this exists: https://www.npmjs.com/package/kvs-parser havent gotten it working yet – Alfred Young Nov 03 '22 at 21:36
  • you get a readable stream from a successful request to getMedia and pipe it into https://www.npmjs.com/package/fluent-ffmpeg - ffmpeg provides all kinds of functionality for extracting audio. I did get this working for writing kvs video data to .mp4, .mp3 should be easy enough but I dont have access to a kvs stream with audio – Alfred Young Nov 04 '22 at 21:06

0 Answers0