jjzjj

iphone - 将 AVAssetWriter 与原始 NAL 单元一起使用

我在iOS文档中注意到AVAssetWriterInput你可以通过nil对于outputSettings字典来指定不应重新编码输入数据。Thesettingsusedforencodingthemediaappendedtotheoutput.Passniltospecifythatappendedsamplesshouldnotbere-encoded.我想利用此功能传入原始H.264NAL流,但我无法将原始字节流调整为CMSampleBuffer我可以传递给AVAssetWriterInput的appendSampleBuffer方法。我的NAL流仅包含SPS/PPS/IDR/P
12