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

   ## What changed
   
   - Expose `VideoMetadataCache` so collators in the same process can share 
parsed MP4 metadata while retaining the existing per-collator default.
   - Coalesce concurrent first loads of the same video metadata key and reuse 
the cache in the built-in indexed PyAV and TorchCodec paths.
   - Keep shared cache ownership with the caller; a collator close or 
DataLoader process boundary does not clear another collator's metadata.
   - Document the process-local scope and add concurrent reader and cache 
lifecycle tests.
   
   ## Why
   
   Multiple `VideoFrameCollator` instances serving requests for the same 
physical video can each parse its MP4 sample table. Sharing a bounded cache 
avoids that repeated metadata work. The cache remains process-local; 
applications with separate DataLoader processes need a shared media service if 
they want reuse across those processes.
   
   ## Tests
   
   - `python -m pytest -q paimon-python/pypaimon/tests/multimodal_video_test.py 
paimon-python/pypaimon/tests/mp4_test.py 
paimon-python/pypaimon/tests/indexed_torchcodec_test.py` (74 passed, 37 
skipped; optional TorchCodec/PyTorch cases unavailable in this environment)
   - `git diff --check`
   


-- 
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