fix(music-lab): pipeline 오디오 경로 + ffmpeg 에러 가시성

- orchestrator._run_video: track.file_path 우선 사용 (audio_url 변환 불필요)
- _local_path: /media/music/ → /app/data/ (마운트가 /app/data 직접이라 music 서브디렉토리 없음)
- video.py/thumb.py: stderr truncation [-800:]/[-500:] — 진짜 에러 보이게
This commit is contained in:
2026-05-08 22:50:13 +09:00
parent 4f67cd02fa
commit 2c13e7cc85
3 changed files with 8 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ def generate(*, pipeline_id: int, video_path: str,
"-ss", "00:00:05", "-vframes", "1", "-q:v", "2", out_path]
result = subprocess.run(cmd, capture_output=True, text=True, timeout=THUMB_TIMEOUT_S)
if result.returncode != 0:
raise ThumbGenerationError(f"ffmpeg 썸네일 실패: {result.stderr[:300]}")
raise ThumbGenerationError(f"ffmpeg 썸네일 실패: {result.stderr[-500:]}")
if overlay_text and track_title:
_overlay_title(out_path, track_title)