[FFmpeg-devel] av_read_frame() question about blocking
george at nsup.org
Wed Apr 25 21:24:02 EEST 2018
Philip Prindeville (2018-04-24):
> It looks like it’s internally going to keep making multiple calls to
> the read_packet function until it’s acquired enough.
> Is that correct?
Yes. There is AVFMT_FLAG_NONBLOCK that would cause demuxers to return
AVERROR(EAGAIN) if not enough data is available immediately, but almost
no demuxer implement support for it, only devices.
For now, if you want non-blocking operation, you need to run the
demuxers in a separate context, for example a thread.
Note that unless you intend to propose actual enhancements on that
issue, the correct list to ask about the use of the FFmpeg libraries is
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: Digital signature
More information about the ffmpeg-devel