News:

--

Main Menu

Cut advertisements at non-keyframes

Started by dtmr, May 18, 2024, 09:50:38 AM

Previous topic - Next topic

dtmr

I'd like to cut commercials out of recordings (mkv with H264 MPEG-4 AVC + MPEG AAC Audio mp4a) as quickly as possible. avidemux can only cut at key frames in copy mode. I could split the recording into part A, B (with commercial) and C at the nearest keyframes, then cut the commercial out of B, re-encode B and merge parts A, B and C. Is there a script or plug-in for avidemux that can do this? If not, is there an alternative to avidemux that can do these steps automatically?

sark

#1
The issue with this method (with any software) is the fact that the three clips you join (concatenate) must have the same encoding parameters. There are many parameters other than basic resolution, framerate etc that will differ between the encoded clip and the non encoded clips. This will cause issues when concatenating. Even if the clips do concatenate, you will likely discover playback issues on some devices/players.