There is an example in the FFmpeg documentation describing how to use a custom buffer as input, instead of a file or device.
Would it be possible to wrap the relevant ffmpeg api-functions used in the example?
Perhaps support a new InputSource type, like Buffer ByteString (Lazy, strict or something conduit/pipe/stream-like?)
I would be glad to help, here, as I have a use-case where extracting frames from videos in a streaming fashion is desirable (preferably without touching the disk)
I certainly wouldn’t stand in the way, but I don’t have the personal bandwidth to put much time into it. Do you need help getting started, or are you looking more for code review when nearing completion?
There is an example in the FFmpeg documentation describing how to use a custom buffer as input, instead of a file or device.
Would it be possible to wrap the relevant
ffmpeg
api-functions used in the example? Perhaps support a new InputSource type, likeBuffer ByteString
(Lazy, strict or something conduit/pipe/stream-like?)I would be glad to help, here, as I have a use-case where extracting frames from videos in a streaming fashion is desirable (preferably without touching the disk)