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

相关推荐
程序员老陆13 小时前
FFmpeg RTSP 解复用器(rtsp demuxer)完全解析:从「能播」到「稳播」的参数圣经
ffmpeg·音视频·拉流·rtsp
诸葛大钢铁2 天前
视频转音频怎么转换?在线工具、VLC、FFmpeg 三种方法详解
ffmpeg·音视频·mp4转mp3·视频转音频·视频转mp3·视频提取音频
qingmiaozhuan2 天前
电脑录屏软件追剧高光截取:FFmpeg帧裁剪与可视化方案对比
ffmpeg·电脑·音视频开发·录屏技术·电脑录屏
程序员老陆2 天前
FFmpeg6操作 RTMP参数详解
ffmpeg·音视频·rtmp
戒了,最后一次3 天前
Windows 安装 FFmpeg 完整教程(附环境变量配置 + 常用命令示例)
windows·ffmpeg
≮傷£≯√3 天前
FFmpeg + qt 音频播放
qt·ffmpeg·音视频
程序员老陆3 天前
Qt的QThread::usleep和FFmpeg的libavutil模块的av_usleep哪个精度高一些?
开发语言·qt·ffmpeg·音视频
程序员老陆3 天前
如何使用FFmpeg6的API进行HLS开发呢?
ffmpeg·音视频·hls
程序员老陆5 天前
说一说FFmpeg6在Linux平台的编译
linux·运维·服务器·ffmpeg
用户518186005665 天前
FFmpeg 剪辑:为什么 `-c copy` 往往做不到帧准确剪切
ffmpeg