AVAssetExportSession using AVAssetExportPresetPassthrough breaking output

前端 未结 3 863
攒了一身酷
攒了一身酷 2021-01-28 03:16

I\'m using AVAssetExportSession in combination with AVAssetExportPresetPassthrough to stitch multiple videos together. Everything works quite fine, except after my first sub-cli

3条回答
  •  萌比男神i
    2021-01-28 03:40

    While you can use AVAssetExportPresetPassthrough to concatenate videos, the resulting video is not the most compatible as each segment ends up in its own track. It should play back in on iOS/OSX but it's unlikely to play nicely with YouTube or Facebook.

    So there's something wrong with your implementation, but you should probably consider using a different preset (that will flatten your videos into one track) or use an AVAssetWriter.

提交回复
热议问题