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

相关推荐
_祝你今天愉快7 小时前
在安卓中使用 FFmpegKit 剪切视频并添加文字水印
android·ffmpeg
qing222222221 天前
FFmpeg:因码流采集与封装不同步导致录制出来的MP4文件会出现黑屏、绿屏的问题
ffmpeg·黑屏、绿屏
bubiyoushang8882 天前
CentOS安装ffmpeg并转码视频为mp4
ffmpeg·centos·音视频
weiwei228442 天前
ffmpeg使用入门
ffmpeg·vcpkg
云霄IT2 天前
python使用ffmpeg录制rtmp/m3u8推流视频并按ctrl+c实现优雅退出
python·ffmpeg·音视频
rjszcb3 天前
通过v4l2,采集视频,FFmpeg编码压缩封装视频(三)
ffmpeg·音视频
老谢不老3 天前
ffmpeg-7.1.1 下载安装 windows 版,MP4 转 m3u8 切片,遇到报错 Unrecognized option ‘vbsf‘的解决办法
ffmpeg
xhBruce3 天前
FFmpeg+javacpp中FFmpegFrameGrabber
ffmpeg·ffmpeg+javacpp
努力做小白3 天前
Linux驱动20 --- FFMPEG视频API
linux·驱动开发·单片机·嵌入式硬件·ffmpeg·lvgl