[FFmpeg-devel] av_read_frame() question about blocking

Nicolas George 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
this one:
http://ffmpeg.org/mailman/listinfo/libav-user

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180425/42506657/attachment.sig>


More information about the ffmpeg-devel mailing list