AVMutableVideoComposition with AVMutableVideoCompositionLayerInstruction shows black video when played with AVPlayer in certain cases [Simulator ONLY]

Originator:LvChaoShuai
Number:rdar://FB9983556 Date Originated:04-14-2022
Status:Open Resolved:
Product:iOS Product Version:15.3
Classification:AVFoundation Reproducible:YES
 
A very simple video stitching implementation done via `AVMutableComposition`, `AVMutableVideoCompositionInstruction` and `AVMutableVideoCompositionLayerInstruction` shows black video when played with AVPlayer in certain cases.

One can feed a tiny translation matrix (like offset 1e-9) to `layerInstruction`, then rebuild and rerun again, the video can be played properly on simulator without any issues.

The issue does NOT reproduce on real devices, so it could be a simulator ONLY issue.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!