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

@@ -30,7 +30,7 @@ def generate(*, pipeline_id: int, audio_path: str, cover_path: str,
logger.info("ffmpeg 실행: %s", " ".join(cmd))
result = subprocess.run(cmd, capture_output=True, text=True, timeout=VIDEO_TIMEOUT_S)
if result.returncode != 0:
raise VideoGenerationError(f"ffmpeg 실패: {result.stderr[:500]}")
raise VideoGenerationError(f"ffmpeg 실패: {result.stderr[-800:]}")
return {
"url": storage.media_url(pipeline_id, "video.mp4"),