artclarke / humble-video

Humble Video: Demuxing, Decoding, Filtering, Encoding and Muxing of 100's of video and audio formats and Codecs from the JVM
GNU Affero General Public License v3.0
557 stars 115 forks source link

Output to memory #130

Open NebuchadrezzarPL opened 5 years ago

NebuchadrezzarPL commented 5 years ago

Maybe I should start with explaining what I’m trying to do, and then I’ll form my questions. I would like to take raw frames provided by RTMP protocol and combine them into short MP4 files. However instead of saving them on a hard-drive I would like to keep them in memory as some kind of ByteBuffers, so I can send them via WebSockets to a web brower.

Questions:

  1. Can I mux raw h.264 frames (ByteBuffers) into an mp4 container using humble-video?
  2. Can I force this library to save encoded files into ByteBuffers instead of files?

P.s. It took 12h to compile project on mbp 2013 (vagrant)... damn, that was long!