[FFmpeg-cvslog] Do not use AVFMT_FLAG_NONBLOCK for the output file.

Nicolas George nicolas.george
Wed Mar 9 21:45:28 CET 2011

Le nonidi 19 vent?se, an CCXIX, Luca Abeni a ?crit?:
> However, the fact that ffmpeg selects AVFMT_FLAG_NONBLOCK basically
> means that the application wants to take care of the timing by
> itself.

That is the theory. In practice, setting AVFMT_FLAG_NONBLOCK means that you
have to handle EAGAIN condition. ffmpeg does it on input files but not on
output files.

>	  And "-re" just asks ffmpeg to read (and write) the stream at
> the correct rate - according to the timestamps (this is what we use
> for network streaming, too).

Unfortunately, the clock of a soundcard can be slightly different from the
central clock of the computer, leading to a slow drift and ultimately
possibly a buffer overrun and short blocking. Or EAGAIN.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20110309/93176fc2/attachment-0001.pgp>

More information about the ffmpeg-cvslog mailing list