News:

--

Main Menu

Feature request - Partial lossless cutting

Started by mitigating, March 15, 2021, 05:51:07 PM

Previous topic - Next topic

mitigating

Hi,

Avidemux is one of the few editors that supports lossless cutting on keyframes, most of the time this is acceptable especially as the gop for stuff seems to be getting smaller and smaller (mostly streaming).

What if you allowed any frame range to be selectable then cut on the nearest  keyframes within that selection. Next cut two sections from the start/end selection and the keyframe start/end. Then encoded those two sections using the same format as the original video, then appended them at the start and end of the lossless video output.

You would have to detect the source format settings to match them when you encode again. Audio shouldn't be an issue either. It might have problems with some containers. I'm thinking maybe start with just h264/5 support since it's the most popular.

Imagine how much you would help people, 99% of people who edit videos don't realize that each time you encode your h264 to h264 you reduce the quality. I'm worried in 100 years everything will just be blurry pixels as people keep cutting, editing, and changing lossy formats.


eumagga0x2a

Quote from: mitigating on March 15, 2021, 05:51:07 PMThen encoded those two sections using the same format as the original video

Not really feasible, starting with the fact that this would require the cut points to be at IDR frames, which are extremely rare e.g. in modern digital TV broadcasts.

An IDR frame = a clean cut with the past, all counters reset. Keyframes in digital TV broadcasts are almost 100% recovery frames = regular frames with added capability to seek directly to them, all counters and interdependencies in the stream continue across such frames.

mitigating

ok, thought it would be a nice feature to save people who don't really understand generational loss.

Also thanks for the UT video support in the latest version