[FFmpeg-devel] [PATCH] Yield on AVERROR(EAGAIN).

Michael Niedermayer michaelni
Fri Mar 5 19:47:29 CET 2010


nOn Fri, Mar 05, 2010 at 05:18:26PM +0100, Nicolas George wrote:
> Le quintidi 15 vent?se, an CCXVIII, Michael Niedermayer a ?crit?:
> > >  From the application's point of view, this device is still blocking, but
> > > now, it is also insensible to polling irregularities: if the application is
> > > blocked in another device, or spends a little too much time encoding a
> > > particularly complex frame, it will not drop any data, just queue it.
> > it should return EAGAIN not block ...
> 
> I think it should return EAGAIN if AVFMT_FLAG_NONBLOCK was set, and block if
> AVFMT_FLAG_NONBLOCK was not set.
> 
> You must remember that currently, ffmpeg can not deal with non-blocking
> inputs: the main loop would have to be rewritten to be input-driven and not
> output-driven.

before you rewrite ffmpeg.c you could try -isync

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100305/a07f1b3d/attachment.pgp>



More information about the ffmpeg-devel mailing list