Hi,

I am using libav with custom I/O (with avio_alloc_context()) for reading
various stream.

In my project, all my I/O are asynchronous but ffmpeg callbacks work in a
synchronous way. So right now, what I am doing is to use an internal buffer
4 times bigger than my avio buffer and each time my read callback is called
I copy a part of my buffer and get new data asynchronously, this works well
for reading, but when I seek my media I don't have (yet) data in my
internal buffer. In such case what should I return in my read callback?

Also, there is a flag AVIO_FLAG_NONBLOCKING that I could pass to
avio_alloc_context but i couldn't figure how to use it (what should I
return in my read callback?)

is there any way to use custom I/O in an asynchronous fashion?

Thanks.
Nic.
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to