[Libav-user] how to deal with network timeout
applemax82 at 163.com
Wed Jul 20 13:11:39 CEST 2016
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user