SRS服务器ffmpeg 推流rtmp超时中断

avatar
作者
筋斗云
阅读量:0

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

广告一刻

为您即时展示最新活动产品广告消息,让您随时掌握产品活动新动态!