[FFmpeg-cvslog] Do not use AVFMT_FLAG_NONBLOCK for the output file.
Luca Abeni
lucabe72
Wed Mar 9 21:34:01 CET 2011
On 09/03/11 18:18, Justin Ruggles wrote:
> On 03/09/2011 05:19 AM, Luca Abeni wrote:
>
>> On 03/08/2011 09:01 PM, Justin Ruggles wrote:
>>> On 03/08/2011 02:47 PM, Carl Eugen Hoyos wrote:
>>>
>>>> ffmpeg | branch: master | Carl Eugen Hoyos<cehoyos at ag.or.at> | Tue Mar 8 20:45:26 2011 +0100| [0de8ebf49125c48688a800b45009cfa222e5dbac] | committer: Carl Eugen Hoyos
>>>>
>>>> Do not use AVFMT_FLAG_NONBLOCK for the output file.
>>>>
>>>> Allows to use output device alsa.
>>>
>>>
>>> Works for me. Thanks.
>>>
>>> before: av_interleaved_write_frame(): Resource temporarily unavailable
>> BTW, a possible solution to this problem was to add "-re" to the
>> ffmpeg's command line
>
>
> That does work, but it's completely non-obvious. Do we have that
> documented somewhere?
Well, I do not know if this fact is documented...
However, the fact that ffmpeg selects AVFMT_FLAG_NONBLOCK basically
means that the application wants to take care of the timing by itself.
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).
Luca
More information about the ffmpeg-cvslog
mailing list