axiomatic-systems / Bento4

Full-featured MP4 format, MPEG DASH, HLS, CMAF SDK and tools
http://www.bento4.com
2.02k stars 482 forks source link

Support for unix pipes or downloads #242

Open philmoss543 opened 6 years ago

philmoss543 commented 6 years ago

Does bento4 have support for unix pipes, like ffmpeg? https://ffmpeg.org/ffmpeg-protocols.html#pipe

Or is there a way to use a url as input? mp4hls http://path_to_mp4.mp4

I really love the speed and ease of use of the mp4hls tool, and I'd prefer to not fall back to ffmpeg just for hls segmenting.

I am trying to avoid downloading files to disk to run mp4hls, so I'm looking for a way to stream a download through bento. I'm not sure if this is possible with this tool yet, but I haven't been able to get it to work at all. I don't see any support for it in the python script as far as I can see.

Let me know if I'm missing something, or if you have any suggestions. If it's not possible yet, it would be a really handy feature! Thanks.

barbibulle commented 6 years ago

This sounds like a great feature. I'll check how much work it would be to implement, and if it isn't too complicated, I'll try to get it done soon. One complication may be that for some inputs, random-access to the data may be required (for example MP4 files are not always stored in temporal order...).