diff --git a/backend/app/routers/photos.py b/backend/app/routers/photos.py index 3d78d6b..6392693 100644 --- a/backend/app/routers/photos.py +++ b/backend/app/routers/photos.py @@ -976,6 +976,10 @@ async def _transcode_to_h264_mp4(src: str, dst: str) -> bool: '-c:a', 'aac', '-b:a', '160k', '-movflags', '+faststart', + # tmp filename ends in `.tmp`, which ffmpeg can't map to + # an output muxer — force the mp4 muxer explicitly so the + # name is just storage scratch, not a format hint. + '-f', 'mp4', tmp, ], capture_output=True, text=True, timeout=600,