Reading samples via AVAssetReader

后端 未结 2 1566
余生分开走
余生分开走 2020-12-01 02:12

How do you read samples via AVAssetReader? I\'ve found examples of duplicating or mixing using AVAssetReader, but those loops are always controlled by the AVAssetWriter loop

2条回答
  •  遥遥无期
    2020-12-01 02:56

    damian's answer worked for me with video, and one minor modification: In step 3, I think the dictionary needs to be mutable:

    NSMutableDictionary* dictionary = [[NSMutableDictionary alloc] init];
    

提交回复
热议问题