[FFmpeg-devel] [PATCH] What is missing for working AVFMT_FLAG_NONBLOCK?

Nicolas George nicolas.george
Wed Mar 4 18:42:59 CET 2009

Le quartidi 14 vent?se, an CCXVII, Michael Niedermayer a ?crit?:
> well you must misundestand it because this is not what the jack wraper does

The Jack device is a PCM device, and packets of PCM data can safely be
merged. I am not sure that the same would be true for a webcam returning
JPEG frames, for example.

> i surely agree but like select() this is unflexible it requires 
> pthread_cond_t to be used by all demuxers that can run out of data.
> if it can be implemented in a way that this is optional and clean then
> it would be an option of course, but it would have to work together
> with demuxers that require to be polled regularly.

I think a generic thread wrapper can do that in a very simple manner. Part
of your patch would still be needed to handle EAGAIN gracefully, but the
rest is not very complex. I have little time the next few days, but I can
try to provide the outline of such a wrapper sometime.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090304/3001dd16/attachment.pgp>

More information about the ffmpeg-devel mailing list