Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: blazini36 on September 01, 2024, 07:37:16 AM

Title: Script to cut alternate sets of keyframes?
Post by: blazini36 on September 01, 2024, 07:37:16 AM
Is there any script to cut every X amount of keyframes? I have a DVD with 2 angles that alternate every 3rd keyframe in a single file. Handbrake usually picks the angles up but it's failing on this one, not to mention that requires a re-encode. If I sat here and clicked the "Go to next keyframe" button 3x, then set A marker, jumped 3 keyframes, set B marker, cut, and did that for the whole file then output it in copy mode I'd have a perfect video of 1 angle....but I certainly don't have time to do that by hand, it would be like 1000 cuts.

I don't know much about scripting myself, kinda hoping something already exists to do this.
Title: Re: Script to cut alternate sets of keyframes?
Post by: eumagga0x2a on September 01, 2024, 03:07:13 PM
Please provide a sample (about 100 MiB from the start of the first 1 GiB large VTS_0x_y.VOB file).
Title: Re: Script to cut alternate sets of keyframes?
Post by: RocketJet on September 02, 2024, 03:23:02 AM
Quote from: blazini36 on September 01, 2024, 07:37:16 AMHandbrake usually picks the angles up but it's failing on this one,

Try DVDShrink in Re-Author mode. It has the capability of selecting a specific angle,
and can produce lossless output. It's free, so you haven't lost anything if it does not work..
Title: Re: Script to cut alternate sets of keyframes?
Post by: blazini36 on September 08, 2024, 04:58:52 PM
Quote from: RocketJet on September 02, 2024, 03:23:02 AM
Quote from: blazini36 on September 01, 2024, 07:37:16 AMHandbrake usually picks the angles up but it's failing on this one,

Try DVDShrink in Re-Author mode. It has the capability of selecting a specific angle,
and can produce lossless output. It's free, so you haven't lost anything if it does not work..


I don't often use Windows so I was reluctant to bother trying this but it looks like it does work. Thanks