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