[FFmpeg-devel] network blocking

Ronald S. Bultje rsbultje
Fri Feb 26 18:04:27 CET 2010


On Fri, Feb 26, 2010 at 2:55 AM, Tamas Selmeci <tselmeci at open-st.eu> wrote:
> If network connection goes down (cable unplugged, wifi loses signal,
> bluetooth disconnects and so on), ffmpeg gets stucked. I mean, these are the
> two most serious problems:
> -1) networks goes down during av_open_input_file(...), this function refuses
> to return immediately;
> -2) network goes down during av_read_frame(...), also does not return
> immediately;
> Since the application should provide quite fast responses to such events,
> the current behaviour is not adequate. Those calls return after a lot of
> seconds, meanwhile my application (the related thread) is blocked.

See url_interrupt_cb.


More information about the ffmpeg-devel mailing list