Encodig Audio from Raw PCM bytes in Java Android
by Momin Ali on Apr 30, 2017 at 5:42:37 pm
Hello, I am a beginner in using FFMPEG. Please understand and help me. I have successfully installed FFmpeg in my project but the problem I am facing is that I am recording Audio using AudioRecord class in Android Java and I do not know how to encode it in different formats. How can I encode the Raw Audio Bytes using FFmpeg? Which commands should I use? I get these bytes in a byte buffer. Should I create a new audio stream before I can encode in real-time or I can do that directly? I want to be able to save the recorded audio in different formats such as 3GP, AAC, AMR, FLAC, M4A, MP3, MP4, OGG, WAV etc.