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 245 forks source link

Is there any way to do byte[] to byte[] or InputStream to OutputStream conversion? #213

Open elijah-pl opened 2 years ago

elijah-pl commented 2 years ago

Need to find a way to format videos on the fly - chunk by chunk. Seems like ffmpeg supports stdin-stdout conversion without temporary files, but lib Encoder only allows to specify target file.

a-schild commented 1 year ago

A InputStream can be passed for the input. Output to StdOut is not implemented, but I would accept a patch for this. But be aware that some media formats need to read the source multiple times to do an optimazed conversion