Open Mon-ius opened 2 months ago
This sounds like a good idea. It will need a fair bit more code than the current format::input
function (which should probably be called format::input_from_path
) because reading from memory will require a custom AVFormatContext and AVIOContext AFAIK.
current video is from
path
, which implemented calledformat::input
, for example,if that is possible to expose the API, for example,
let mut ictx = format::from_bytes(&self.buffer)?;