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

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

相关推荐
别动哪条鱼16 小时前
AAC ADTS 帧结构信息
网络·数据结构·ffmpeg·音视频·aac
tokepson1 天前
关于音频处理工具FFmpeg | 笔记备注
计算机·ffmpeg·技术·记录
Hello.Reader1 天前
用纯 Go 实现一个 AES-128 加密 m3u8 视频下载器(不依赖 ffmpeg)
golang·ffmpeg·音视频·m3u8
你好音视频2 天前
RTSP推流:RTP包组装逻辑详解
ffmpeg·音视频
pu_taoc2 天前
ffmpeg实战2-从MP4文件提取 音频和视频
c语言·c++·ffmpeg·音视频
香蕉ai大玩家2 天前
ffmpeg.dll丢失怎么办?ffmpeg.dll找不到是什么情况
ffmpeg
爱宇阳2 天前
使用 PowerShell + ffmpeg 自动压缩视频(支持 CRF、无损、目标大小模式)
ffmpeg·音视频
The_cute_cat2 天前
FFmpeg的初步学习
学习·ffmpeg
mortimer2 天前
视频自动翻译里的“时空折叠”:简单实用的音画同步实践
python·ffmpeg·aigc
未央几许2 天前
使用ffmpeg.wasm解码视频(avi,mpg等格式)问题
前端·ffmpeg