Log in

View Full Version : Can XVID Encode *Portions* of a stats file?


LB
20th February 2003, 08:14
So here is the question:

TV Show, split into 4 parts.
1. Intro
2. Episode itself
3. Ending
4. Preview for next episode

To save a long explanation, I won't give a detailed explanation of why I'd like to do what I'm about to explain, but I just need to know if it can be done ;p

So, I append all 4 segments together with vdub and encode my first pass stats file. And, here is where the Q comes in, I want to tell vdub which portions to render of the states file from the appended video file. So say the total video segment is 1000 frames and that is also what the stats file is in reference to. Can I set the range in vdub to start at frame 200 and end at frame 800 say and will it utilize the stats file correctly? I remember from my old SBC days it wouldn't do this and I was forced to encode the entire thing to use the bits correctly.

So, what do you think? Will XVID recognize the correct range and correctly apply the right portion of the stats file? Or will it fux up?

LB

TelemachusMH
20th February 2003, 21:05
I don't know how to make Xvid only use parts of its stats file, but I can tell you that you can just cut out the potions that you don't want in AviSynth (with the trim command) or in VirtuaDub (and then save a vcf so that you can reload the same cuts later). This way Xvid will only encode the portions you want and will be faster because it won't spend time on parts you don't want.

TelemachusMPH

manono
20th February 2003, 21:54
Hi-

You can split the stats file into pieces in GKnot, and then run the second passes using the various smaller stats files you've created, combined with the Trim command in the .avs. However, I'm not sure if/how B-Frames affects things. It was a while ago that I did it to split some anime episodes in order to run the second passes separately.

JediNight
5th May 2003, 03:44
I assume he wants to split it because he's working from a 120fps raw video due to the show being a hybrid 24/30fps so you need to encode the parts seperately. Your best bet is probably just creating a seperate stats file for each part since they will end up a different FPS.

mf
5th May 2003, 10:39
Originally posted by JediNight
I assume he wants to split it because he's working from a 120fps raw video due to the show being a hybrid 24/30fps so you need to encode the parts seperately. Your best bet is probably just creating a seperate stats file for each part since they will end up a different FPS.
If that's the case, I'd say run the whole thing at once and cut it up later. If necessary you can force keyframes on each segment start. That way you'll utilize bitrate best.