Reputation: 29
I am using AudioRecord class to read the data in bytes. Since the data received in the AudioRecord.read(byte[], int, int) is in raw form(too big), I want to encode it in some other compressed format like Vorbis(.ogg) using ffmpeg C Api. I have compiled the libffmpeg.so file which I will call through JNI. I want to know how this will be done.
After successfully encoding I want to create a video with this same audio and a single image attached to it.
Thanks.
Upvotes: 1
Views: 1611
Reputation: 2870
You can create a .wav file with your data in bytes and later convert this audio file with your image directly in a video. 1 image + 1 audio file = 1 video
Upvotes: 1