a-schild / jave2

The JAVE (Java Audio Video Encoder) library is Java wrapper on the ffmpeg project
GNU General Public License v3.0
1.2k stars 246 forks source link

Using byte arrays and/or input streams during encoding #252

Open JoeBerg8 opened 6 months ago

JoeBerg8 commented 6 months ago

Just getting familiar with this library (and audio/video processing in general). Apologies if I'm misusing any terminology.

I have audio content originally an .aac stored in my database as a byte[] and need to convert it to .wav. It looks like conversion can be done easily using java.nio.Files as shown in the readme.

My question is - is it possible to use this library to convert without using files? I don't have access to the filesystem and would love to not have to go that route and instead convert my byte[] to an InputStream and then feed that to jave.

If not possible, would you consider adding this functionality to jave?

Many thanks. Great looking project.