Open omkar-tenkale opened 3 years ago
I think the issue lies in FRAME option Or writing the buffer to outputstream
What I'm aiming for:
Convert any audio to opus format at 24kbps bitrate
@omkar-tenkale I'm not sure but I think the problem is that the output file doesn't have the needed headers that a player can read and understand that the file is opus audio so that's why it failed to play.
Can you add some helper methods in the library eg
encodeToFile(InputStream input,File output,ProgressListener listener)
Can you please clarify use of FRAME_SIZE option and if it affects buffer size Also which parameters affect final file size and how eg Bitrate directly proportional to output file size
sorry but currently I'm not planning to add methods for saving the output to file.
Not a good news,hope you'll add it later
I'll be using this lib for converting audio to opus then,
https://github.com/tanersener/mobile-ffmpeg
Only drawback is its >30mb while this library is <1mb
i've written this code but the output file fails to play