ios - AVMutableComposition play blank with AVPlayer but export fine with AVAssetExportSession -
I create a AVMutableComposition video imported from the library I am a AVMutableVideoComposition Pass an array of AVMutableVideoCompositionInstruction so that the video transforms (scale, rotate) and fade (ambiguation) between the tracks.
Most videos do not have any problems with. I can run the structure using AVPlayer or export it without any issue using AVAssetExportSession but for some videos when composing AVPlayer < / Code>, then I get a black screen like the time of differents AVMutableVideoCompositionInstruction is not set correctly, however when I export the exact same structure in which one Instructions and time (in fact only one No), then a AVAssetExportSession movie I fully exported if I play alone imported video as a simple AVAsset using AVPlayer, the video game is fine.
I tried to increase the time-level of my film instead of 60000 instead of 60000, it was the period of imported video. This was an issue (floating point is missing), but this is not the case.
It is under iOS 8, but I can not even know under iOS 7.
PS: T Post code because there are too many rows.
Comments
Post a Comment