Hi everyone.
I would like to remove ads from within a show I have recorded with VLC. But as my PC is old and slow (1 min of video requires about 5 min to be reencode in h264 at same resolution) I would like not to reencode the whole file.
But the copy mode is available only when cuts are made on key frames.
As you guess, ads never gently start and stop at key frames, so I have to reencode the whole file.
So I tried to cut and reencode a small part around the start and stop of ads in order to get a clip starting with a key frame.
But I get an error message saying the clips don't have the same codec setup, so video reader should fail to read it. Precisely:
QuoteCodec or codec settings across a cut point do not match. Playback of the video saved in copy mode may stop at this point.
Do you want to continue anyway?
This is true, the tiny set of codec parameters I can get shows the fps has change from 50 to 25 (why!?) as well as the pixel ratio. I managed to fix the latter. The former is still changed to 25 even if I use the Change the I/S rate filter to set to 50 or 49.998 but change with the Resample I/S rate filter. However, I get the same final error even if I set the rate to 50 or 49.99 (impossible to set the third digit).
So, how can I get all the parameters from the original video and copy a clip between any frames with the exact same settings as the original codec, or how can I remove a part between no keyframe frames without reencoding the whole video?
Thanks.
Here are the original settings I can get
Quote=====================================================
Video
=====================================================
Codec 4CC: H264
Image Size: 720 x 576
Aspect Ratio: Unknown (16:11)
Frame Rate: 49,997 fps
Total Duration: 00:31:10.842
=====================================================
Extra Video Properties
=====================================================
ExtraDataSize: 07
Extra data: 01 4D 40 1E FF E0 00 frame
=====================================================
Audio (1 piste activée)
=====================================================
Codec: AAC
Channels: Stéréo
Bitrate: 7838 Bps / 62 kbps
Frequency: 48000 Hz
Total Duration: 00:31:17.212
and the final I get with the MPEG AVC (x264) codec and the resample I/S filter on Avidemux 2.7.8 on Linux Mint
Quote=====================================================
Video
=====================================================
Codec 4CC: H264
Image Size: 720 x 576
Aspect Ratio: Unknown (16:11)
Frame Rate: 49.990 fps
Total Duration: 00:00:04.641
=====================================================
Extra Video Properties
=====================================================
ExtraDataSize: 41
Extra data: 01 64 00 1F FF E1 00 18 67 64
=====================================================
Audio (1 piste activée)
=====================================================
Codec: AAC
Channels: Stéréo
Bitrate: 7871 Bps / 62 kbps
Frequency: 48000 Hz
Total Duration: 00:00:04.610
In addition, Avidemux cannot find any keyframe in the exported clip while it finds several at the same position of the original file