当前位置:   article > 正文

SRS服务器ffmpeg 推流rtmp超时中断_rtmp推流到 srs 断流重推

rtmp推流到 srs 断流重推

ffmpeg错误显示

failed to update header with correct duration

failed to update header with correct filesize.

Error writing trailer of rtmp://-----  broken pipe

SRS日志错误显示

serve error code=2056 kickoffforidle : service cycle : rtmp stream service: timeout=300s

 解决方式

SRS配置文件修改下面这项

# The timeout in seconds to disconnect publisher when idle, which means no players. 已秒为单位的超时断开。
# Note that 0 means no timeout or this feature is disabled. 0表示没有超时或者禁用此特性。
# Note that this feature conflicts with forward, because it disconnect the publisher stream.
# Overwrite by env SRS_VHOST_PUBLISH_KICKOFF_FOR_IDLE for all vhosts.
# default: 0

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/714020
推荐阅读
相关标签
  

闽ICP备14008679号