Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#2145·wvp-GB28181-pro

BUG 云端录像经常中断

Author: Li-ChenZhongCreated May 12, 2026Updated Aug 7, 2026

环境信息:

    1. 部署方式 wvp-pro + zlm都是编译部署,同服务器
    1. 部署环境 ubuntu24
    1. 端口开放情况 按照文档开放,基本功能均正常
    1. 是否是公网部署 公网部署
    1. 是否使用https 否
    1. 接入设备/平台品牌 汉邦高科
    1. 你做过哪些尝试 调整配置文件参数,查找日志
    1. 代码更新时间 我拉取的代码,最新提交为2026.3.19日 更新channelMapper以清除流信息
    1. 是否是4G设备接入 否

描述错误 设置7*24小时录制计划后,云端录像经常中断然后不能恢复,此时设备是在线的,点播直接就能看到画面,手动点播后,会恢复录像

如何复现 一些摄像头通过局域网接入咱们流媒体平台,然后全部设置7*24小时录像,基本上一天之内就会出现中断录像的设备

截图

ImageImageImage

其他均正常,只有8号摄像机中断录像,但是8号是在线的,点击播放直接正常播放,并且手动点击播放之后,录像恢复 抓包文件

日志

日志内容放这里, 文件的话请直接上传

8号摄相机13:06:40中断(自己数小时不能恢复,但只要手动点一下播放就恢复录像),13:06:40日志如下:

<img width="1504" height="455" alt="Image" src="https://github.com/user-attachments/assets/32f46d53-c55e-4f65-81b3-6f30d0427bd3" />

<img width="1900" height="934" alt="Image" src="https://github.com/user-attachments/assets/26941dc9-479b-4f60-b0be-ca841900f809" />

我查各种资料调整配置文件参数值,目前部分相关配置参数如下: wvp相关的配置: media.record-path: ./www/record media.record-day: 10 media.rtp.enable: true media.rtp.record-assist-port: 0 user-settings.auto-apply-play: true user-settings.play-timeout: 18000 user-settings.record-push-live: true user-settings.record-sip: true user-settings.use-pushing-as-status: true user-settings.stream-on-demand: false user-settings.refuse-channel-status-channel-form-notify: false user-settings.gb-device-online: 1

zlm相关的配置: [protocol] auto_close=0 [record]

mp4录制或mp4点播的应用名,通过限制应用名,可以防止随意点播

点播的文件必须放置在此文件夹下

Application name for MP4 recording/VOD. Restricting this prevents unauthorized VOD access.

VOD files must be placed within this specific folder.

appName=record

mp4录制写文件缓存,单位BYTE,调整参数可以提高文件io性能

MP4 recording write cache size in bytes. Tweak to optimize file I/O performance.

fileBufSize=65536

mp4点播每次流化数据量,单位毫秒,

减少该值可以让点播数据发送量更平滑,增大该值则更节省cpu资源

Duration (in ms) of MP4 data streamed per VOD transmission block.

Decreasing this value smooths transmission; increasing it saves CPU resources.

sampleMS=500

mp4录制完成后是否进行二次关键帧索引写入头部

Whether to write a secondary keyframe index into the MP4 header after recording completes (fast start).

fastStart=0

MP4点播(rtsp/rtmp/http-flv/ws-flv)是否循环播放文件

Controls whether MP4 VOD playback (rtsp/rtmp/http-flv/ws-flv) loops the file when it reaches the end.

fileRepeat=0

MP4录制写文件格式是否采用fmp4,启用的话,断电未完成录制的文件也能正常打开

Whether to use the fmp4 format for MP4 recording. Enables normal playback of interrupted recordings (e.g., due to power loss).

enableFmp4=1

Source: 648540858/wvp-GB28181-pro

View original on GitHubView discussion on GitHub