The video froze, but the audio kept playing. You know the file is broken. You know the data isn’t all there. But the question is: how do you make sense of it, and how do you fix or omit the missing pieces without wrecking the rest?
Data omission in FFmpeg is about control. It’s about telling your tools exactly which frames, packets, or segments to keep, and which to drop. When you face recordings with gaps, segments with corrupted frames, or streams with glitches, you need precision. FFmpeg gives you this precision, but only if you command it without hesitation.
Use flags like -ss and -t to carve out exact segments. Use -vf select and -af atrim to omit by timecode or frame index. If you detect spurious frames — broken PTS/DTS sequences, duplicate keys — you can filter them out with select='if(gt(scene,0.4),1,0)' or more exact scene-based detection. Stream copy modes can fast-skip over missing or invalid data without re-encoding, but sometimes re-encode with strict codecs is the cleaner path.