MAMEWorld >> The Loony Bin
View all threads Index   Flat Mode Flat  

Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4464
Loc: Melbourne, Australia
Send PM
Re: What free basic video trimmer do you recommend?
01/16/16 03:13 AM


> > > - No video quality lost.
> > > - Supports mp4 and flash videos.
> >
> > These requirements are mutually incompatible. You can't trim MP4 and flash videos
> > without re-encoding and losing quality.
>
> WRONG !!
>
> There are various tools out there that let you do just that - trim AVI, MP4, FLV, etc
> videos without ANY re-encoding or ANY loss of quality.

First of all, "trim" is an imprecise term that could be interpreted as "crop" or "cut".

There's no way you can crop any vector-quantiser codec video without re-encoding, that won't happen.

You can't do lossless cuts on arbitrary frames in a video containing bidirectionally predicted frames.

Supposed your video uses the following frame type sequence (typical of MPEG2): IPBIPBIPB...
The P frames refer to the previous I frame, and the B frames refer to the previous and next I frame.
The frames will actually be stored/transmitted in the order 12435768...

You can do a lossless cut on an I or P frame, but you can't do a lossless cut on a B frame as it's stored/transmitted after an I frame that comes later in the display sequence, and needs data from it to be decoded. Cutting on the B frame would require re-encoding.

H.264 (common in FLV and MP4 videos) often uses a more complex frame type sequence like IPPBPPIPPBPP...
In this case the first two P frames refer to the I frame before them, the second two P frames refer the the I frame after them, and the B frame refers to the I frames on either side.
Frames are stored transmitted in order 123745678...

With this frame sequence you can only do a lossless cut on frames 1, 2, 3, 7, 8, 9... Cutting on other frames requires re-encoding.

That covers cuts where you're removing the part of the video after the cut point. If you're removing the part of the video before the cut point, there are still a limited set of frames you can cut on without requiring re-encoding, although it's a different set (in the second example it's 1, 5, 6, 7, 11, 12...).

Wishful thinking doesn't change the fact that these formats require re-encoding to allow cuts on arbitrary frames, even if it's only a few frames at the end of the video that would need to be re-encoded.







Entire thread
Subject Posted by Posted on
* What free basic video trimmer do you recommend? Big Karnak 12/30/15 05:34 AM
. * Pair of scissors.....{nt} Orc  01/01/16 05:34 AM
. * Re: Pair of scissors.....{nt} gregf  01/05/16 08:47 AM
. * Re: What free basic video trimmer do you recommend? Pi  12/30/15 09:50 AM
. * Re: What free basic video trimmer do you recommend? Big Karnak  01/01/16 08:08 AM
. * Re: What free basic video trimmer do you recommend? remax  01/01/16 07:24 PM
. * Re: What free basic video trimmer do you recommend? Big Karnak  01/11/16 03:44 AM
. * Re: What free basic video trimmer do you recommend? Tomu Breidah  01/12/16 05:30 AM
. * Re: What free basic video trimmer do you recommend? Vas Crabb  12/30/15 05:47 AM
. * Re: What free basic video trimmer do you recommend? Moose  01/16/16 12:48 AM
. * Re: What free basic video trimmer do you recommend? Vas Crabb  01/16/16 03:13 AM
. * Re: What free basic video trimmer do you recommend? Big Karnak  12/30/15 06:07 AM
. * Re: What free basic video trimmer do you recommend? redk9258  12/30/15 07:17 AM

Extra information Permissions
Moderator:  GatKong 
0 registered and 258 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2064