ChinaFFmpeg

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9792|回复: 1

[Linux] ffmpeg长时间运行总是报Circular buffer overrun. Surviving due to overr...

[复制链接]
发表于 2016-10-12 10:06:54 | 显示全部楼层 |阅读模式
[Shell] 纯文本查看 复制代码
ffmpeg -re -async 1 -i udp://230.0.0.108:20000?overrun_nonfatal=1&fifo_size=147483647&buffer_size=49999916 -c:a aac -b:a 128k -c:v hevc_nvenc -b:v 6M -deinterlace -g 30 -minrate 6M -maxrate 6M -tier high -preset llhq -rc ll_2pass_quality -f mpegts -async 1 -y udp://230.0.0.52:8000?pkt_size=1316&localaddr=192.168.172.110&overrun_nonfatal=1&fifo_size=147483646&ttl==64

错误信息
[C++] 纯文本查看 复制代码
[ac3 @ 0x31c1300] frame sync error
Error while decoding stream #0:1: Invalid data found when processing input
[udp @ 0x2b5dfc0] Circular buffer overrun. Surviving due to overrun_nonfatal option
    Last message repeated 31 times
[ac3 @ 0x31c1300] exponent 27 is out-of-range
[ac3 @ 0x31c1300] error decoding the audio block
[udp @ 0x2b5dfc0] Circular buffer overrun. Surviving due to overrun_nonfatal option
    Last message repeated 51 times
[ac3 @ 0x31c1300] frame sync error
Error while decoding stream #0:1: Invalid data found when processing input
[udp @ 0x2b5dfc0] Circular buffer overrun. Surviving due to overrun_nonfatal option
    Last message repeated 54 times
[mpegts @ 0x2b5d800] PES packet size mismatch
frame=3174367 fps= 23 q=26.0 size=102662938kB time=38:52:19.16 bitrate=6009.9kbits/s dup=0 drop=15517 speed=   1x    
[udp @ 0x2b5dfc0] Circular buffer overrun. Surviving due to overrun_nonfatal option
    Last message repeated 40 times
[mpegts @ 0x2b5d800] PES packet size mismatch
[ac3 @ 0x31c1300] exponent 26 is out-of-range
[ac3 @ 0x31c1300] error decoding the audio block
[udp @ 0x2b5dfc0] Circular buffer overrun. Surviving due to overrun_nonfatal option
    Last message repeated 44 times
[ac3 @ 0x31c1300] frame sync error
Error while decoding stream #0:1: Invalid data found when processing input
[udp @ 0x2b5dfc0] Circular buffer overrun. Surviving due to overrun_nonfatal option
    Last message repeated 135 times
[ac3 @ 0x31c1300] bandwidth code = 61 > 60
[ac3 @ 0x31c1300] error decoding the audio block
[udp @ 0x2b5dfc0] Circular buffer overrun. Surviving due to overrun_nonfatal option
    Last message repeated 87 times
[mpegts @ 0x2b5d800] PES packet size mismatch
[ac3 @ 0x31c1300] frame sync error
Error while decoding stream #0:1: Invalid data found when processing input
[udp @ 0x2b5dfc0] Circular buffer overrun. Surviving due to overrun_nonfatal option
frame=3174375 fps= 23 q=30.0 size=102663188kB time=38:52:19.72 bitrate=6009.9kbits/s dup=0 drop=15517 speed=   1x    
[udp @ 0x2b5dfc0] Circular buffer overrun. Surviving due to overrun_nonfatal option
    Last message repeated 58 times
[ac3 @ 0x31c1300] exponent 25 is out-of-range
[ac3 @ 0x31c1300] error decoding the audio block
[udp @ 0x2b5dfc0] Circular buffer overrun. Surviving due to overrun_nonfatal option
    Last message repeated 26 times
[ac3 @ 0x31c1300] frame sync error
Error while decoding stream #0:1: Invalid data found when processing input
[udp @ 0x2b5dfc0] Circular buffer overrun. Surviving due to overrun_nonfatal option
    Last message repeated 58 times
[mpegts @ 0x2b5d800] PES packet size mismatch
[udp @ 0x2b5dfc0] Circular buffer overrun. Surviving due to overrun_nonfatal option
    Last message repeated 37 times
[ac3 @ 0x31c1300] exponent -1 is out-of-range
[ac3 @ 0x31c1300] error decoding the audio block
[udp @ 0x2b5dfc0] Circular buffer overrun. Surviving due to overrun_nonfatal option
    Last message repeated 26 times
[ac3 @ 0x31c1300] frame sync error
Error while decoding stream #0:1: Invalid data found when processing input
[udp @ 0x2b5dfc0] Circular buffer overrun. Surviving due to overrun_nonfatal option
    Last message repeated 51 times
[mpegts @ 0x2b5d800] PES packet size mismatch
frame=3174382 fps= 23 q=33.0 size=102663363kB time=38:52:20.28 bitrate=6009.8kbits/s dup=0 drop=15517 speed=   1x    
[udp @ 0x2b5dfc0] Circular buffer overrun. Surviving due to overrun_nonfatal option
    Last message repeated 71 times
[ac3 @ 0x31c1300] exponent -1 is out-of-range
[ac3 @ 0x31c1300] error decoding the audio block
[mpegts @ 0x2b5d800] PES packet size mismatch
[ac3 @ 0x31c1300] frame sync error
Error while decoding stream #0:1: Invalid data found when processing input
[udp @ 0x2b5dfc0] Circular buffer overrun. Surviving due to overrun_nonfatal option
    Last message repeated 66 times
[ac3 @ 0x31c1300] exponent -1 is out-of-range
[ac3 @ 0x31c1300] error decoding the audio block
[udp @ 0x2b5dfc0] Circular buffer overrun. Surviving due to overrun_nonfatal option
    Last message repeated 49 times
[ac3 @ 0x31c1300] frame sync error
Error while decoding stream #0:1: Invalid data found when processing input
[udp @ 0x2b5dfc0] Circular buffer overrun. Surviving due to overrun_nonfatal option


一般这种情况是不是把overrun_nonfatal=1&fifo_size=147483646这两个设置了就OK,但是overrun_nonfatal参数设置完了之后,在缓冲区溢出的时候ffmpeg依然运行,但是画面已经花的不能看了,请大家帮帮忙  谢谢




回复

使用道具 举报

 楼主| 发表于 2017-5-9 17:37:16 | 显示全部楼层
已解决  是因为计算资源不足  编码太慢 导致从缓冲区中读取数据过慢进而导致缓冲区溢出了,减少一路就OK
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|Archiver|ChinaFFmpeg

GMT+8, 2024-4-19 16:46 , Processed in 0.058149 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表