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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user