Record video using AVAsset Writer?

I am trying to record a video using two AVAssetWriters. I want to alternate them, and the resulting video (when combined) will work without problems. However, when I stop one and start another, the combined record seems to have a gap between them, and the combined file is thus not smooth.

What should I do to get around this? There is a lot of code, so let me know what would be helpful (if any).

+8
xcode swift avassetwriter
source share

No one has answered this question yet.

See related questions:

870
Fast beta: sorting arrays
363
Xcode Project vs. Xcode Workspace - Differences
2
ios: How to resume a recording session based on AVAsset video
2
AVAssetWriterInput does not generate the whole video when adding CMSampleBuffer
2
AVAsset writer crashes when app goes to background
one
AVAssetWriter - capture video, but without sound
0
Pause video using AVFoundation
0
lib ++ abi.dylib: termination with an uncaught exception of type NSException (combining AVAsset video and audio into one video)
0
iOS swift - Recording multiple video segments freezes when playing in AVQueuePlayer
0
Multiple conversions in integrated iOS video

All Articles