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

相关推荐
硫酸锌0116 小时前
使用ffmpeg合并文件夹内的所有*.mp4格式视频
ffmpeg·音视频
源文雨16 小时前
shell调用ffmpeg递归转换所有wav至flac的脚本
ffmpeg·bash·音视频·音频·unix·shell·音频编码
西部秋虫16 小时前
迷你视频会议系统(FlashMeeting)
opencv·ffmpeg·视频会议·回声抑制
浩瀚之水_csdn1 天前
av_packet_alloc详解
ffmpeg
Echo_NGC22372 天前
【FFmpeg 使用指南】Part 3:码率控制策略与质量评估体系
人工智能·ffmpeg·视频·码率
xmRao3 天前
Qt+FFmpeg 实现 PCM 音频转 AAC 编码
qt·ffmpeg·pcm
xmRao3 天前
Qt+FFmpeg 实现录音程序(pcm转wav)
qt·ffmpeg
阿里巴啦4 天前
python+yt-dlp开源项目,支持 YouTube, Bilibili, TikTok/抖音,快手 等多个平台的视频/音频/字幕下载/ai摘要等功能
python·ffmpeg·whisper·音视频·视频处理·ai摘要·音视频转录
来鸟 鸣间5 天前
linux下ffmpeg源码编译
linux·运维·ffmpeg
Echo_NGC22375 天前
【FFmpeg使用指南】Part 2:滤镜图架构与信号处理
架构·ffmpeg·音视频·信号处理