e59f07df4e
aerender can't reliably write H.264 directly in modern AE — it renders the project's output module (Lossless AVI/MOV) and ignores the .mp4 extension, producing a multi-GB .avi the agent then failed to find/upload. - findRenderedOutput(): locate the file aerender actually wrote (output.avi/.mov/.mp4) - transcodeToMP4(): ffmpeg → H.264 yuv420p + AAC + faststart; drops the lossless intermediate. ffmpeg located via $FFMPEG_PATH, beside the agent exe, or PATH. - Graceful fallback: if ffmpeg is missing/fails, upload the raw render so the job still delivers a (large but valid) file. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>