Log in

View Full Version : make the life of Lee easyer


movmasty
12th April 2002, 01:55
VirtualDub 2.0
MPEG-1 support is basically working, decoding IBP frames at near V1.4 speed and with much more portable and modular code. (MPEG-1 decoders are much easier the second time around when you actually know what you're doing.) Bigger news is that the new MPEG-1 systems parser does not need to parse the entire file to read it. Unfortunately, I don't yet know how to solve the sticky problem of people doing idiotic binary joins of streams together; this causes the timestamps to restart from zero at the join point, which is problematic because there is no central index to tell where the join point(s) may be. Seeking by byte position alone doesn't work because VBR files don't have a fixed ratio, and unfortunately, VBR video files don't have the indices that are usually written with VBR audio files

When you do a binary joins of mpg(using the dos command, copy/b, you know)
you should cut the "end of file mark" that is where the file says it ends.

It is located in the four(4)last characters of the file,
and usually looks like or
so open the video in a PLAIN TEXT editor(no formatting! wordpad of win95 is good,but of win98 isnt)
delete last 4 characters and save, then join the mpgs.
if you delete all the last line, will be ok, are just few bytes.

and this is ONE of the advantages of mpg over avi! :cool:

@Avery Lee
The fact is that some "idiotic" joiner doesnt cut the end mark,
camel doesnt, ifilm does.
some player/editor stops when find that mark, some other doesnt
progs that i remember dont stops are:
xing mpg player
MGI video wave

gabest
13th April 2002, 03:38
Your idea won't solve this:

"causes the timestamps to restart from zero at the join point, which is problematic because there is no central index to tell where the join point(s) may be"

I guess seeking without the index is done by searching the right position based on the timestamps. And with reseting timestamps it won't work.

movmasty
14th April 2002, 03:48
:confused:

>idiotic binary joins of streams together; this causes the timestamps to restart from zero at the join point...

where "join point" means where the progs reads the "end mark" of the 1st file
but if you cut it.....
...timestamp wont be resetted....

gabest
14th April 2002, 03:52
Yeah, right. Unless the clips were not splitted as they are being joined.

movmasty
15th April 2002, 04:30
clips were splitted as they are being joined...
dont have any ts reset

millekink
25th April 2002, 10:18
There's a tool that can reindex a movie

I believe it's on the download page.

I used it to play a movie were the indexes where broken and it worked

I hope it could solve your problem

movmasty
25th April 2002, 19:45
yes,thanks,
unfortunately mpgs dont have any index.

millekink
25th April 2002, 20:22
oops sorry, forgot :)