sany
8th November 2005, 18:13
Hi
I know it's not the best introduction to open a thread with my first post but I just couldn't find a thread where I could post my question.
My problem is that my virtualdub mod can't open an avs which is working with an avi file which seems to have been coded in wmv3. At first virtualdub mod couldn't open the avi file it self alone which I wanted to work with but I looked up and dl-ed a codec form microsoft homepage here's the link:http://download.microsoft.com/download/a/0/3/a0398036-25b9-410c-b371-c59957c1b0f4/WM9Codecs.exe so now virtualdub mod can play the file but when I open the .avs file to edit the film it says:Avisynth open failure:AviSource autodetect:couldn't open file Error Code 2
I'm suspecting that Avisynth is having a problem with wmv3 coding but I'm not sure and I'm still new in the job. If anyone could give me a link to a codec that helps my Avisynth(if I'm really only having a codec trouble) I'd be really greatfull or just some advice what I should do.
Here's the script I'm using:
#I wrote video filename instead of the real file name but what comes after "videofilename" is what there is in my avi's filename I'm working with.
video1 = AVISource("D:\Bleach munka\videofilename(640x480_LameVBR_WMV9).[1950D180].avi").ChangeFPS(23.976)
fmrate1 = Framerate(video1)
#missing function in avs 2.5
function isYv12(clip) {
return !(clip.isRGB() || clip.isYuY2())
}
#AutoColorSpace Function
function convertToColorSpace(clip1,clip2) {
clip1 = (clip2.isRGB32() && !clip1.isRGB32()) ? clip1.convertToRGB32(): clip1
clip1 = (clip2.isRGB24() && !clip1.isRGB24()) ? clip1.convertToRGB24(): clip1
clip1 = (clip2.isYUY2() && !clip1.isYUY2()) ? clip1.convertToYuy2(): clip1
clip1 = (clip2.isYV12() && !clip1.isYV12()) ? clip1.convertToYv12(): clip1
return clip1
}
pic = ImageSource("D:\Bleach munka\bleach_logo08 copy.jpg",end = 100,use_DevIL = true).FlipVertical().AssumeFPS(fmrate1).convertToColorSpace(video1)
audio = BlankClip(video1)
pic = AudioDub(pic,audio).FadeOut(15)
#pic ++ video1
killaudio( pic ++ video1)
I know it's not the best introduction to open a thread with my first post but I just couldn't find a thread where I could post my question.
My problem is that my virtualdub mod can't open an avs which is working with an avi file which seems to have been coded in wmv3. At first virtualdub mod couldn't open the avi file it self alone which I wanted to work with but I looked up and dl-ed a codec form microsoft homepage here's the link:http://download.microsoft.com/download/a/0/3/a0398036-25b9-410c-b371-c59957c1b0f4/WM9Codecs.exe so now virtualdub mod can play the file but when I open the .avs file to edit the film it says:Avisynth open failure:AviSource autodetect:couldn't open file Error Code 2
I'm suspecting that Avisynth is having a problem with wmv3 coding but I'm not sure and I'm still new in the job. If anyone could give me a link to a codec that helps my Avisynth(if I'm really only having a codec trouble) I'd be really greatfull or just some advice what I should do.
Here's the script I'm using:
#I wrote video filename instead of the real file name but what comes after "videofilename" is what there is in my avi's filename I'm working with.
video1 = AVISource("D:\Bleach munka\videofilename(640x480_LameVBR_WMV9).[1950D180].avi").ChangeFPS(23.976)
fmrate1 = Framerate(video1)
#missing function in avs 2.5
function isYv12(clip) {
return !(clip.isRGB() || clip.isYuY2())
}
#AutoColorSpace Function
function convertToColorSpace(clip1,clip2) {
clip1 = (clip2.isRGB32() && !clip1.isRGB32()) ? clip1.convertToRGB32(): clip1
clip1 = (clip2.isRGB24() && !clip1.isRGB24()) ? clip1.convertToRGB24(): clip1
clip1 = (clip2.isYUY2() && !clip1.isYUY2()) ? clip1.convertToYuy2(): clip1
clip1 = (clip2.isYV12() && !clip1.isYV12()) ? clip1.convertToYv12(): clip1
return clip1
}
pic = ImageSource("D:\Bleach munka\bleach_logo08 copy.jpg",end = 100,use_DevIL = true).FlipVertical().AssumeFPS(fmrate1).convertToColorSpace(video1)
audio = BlankClip(video1)
pic = AudioDub(pic,audio).FadeOut(15)
#pic ++ video1
killaudio( pic ++ video1)