Log in

View Full Version : Offset for DirectShowSource ?


bobby8798
17th January 2003, 11:31
I found a wmv video file on the internet, and I am trying to convert it to avi.

I am using avisynth DirectShowSource to serve it to virtualdub

The wmv file has a corruption in the middle of the clip

eg.
the clip is 10 mins long, and at 5:00, there is a small corruption.

If I let the movie play to 5:00, it will stop and start at the beginning. However, if I move the slider to 5:02, it will play to the end.

What is the Command to make avisynth do the jump, and make it read from 5:02 instead of from the beginning ?

My encode to avi stops at 5:00

I tried using programs asfcut and asftools to repair/cut the 2nd half, but nothing works.

bb
17th January 2003, 12:03
Using the DirectShowSource command you should be able to open the file in VirtualDub. Find the exact frame numbers where you want to cut, and use AviSynth's Trim command twice, like Trim(0, lastGoodFrame) + Trim(firstFrameSecondPart, 0).

bb

bobby8798
17th January 2003, 13:48
thanks bb

The Trim command doesn't work
eg.
Trim(1000,0)
The output will show frame no.1 Frozen for the entire duration

the result is the same as using the Offset feature in Virtualdub

bb
17th January 2003, 14:39
If you use an older version of AviSynth, then try Trim(0, lastGoodFrame) + Trim(firstFrameSecondPart, lastFrame) instead. If that doesn't work out, then I have no clue...

bb

bobby8798
17th January 2003, 15:09
bb

I'm using
Trim(0,120) + Trim(400,520) + Trim(24000,25242)

avisynth 2.07 all frames = frame 1, and are frozen

avisynth 1.06 first 120 frames are good, then get nothing after that. the output file size increases to over 16M...

Playing back the output file, the first few seconds are good, then it loops back to the beginning eventhough the file says the length is 1 min.

thanks anyway