错误如下:
exception type : NSInvalidArgumentException
crash reason : *** -[AVAssetWriter addInput:] In order to perform passthrough to file type public.mpeg-4, please provide a format hint in the AVAssetWriterInput initializer
屏幕快照 2019-07-18 23.01.16.png
解决方法
添加如下代码
GPUImageMovieWriter *movieWriter = ...
movieWriter.hasAudioTrack = YES;










网友评论