Log in

View Full Version : Splitting a xvid avi


xcy73
6th September 2006, 11:30
Is there a freeware program that can split a xvid avi into two files of exactly the same size? All programs I tested when spliting a 1400mb avi file produce two files that have a 3-4 mb difference in size and the larger one usually can not be filled in a 700mb CD-R.

Plamen234
6th September 2006, 11:38
You can post what you've tried.
May be your initial file is too big.
I use vdub(mod).

CWR03
6th September 2006, 11:38
Is there a freeware program that can split a xvid avi into two files of exactly the same size?
Not without some re-encoding. Since XviD uses I-frames that are about 200 frames apart, and since you can't cut on anything but an I-frame, you can't split at an exact spot. You can re-encode a portion of the file that would fall between the split you need using more I-frames, split it where you need to make two even files, then rejoin the sections to their appropriate files, or do the initial encode in halves split where you want it (I used to find a scene change that would lessen the interruption of a movie when playing).

xcy73
6th September 2006, 11:56
Could I split a divx avi into two exact size files instead?

Gehenna
6th September 2006, 12:00
No, Same Issue with I frames as CWR03 pointed out.

Maybe you could just overburn a touch,should be okay for a few mb`s

xcy73
6th September 2006, 12:09
Any more suggestions on freeware programs for splitting?

raeltheimperialaerosolkid
6th September 2006, 12:53
It's not a problem of 'what freeware program for splitting'. As they told you, you simply can't get the EXACT half of a video (without reencoding and taking a lot of time) because the codecs like XviD or DivX work that way.

Didée
6th September 2006, 13:14
Splitting is not a problem. Just use a binary splitter (e.g. HJ-Split (http://www.freebyte.com/hjsplit/)), and you can split any file into several parts with exactly the same size, down to the byte.

Downside is that these splitted files are completely unusable, until they have been re-joined again ... :D

xcy73
6th September 2006, 14:13
I am looking for a program that will split one avi file into two parts and each part will be playable. I am not looking for a binary splitter. I have not found a freeware program that can do this and is also combatible with the AVI-OpenDML format.

Sharktooth
6th September 2006, 15:11
Avimuxgui can do it.

xcy73
6th September 2006, 20:18
I can't figure out how you can split an avi using AVI-Mux_GUI. Could anyone advice how? Also, is there an easy way to find the exact frame to split using VirtualDub-MPEG2?

foxyshadis
7th September 2006, 00:38
Use virtualdubmod for that, it shows the size offset with each frame. Find the keyframes that bookend the exact postion you want to split at, and cut at the one that minimizes the difference. By cut I mean select from frame 0 to the frame before the keyframe, save via direct stream copy, and then again from the keyframe to the end.

You can probably do it easier with avidemux, but I wouldn't know how.

Sharktooth
7th September 2006, 02:50
Avimuxgui supports Open DML, can remux to a new AVI and split it (only) by filesize

Your_Idol
8th September 2006, 15:51
There is no easy way around it, there is not a program, free or otherwise, that can do it without re-encoding.

Here is how to chop half way and re-encode using virtualdubmod:

We will cut the film just before the middle and just after the middle so that we have 3 avi files, the first half (about 699mb and) the middle (about 2mb) and the last half (about 699mb). This is so that we do not have to re encode the two big bits but only the little bit in the middle to save time. After cutting the middle bit in two, not at a key frame, and re encoding, we will join up the 4 bits into only 2 bits that will each fit onto a cd.

Once you have open your file in veedub you will see that next to all the buttons at the bottom, it will have the number of frames, the time stamp and the file size thus far (Frame 0 (0:00:00.000) [K] [15.00kB]). Move the slider to just over half way. You will see that at the bottom it will say something like 702.23Mb (about half of 1400mb). Now use the key previous button to find a key frame just under 700mb.

I have changed my mind, this is going to be too complicated and take too long to write. Just use a dvd instead.

xcy73
12th September 2006, 12:26
AVI-Mux_GUI seems to work fine when splitting by size.