Files
shaneandshinyobjectz 1a8a7df53d Opening a video, probing it and making its contact sheet no longer read the whole file (#293)
On a cloud Sprite one `raea media probe` of a 1.1 GB 4K interview took 112 s, and its 16-frame sheet 32 s where
ffmpeg alone takes 7 (12-01, measured). Three causes:

- The ffmpeg backend asked ffprobe for every packet's time on each open, and for MP4 and QuickTime ffprobe reads every
  packet to answer: 1 GB read per open, and a sheet opened its file once a frame. The times now come from the file's
  own sample tables (io/ffmpeg mov.rs; the same times as ffprobe's on 45 of 45 real client clips, up to one shift),
  and ffprobe is asked only for the stream's facts. Fragments, other containers and edit lists that do more than set
  a start are asked of ffprobe as before.
- `media probe` decoded the whole sound track to learn its rate, channels and length: read from the track's tables.
- A sheet's frames are read four at a time.

The Sprite's service sets its disks' read-ahead to 16 MB at each start: at the disk's own 256 KB, with each read
answered in about 26 ms, a pass over footage ran at 10 MB/s.

Co-authored-by: shinyobjectz <[email protected]>
2026-12-01 11:22:11 -08:00
..