Log in

View Full Version : Trim() Seems to Add frames


kilg0r3
21st March 2003, 17:20
Hi, I am using the following script (ignore the letters in) and the resulting stream alway seems to have three frames more than the original. I would really like to know why, which frames, and where they are added.

Source = Mpeg2Source("Z:\Rip\Rip2\Source.d2v", cpu2="xxxxox", moderate_h=30, moderate_v=55)

Cred1 = Trim(Source,0,1350). greyscale()
Cred1 = Crop(Cred1,8,80,704,424)
Cred1 = BicubicResize(Cred1,c,b,0,0.5)
Cred1 = AddBorders(Cred1,f,0,e,0)

Movie = Trim (Source,1351,138619)
Movie = Crop(Movie,8,80,704,424)
Movie = BicubicResize(Movie,a,b,0,0.5)
Movie = Convolution3d(Movie,0,3,8,5,8,2.8,0)
Movie = Unfilter(Movie,3,3)

Cred2 = Trim(Source,138620,0). greyscale()
Cred2 = Crop(Cred2,8,80,704,424)
Cred2 = BicubicResize(Cred2,c,b,0,0.5)
Cred2 = AddBorders(Cred2,f,0,e,0)

Return Cred1 + Movie + Cred2

AS
22nd March 2003, 00:10
http://forum.doom9.org/showthread.php?threadid=48567

known bug :)

The number of extra frames you get is the number of segments you have :)

kilg0r3
22nd March 2003, 10:00
Hm.. seems slightly 'related'. (Perhaps a Mod could merge the threads?) The strange thing is that the movie seems to be perfectly in synch with visually with the source vob and acustically, i.e with the soundtrack. So, where are this frames inserted?

I thought in the second segment there should be a delay of at least one frame. So, I compared frames with identical numbers in scripts with and without trim. They are the same.

WarpEnterprises
24th March 2003, 08:24
insert a showFramenumber after the Source=.. line
and you can definitly tell where your frames are.
But it is no general avisynth bug, as this would be very seriously.

I would guess that it comes from your version of mpeg2source (try a different one testwise).