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

相关推荐
Hi202402171 天前
Orin-Apollo园区版本:订阅多个摄像头画面拼接与硬编码RTMP推流
ffmpeg·apollo·orin·图像拼接·图传
蓝纹绿茶1 天前
Python程序使用了Ffmpeg,结束程序后,文件夹中仍然生成音频、视频文件
python·ubuntu·ffmpeg·音视频
herb.dr3 天前
FFMPEG H264
ffmpeg
AJi3 天前
编解码原理(一):H264
ffmpeg·音视频开发·视频编码
linux开发之路3 天前
C++ 音视频开发常见面试题及答案汇总
c++·ffmpeg·音视频·流媒体·音视频编解码
默凉6 天前
ffmpeg 安装
ffmpeg
微瑟秋风7 天前
Python应用——ffmpeg处理音视频的常见场景
python·ffmpeg
WSSWWWSSW7 天前
警告:OPENCV_FFMPEG_READ_ATTEMPTS (current value is 4096)
人工智能·opencv·ffmpeg
A尘埃8 天前
FFmpeg音视频处理解决方案
ffmpeg·音视频
Industio_触觉智能8 天前
瑞芯微RK3576平台FFmpeg硬件编解码移植及性能测试实战攻略
ffmpeg·开发板·嵌入式开发·瑞芯微·视频解码·rk3576·rk3576j