PDA

View Full Version : Frame-precise splitting knowing the resulting filesize


SupaCoopa
18th January 2002, 08:45
Ah, splitting the movie in two or more parts... The single matter in which DVD2SVCD doesn't satisfy me. I like my movies to be split in specific points (between sequences/scenes) rather than when CD space runs out.

So what I need is a program that will allow one to choose the exact frame to cut providing a video preview at this point (like TMPG does) but also to show you what filesize the resulting MPG will be so that one will know if it will fit to the CD. Asking for too much?
Well, since I can use TMPG to find the exact desired frame for cutting, a program that would allow just frame specific cutting and report the resulting filesize would do as well. I know bbmpeg does a good job on cutting and does report the filesize, but it's time-based more than frame-based so it's halfway where I want to go.

Any suggestions?
Cheers

guru1968
19th January 2002, 02:19
Hi,

I had the same problem and tried many, many things to get that solved...

The *only* possible solution seems to be: just do the cutting *before* the encoding!

this is quite easy with tmpeg since it has the wonderful source-range filter which shows You precise frame-numbers!

After You got the cutting-point frame-numbers simply generate two different AVISynth scripts using the Trim() operation to specify the cutting point:
first part: Trim(1,last-frame) #remark: using 0 as start-frame crashes CCE !!!
second part: Trim(last-frame+1, 0)
also a BIG advantage is: having now two seperate clips enables You to chose different bitrates so every CD is filled up to the very end :-)
[I'm using fitcd to get those values]

The audio is a bit tricky while 'hidden-bug-that-really-is-a-feature' of tmpeg:
load the altogether wav as audio source and the separate avs scripts as video-source and enter the according frame-numbers in the source-range filter.
then select audio-only and even so the source-range filter has disappeared from the options it's still active.... :-))
This WILL generate frame-accurate audio!
(or is there an easier way of cutting a WAV at any given FRAME-number???)

any more question?


success,
guru


remark:
if You specify SSRC and 2lame as external tools You'll get the same perfect MPEG2 audio-quality as with DVD2SVCD...