0

Can i reuse an existing GPUImageMovieWriter (after calling finishRecording) or is there a method to pause and resume the recording?

I get error if i call startRecoding after a finishRecording.

Terminating app due to uncaught exception 'NSInternalInconsistencyException', 
reason: '*** -[AVAssetWriter addInput:] Cannot call method when status is 2'
4

1 回答 1

0

调用后不能调用startRecording()同一个 movieWriter 实例finishRecording()

finishRecording()将视频的完成块写入文件,因此添加到视频文件的所有后续帧无论如何都是无用的。如果您想要实现的是暂停录制一段时间并在暂停后再次在末尾附加视频,您可能应该创建一个不录制的“暂停”状态,而只需测量暂停的时间量,然后再次恢复录制时使用调整后的帧时间。

干杯! 维杰

于 2013-06-18T21:03:27.293 回答