aws / amazon-kinesis-video-streams-parser-library

Amazon Kinesis Video Streams parser library is for developers to include in their applications that makes it easy to work with the output of video streams such as retrieving frame-level objects, metadata for fragments, and more.
Apache License 2.0
103 stars 52 forks source link

Using jcodec (or ffmpeg) to convert aac audio tracks to PCM #102

Closed ajhool closed 3 years ago

ajhool commented 4 years ago

Examples in this library include references for using JCodec to convert h264 to JPEG. Are there any similar examples for using JCodec (or ffmpeg) to decode the AAC audio produced by KVS GStreamer Plugin into PCM using jcodec or ffmpeg?

We have tried to write the audio track bytes directly to a file (eg. streamingOutput.aac) but media tools like ffmpeg or VLC have not been able to interpret the aac correctly. Our end goal is to write this audio to AWS Transcribe, which requires PCM.

MushMal commented 4 years ago

@ajhool, sorry, we don't have an example of audio. There are multiple AAC decoders (some with a license) that you can search for and try using.

Regarding the file playback... You could use HLS/MPEG-DASH capability to get live playback (non-realtime) on many devices which have built-in players.

MushMal commented 3 years ago

Resolving as no further action