返回目录
Agent 与会话 插件

dsh-av-sync-gate

xushilianzhuren/dsh-av-sync-gate

声画同步闸:解说视频的画面对音轨漂移终结核——输入各段配音实测时长,输出逐段帧计划(段长=配音+0.25秒呼吸位·基址/帧数/跨度),另带帧号空洞检测(ffmpeg遇缺号即停·成片腰斩的头号元凶);拼接视频前过闸,话没说完图先跳这种病出厂前死掉。

Stars
0
Forks
0
Issues
0
更新
23 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:xushilianzhuren/dsh-av-sync-gate

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-av-sync-gate

Audio-visual sync gate for narrated slideshow videos. The #1 failure mode: picture cuts while the voice is still talking, and it drifts worse every segment. Root cause: visual segments ignore the tail silence between voice clips. This gate computes the exact frame plan so picture and audio stay locked, end to end.

The formula

segment_seconds = voiceover_seconds + 0.25   (breath gap, configurable)
frames          = ceil(segment_seconds × fps)

Frame-hole detector

ffmpeg stops encoding at the first missing frame number — a single hole cuts your video in half. act=check compares expected vs actual frame count and tells you to renumber sequentially before muxing.

Use

dsh plugin add github:<owner>/dsh-av-sync-gate
curl "http://127.0.0.1:<port>/av-sync/api?act=plan&durs=4.7,7.2,8.3&fps=30"
curl "http://127.0.0.1:<port>/av-sync/api?act=check&count=1611&expected=1615"

v1.1 · subtitle act (2026-11-01)

GET /av-sync/api?act=subtitle&text=...&dur=8.8 — splits segment text into phrases (punctuation stays at the tail of the previous phrase), schedules each by character-weight proportion across the voiceover window. Powers on-screen subtitles that switch exactly when the voice says the next phrase.

Layer rule

Portrait first, text last — text always renders above the character art; character art ≤50% of frame height, proportional scaling only.

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类Agent 与会话
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: agent、ai-agent。