[Libav-user] how to deal with network timeout

qw applemax82 at 163.com
Wed Jul 20 13:11:39 CEST 2016


Hi,

I'm making program to read and write rtmp stream to server. Many ffmpeg functions are related in network operation, such as connection, read and write:

avformat_open_input(), avformat_find_stream_info(), av_read_frame(), and av_interleaved_write_frame().

If network is not good, avformat_open_input() and av_read_frame() will wait indefinitely. How to deal with indefinite-waiting issue?

Thanks!

Regards

Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160720/d2f34f83/attachment.html>


More information about the Libav-user mailing list