[Libav-user] AVIO buffering and partial reads

Idan Freiberg speidy at gmail.com
Fri Jan 8 12:59:37 EET 2021

Additionally, the input context i read the container data from is also
based on a non seekable AVIO memory stream.

בתאריך יום ו׳, 8 בינו׳ 2021 ב-12:03 מאת Idan Freiberg <speidy at gmail.com>:

> Hi,
> I’m trying to use the Libavformat library in order to extract the plain
> h264 video stream from a audio video container format. I’ve used the
> remuxing.c example as a reference.
> I want to support partial writes to the output context holding the
> extracted h264 video stream. I’m using a custom memory based AVIO, without
> seek support (unseekable).
> When returning a smaller amount of bytes then passed to the AVIO
> write_frame() callback, I would expect from the write callback to be called
> again with the rest of the data I didn’t read. In practice I saw that I’m
> getting new data for the next write callback.
> I wondered if I must support seek() for achieving partial write()s from
> Am I missing something?
> Any insight is appreciated.
> Thanks
> --
> Idan Freiberg Mobile: +972-52-2925213
Idan Freiberg Mobile: +972-52-2925213
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20210108/cb89e17b/attachment.html>

More information about the Libav-user mailing list