fix(agent): stream videos via ffmpeg-from-URL (no full download) — env-agnostic #181
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The failing "poison" jobs were 800 MB+ 4K VR videos: the agent pulled the entire file into memory just to sample a few frames, buffered ~1 GB in RAM, and on a slow/per-connection-limited link got cut off mid-download (
ChunkedEncodingError) → failed → re-leased forever.Environment-agnostic fix (works for any deployment — NFS/CIFS/whatever backs curator — and completes even when slow):
media.sample_frames_from_url(): ffmpeg reads curator's/imagesURL directly, Range-reading only the video index + up tomax_framesof content (never the whole file). Reconnect flags resume a dropped transfer;FFMPEG_TIMEOUT(default 1200s, env-tunable) lets a slow link finish. Removed the dead bytes-basedsample_frames.worker._download_decode: videos stream (no RAM blowup); stills unchanged. On an ffmpeg miss,client.is_reachable()decides fault (curator up → unprocessable file, stop looping) vs transient (curator down → keep retrying, survives redeploy). Auth header passed so it works whether or not/imagesis gated.Follows
2026-07-01.5(name the real transient reason). Build2026-07-01.6. CI green (run 1835). Refs #1225.🤖 Generated with Claude Code