PDA

View Full Version : Last frame is frame 0


grlucky7
11th December 2004, 03:32
I'm trying to rip a DVD to DivX avi but I found that the last frame of the avi produced is frame 0, which is the first frame of the d2v.
Here is my script

loadplugin("C:\Program Files\DGmpgdec1012\DGDecode.dll")
v=mpeg2source("G:\My DVD.d2v")
a=DirectShowSource("G:\My DVD AC3 T01 2_0ch 192Kbps DELAY 0ms.ac3")
a=ssrc(a,44100)
audiodub(v,a)
BilinearResize(640,480)Even if I try trimming the d2v file to start at frame 1, the last frame of the avi produced is also frame 0.

loadplugin("C:\Program Files\DGmpgdec1012\DGDecode.dll")
v=mpeg2source("G:\My DVD.d2v")
a=DirectShowSource("G:\My DVD AC3 T01 2_0ch 192Kbps DELAY 0ms.ac3")
a=ssrc(a,44100)
audiodub(v,a)
trim(1,0)
BilinearResize(640,480)Any suggestions?

stickboy
11th December 2004, 10:55
Do you mean that the frame sequence is supposed to be:

0 1 2 3 4 5 ... N

but you're instead getting:

1 2 3 4 5 ... N 0

?

(And also, how do you know? Are the frames in the MPEG2 file individually numbered?)
Even if I try trimming the d2v file to start at frame 1, the last frame of the avi produced is also frame 0.Why did you remove the first frame if you're trying to get remove the last frame?

Or do you mean that the AVI file ends up with only one frame? If so, did you try opening the .avs file in VirtualDub and checking the number of frames that you could access frames 1, 2, 3, etc.?

grlucky7
11th December 2004, 11:18
Thanks for your reply.
I checked the avs file in VirtualDub to get the frame number.
Let me say it again.

Assume the d2v file be 100000 frames long,
after saving the d2v to AVI, I supposed to get this frame sequence:

0 1 2 3 ... 99997 99998 99999

but i'm getting

0 1 2 3 ... 99997 99998 0

even if I remove frame 0 in order to avoid the problem, I also get this:

1 2 3 .... 99997 99998 0

Any ideas?

Sorry for my bad English

stickboy
11th December 2004, 20:20
Again, how do you know that frame 99999 turns into frame 0? How do you know this isn't a problem with the MPEG2 video itself?

And if you want to remove the last frame, why are you removing the first one?

That is, you should be doing:
Trim(0, -(FrameCount() - 1))

Wilbert
11th December 2004, 22:09
Again, how do you know that frame 99999 turns into frame 0? How do you know this isn't a problem with the MPEG2 video itself?
Because the first and the last frame is the same?

@grlucky7,

I can't really help you. Make sure you have the latest version of dgdecode/dgindex installed. If nobody helps I will move this thread to dvd2avi forum (I guess it's a decoding problem).

grlucky7
12th December 2004, 03:49
Originally posted by Wilbert
Because the first and the last frame is the same?
Make sure you have the latest version of dgdecode/dgindex installed.That's right. Because the first and the last frame is the same.
I have installed Version 1.0.12. It is the latest version.
Originally posted by stickboy
Again, how do you know that frame 99999 turns into frame 0? How do you know this isn't a problem with the MPEG2 video itself?I have tried a few DVDs and still got this problem.
I double checked the avs file in VirtualDub and confirmed that there was no problem at this stage. After saving to avi, I opened the avi file in VirtualDub and found that the problem is back.
The problem will be worser if I join 2 d2v files because the first frame will appear at the joint which is very noticeable. Also, the first frame of the second d2v file will appear at the end.
Originally posted by Wilbert
If nobody helps I will move this thread to dvd2avi forum (I guess it's a decoding problem).OK. Thanks.