Log in

View Full Version : Is my script causing this problem?


videocheez
27th June 2003, 05:31
I have so far had success encoding avi to dvd but my latest file is giving me some trouble.
When I load the following FitCd generated Avisynth script into media player or virtual dub for pretesting, I get a strange result.

AviSource("C:\1movie encoding\cce\yashana.avi")
ConvertToYUY2()
BicubicResize(656,448,0,0.6,0,0,640,480)
AddBorders(32,16,32,16)
Trim(0,36360).FadeOut(150)

The problem is that I see perhaps one frame of video and for the rest of the second I get a big green square. So basically for 1/24 of a second i get the movie and for 23/24 seconds of the movie I get a big green full screen square. This is my first time trying to encode a divx 5.0. The avi file plays fine by itself. It only gets screwy when its avisynth sister is played.
I read something about Divx 3 and divx 5 conflicting. Could this be the source of my problems? I only have a few codec installed. I have divx 3, divx 5, and an Xvid codec. Can any plugins or script lines be added to corest the above mentioned problem.
Also I should mention that the flic that i'm trying to encode is a cartoon?
Any help or insight will be appreciated,

Thanks,

vc

Wilbert
27th June 2003, 10:21
Can't see your png. Try:

AviSource("C:\1movie encoding\cce\yashana.avi",pixel_type="yuy2")
BicubicResize(656,448,0,0.6,0,0,640,480)
AddBorders(32,16,32,16)
Trim(0,36360).FadeOut(150)

If that doesn't work, does the following show up correctly:
AviSource("C:\1movie encoding\cce\yashana.avi")

videocheez
28th June 2003, 03:11
I tried your suggestion but unfortunately I still have the same problems. I'll try to add a little bit more background info.

It seems like avisynth is actually creating a loop of the first frame when I try to test view the avisynth script using vdub and media player. I looked very carefully at the frame that would flash onto my screen for a fraction of a second followed by green and I noticed that it was the first frame over and over again. It seems like avisynth will only let me see the first frame only. Would you mind showing me a script that will allow me to frameserve the video to CCE while skipping frame #1. Maybe some funny programming glitch is locking me onto the first frame. I already scanned for errors using vdubmp3 and the file came up clean.
I even tried frameserving the avi with virtual dub to TMPGE and my 10hour encode yielded a twenty five minute high quality still of the first frame. What a waste of time, but it confirms that even by using more than one method, I could still only see frame#1.

If you click on the url that I tried to insert as an image, it should connect you to my yahoo briefcase where I have uploaded the screenshot. I could'nt figure out how to upload an image from my comp. If you have any advice about this I would be very happy too.

Thanks for the time,

VC

Wilbert
28th June 2003, 13:04
If you click on the url that I tried to insert as an image, it should connect you to my yahoo briefcase where I have uploaded the screenshot. I could'nt figure out how to upload an image from my comp. If you have any advice about this I would be very happy too.
Sorry, doesn't work. What is the codec of the avi (just open in vdub -> file info)?

To delete the first frame:
AviSource("C:\1movie encoding\cce\yashana.avi")
Trim(1,0)

videocheez
28th June 2003, 15:21
The Codec is DivX Pro 5.02