fix 0 pixel gate, fallback cursur halutination, comment halutination
This commit is contained in:
1 parent
a2543e19d4
commit
364616ec0f
9 files changed
+286
-82
No files matched your search
@@ -30,6 +30,8 @@ POSTER_W = 1000 # 9:16 안에서 포스터가 차지할 폭 (좌우
|
||||
TOP_PAD = 86
|
||||
LOOP_OVERLAP = 16 # 겹침 프레임. 소재가 잔잔할수록 키워야 이음매가 죽는다
|
||||
MIN_LOOP_SECONDS = 3
|
||||
# 한 프레임 이내로 넘치는 것은 잘려도 들리지 않는다. 이게 없으면 같은 초에서 실패한다
|
||||
NARRATION_OVERFLOW_TOLERANCE = 1 / FPS
|
||||
|
||||
NARRATION_VOL, SFX_VOL, BGM_VOL = 1.45, 0.35, 0.20
|
||||
BGM_FADE_IN = 1.0
|
||||
@@ -260,8 +262,8 @@ def render(clip: bytes, poster: Path | Image.Image, *,
|
||||
raise RuntimeError(f"루프 길이가 너무 짧다 ({loop_length}프레임) — overlap을 줄일 것")
|
||||
duration = loop_length / FPS
|
||||
|
||||
if timeline and timeline.cues[-1].end > duration:
|
||||
raise RuntimeError(f"나레이션이 {timeline.cues[-1].end:.2f}초로 영상 {duration:.2f}초를 "
|
||||
if timeline and timeline.cues[-1].end > duration + NARRATION_OVERFLOW_TOLERANCE:
|
||||
raise RuntimeError(f"나레이션이 {timeline.cues[-1].end:.3f}초로 영상 {duration:.3f}초를 "
|
||||
"넘는다 — overlap을 줄이거나 나레이션을 짧게")
|
||||
|
||||
# 2회차 — 순서대로 합성해 인코더에 바로 밀어넣는다
|
||||
|
||||
Reference in new issue
Block a user