Recording gapless audio with AVAssetWriter
问题 I'm trying to record segments of audio and recombine them without producing a gap in audio. The eventual goal is to also have video, but I've found that audio itself creates gaps when combined with ffmpeg -f concat -i list.txt -c copy out.mp4 If I put the audio in an HLS playlist, there are also gaps, so I don't think this is unique to ffmpeg. The idea is that samples come in continuously, and my controller routes samples to the proper AVAssetWriter . How do I eliminate gaps in audio? import