If you original URL looks like this:

udp://@239.1.1.7:5107

Add the fifo_size and overrun parameters like this:

"udp://@239.1.1.7:5107?overrun_nonfatal=1&fifo_size=50000000"

Remember to escape the URL with quotes.

overrun_nonfatal=1 prevents ffmpeg from exiting, it can recover in most circumstances.

fifo_size=50000000 uses a 50MB udp input buffer (default 5MB)

即,ffmpeg在接收网络协议流时可以在链接上通过fifo_size进行缓冲大小的设置

 

转自:https://blog.csdn.net/yangtze_1006/article/details/37600579?utm_source=blogxgwz7

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐