XiaoHongbo-Hope opened a new pull request, #11108:
URL: https://github.com/apache/paimon/pull/11108

   PyAV can probe immediately beyond the first 64 KiB of a front-loaded MP4 
after reading its `moov` box. The current bootstrap then makes an adjacent 
second Range request before it can fetch the target GOP. For a video whose 
`moov` ends within the first 64 KiB, this change prefetches up to 128 KiB past 
`moov` (capped at 256 KiB) in the initial request. Videos with a later `moov` 
keep the existing 64 KiB header read.
   
   In an interleaved single-frame test on three GOP3 MP4s, Range calls fell 
from 3 to 2 and median media-read-plus-RGB-decode latency changed from 60.76 to 
48.41 ms, 70.53 to 57.41 ms, and 73.76 to 59.20 ms. The extra bytes fetched 
were 1–29 KiB per frame; decoded RGB hashes matched. This measures single-frame 
reads, not DataLoader throughput.
   
   Validation: the new front-/late-`moov` boundary cases passed on the 
benchmark machine, the patched reader decoded the target frame with the same 
RGB hash, and Python compilation and `git diff --check` passed. The full test 
suite has not been run locally.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to