2 ms·
Without getting into the details of video compression, you can't remove arbitrary parts of a video file without causing problems when the file is played. Even
by TheOtherHobbes 6y ago
Without getting into the details of video compression, you can't remove arbitrary parts of a video file without causing problems when the file is played.
Even if the video is uncompressed you will still need to remove entire frames and then - for most formats - reconstruct a file header at the start of the file.
This is a much harder problem than throwing away x% of a file without worrying about the structure of the content.
It's fairly easy to solve that problem at the disk block level. But if you're trying to keep the data structures error-free, you're going to have to do a lot more work.