lincollincol / Amplituda

Audio processing library, which provides waveform data
Apache License 2.0
222 stars 31 forks source link

Support for other formats as well like 3gp,mp4 etc #47

Closed mohsin-ali-brainx closed 2 years ago

mohsin-ali-brainx commented 2 years ago

I have a feature where I have to record an audio using Mic which is implemented by using MediaRecorder and it only output file format for .3gp as there is no encoder for .mp3 file to we have to specify the output format in .3gp. so when passed this file path it does not create the amplitude for it. I'm using this library with waveformseekbar library in Android.

lincollincol commented 2 years ago

Hello @mohsin-ali-brainx. Amplituda supports these audio formats. So, maybe something with a recorded audio file? Could you please provide one of these files?

lincollincol commented 2 years ago

@mohsin-ali-brainx Hello. Please, update lib version to 2.2.2 implementation 'com.github.lincollincol:amplituda:2.2.2'

raph9091 commented 1 year ago

@lincollincol I was trying to use this library for rendering audio waves for m3u8/hls audio files. But I get the error could not open input file. Can you please let me know if there is a fix for this or if you would add the feature?

lincollincol commented 1 year ago

@raph9091 Hello! Amplituda doesn't support these formats. As far as I understand, M3U8 format represents a playlist (plain text with audio files paths). So, maybe you can try to read this file, extract all files and process with Amplituda.