Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Compression Techniques Encodig Audio from Raw PCM bytes in Java Android

  • Encodig Audio from Raw PCM bytes in Java Android

  • Momin Ali

    April 30, 2017 at 5:42 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.

Viewing 1 of 1 posts

Log in to reply.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy