This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For whatever reason (I guess because my code is wrong) the "composition" returns twice the same asset (one transformed, one not), | |
// although it should display 2 different videos... If anybody has a clue :( | |
NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], AVURLAssetPreferPreciseDurationAndTimingKey, nil]; | |
AVMutableComposition *composition = [AVMutableComposition composition]; | |
CMTimeRange timeRange = CMTimeRangeMake(kCMTimeZero, CMTimeMakeWithSeconds(4, 1)); | |
AVMutableVideoComposition *videoComposition = [AVMutableVideoComposition videoComposition]; | |
// Track B |