fix:ASS 자막 비활성화 (슬라이드 캡션바와 중복 제거)
- TutorialVideoJob: 자막 생성 제거, subtitlePath에 null 전달 - TutorialAssemblyService: subtitlePath 파라미터 nullable 변경 - VideoAssemblyService: subtitlePath nullable + null일 때 ass 필터 생략 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -241,16 +241,7 @@ public function handle(
|
||||
// === Step 5: 최종 합성 (80%) ===
|
||||
$tutorial->updateProgress(TutorialVideo::STATUS_ASSEMBLING, 70, '영상 합성 중...');
|
||||
|
||||
// ASS 자막 생성 (인트로/아웃트로 나레이션은 자막에서 제외)
|
||||
$subtitleScenes = array_map(function ($scene) {
|
||||
$sn = (int) ($scene['scene_number'] ?? 0);
|
||||
if ($sn <= 1 || $sn === 999) {
|
||||
$scene['narration'] = '';
|
||||
}
|
||||
return $scene;
|
||||
}, $scenes);
|
||||
$subtitlePath = "{$workDir}/subtitle.ass";
|
||||
$videoAssembly->generateAssSubtitle($subtitleScenes, $subtitlePath, $narrationDurations, 'landscape');
|
||||
// 자막 비활성화: 슬라이드 하단 캡션바에 나레이션이 이미 표시되므로 ASS 자막 불필요
|
||||
|
||||
// 최종 MP4 합성
|
||||
$finalOutputPath = "{$workDir}/final_tutorial.mp4";
|
||||
@@ -259,7 +250,7 @@ public function handle(
|
||||
$durations,
|
||||
$narrationPath,
|
||||
$bgmResult,
|
||||
$subtitlePath,
|
||||
null,
|
||||
$finalOutputPath
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user