View Full Version : Avisyth script CCE and DV NewB question
ou8thisSN
26th May 2005, 03:27
Hi, I made a thread in the DV section about this but I figured I'd post here hoping for a quick response becauese I have to get this done as soon as possible.
All I'm trying to do is convert some home movies in Digital8 (miniDV) format into DVD. I have all the video edited, extracted and ready but the avisynth script posted in the DV to DVD guide doesnt work.
Here's what was orignally posted on there:
AviSource("E:\SWD_tape1\CCE Product\ActualTest.avi")
ReInterpolate411() <---this function was recommended to be added in the guide
SeparateFields()
odd=SelectOdd.Convolution3D(1, 6, 10, 6, 8, 2.8, 0)
evn=SelectEven.Convolution3D(1, 6, 10, 6, 8, 2.8, 0)
Interleave(evn,odd)
Weave()
DoubleWeave.SelectOdd()
I was told that the plugins for Reinterpolate and Convolution needed to be downloaded. I did and installed them. Now the new error I'm getting in Vdub is: Convolution3d only supports YUY2 color.
now it was suggested that i just remove the lines involving convolution3d. If i do that, how does it matter?
I am ssuming those are important lines of code relating to the quality. I want this conversion to be as good as possible.
If you guys can help or suggest any alternatives, I would be very happy.
Also, I am wondering how do you tell if a file is Type-1 or Type-2 avi? when i tried to save in Adobe Primiere, it said it saved as an avi file in Microsoft DV AVI format. But i cannot figure out what type of file it is by looking at file information, it is not listed.
Is it type-1 since it only contains a video stream and not audio?
thanks for all the help.
Pookie
26th May 2005, 07:49
After the Avisource line, add
ConverttoYUY2()
That should get the thing to run.
Piper
26th May 2005, 17:02
Are you using the Panasonic DV codec? Other DV codecs will support YUY2 natively and won't require a conversion (to YUY2 anyway).
SeparateFields()
odd=SelectOdd.Convolution3D(1, 6, 10, 6, 8, 2.8, 0)
evn=SelectEven.Convolution3D(1, 6, 10, 6, 8, 2.8, 0)
Interleave(evn,odd)
Weave()
DoubleWeave.SelectOdd()
Convolution3D is a denoiser, and when used on an interlaced source should be used between SeparateFields & Weave. If you want more detail than that, there are explanations around which address this further. DV video is also bottom field first and DoubeWeave.SelectOdd() reverses this to top field first. I would only do this if for some reason your dvd player required it. Its been my experience that this normally isn't necessary - on my setup anyway.
Back to denoising for a bit, I'm surprised there aren't more comparisons around regarding denoising DV sources in particular. There are lots of newer denoisers since Convolution3D. Perhaps Convolution3D handles shaky, grainy video best. ;)
ou8thisSN
26th May 2005, 17:36
Ok, I uninstalled, then reinstalled Avisynth. and added all the new plugins, including convolution3d and ReInterpolate411 and now Vdub says the same error, except now it says: ReInterpolate411 supports YUY2 color format only.
if i take out that function, then vdub says:
Convolution3d supports YUY2 color format only.
then i did what Pookie suggested and added the Converttoyuy2()
and now it works... at leats in Vdub.
and yes apprently I am using the Panasonic DV codec according to adobe primiere.
Can I also ask, I discovered that CCE has a plug-in for Adobe Primiere, and if i go to File/Export Movie, I have the same option there of encoding in CCE.
So then if thats true, what is the point of all this avisynth scripts and such if CCE can work directly in Adobe Primiere? Are there any quality differences?
Anyway, the final script reads:
AviSource("E:\SWD_tape1\CCE Product\ActualTest.avi")
ConverttoYUY2()
ReInterpolate411()
SeparateFields()
odd=SelectOdd.Convolution3D(1, 6, 10, 6, 8, 2.8, 0)
evn=SelectEven.Convolution3D(1, 6, 10, 6, 8, 2.8, 0)
Interleave(evn,odd)
Weave()
DoubleWeave.SelectOdd()
ou8thisSN
26th May 2005, 17:57
my original video was shot in 4:3. I wanted to just do a straight crop on it and make it 16:9. so i added the following line(s):
AviSource("E:\SWD_tape1\CCE Product\ActualTest.avi")
Crop(0,60,0,-60)
SeparateFields()
bicubicresize(720,240)
ConverttoYUY2()
ReInterpolate411()
SeparateFields()
odd=SelectOdd.Convolution3D(1, 6, 10, 6, 8, 2.8, 0)
evn=SelectEven.Convolution3D(1, 6, 10, 6, 8, 2.8, 0)
Interleave(evn,odd)
Weave()
DoubleWeave.SelectOdd()
this is what someone told me on the #doom9 irc chan to add. Does that seem right? and what is that 720, 240 bicubicresize all about? shouldnt it be 720 x 480? thats the standard dvd resolution right?
again i have no clue, just following someone else's lead.
finally, there is a question about whether this is a type-1 avi or type-2. I cant find this information by going to properties in both adobe primiere and Vdub, so someone suggested opening the files in vdub using either avisource or directshowsource, but both of these commands opens the files... so how do i know which it is?
thor300
26th May 2005, 18:37
Last thing first,
Your file is DV type 2. I think what they ment in the chatroom is that if it opens only with DirectShowSource its a Type 1, Type 2 will open with both.
For the resize, when you use separatefields() you could say you get each field as a frame, each of these new frames is half the height of the original, thats why you need to use half the vertical resolution. When the fields are merged back together to a full frame with Weave() they will be 720x480.
I think your script has one Separatefields() too much, try to remove that one after ReInterpolate411(). I assume it didnt work the way it was, thats why you posted it (i hope) =)
ou8thisSN
26th May 2005, 19:09
it didnt work, and leaving it at 720, 240 gave me a CCE error, that it couldnt support a framerate like that or something. So i deleted that whole line and went without any resizing.
I am trying to resize the file directly in Adobe Primiere under the export movie option. There i selected it to remove 60 pixels from the top and bottom. Then in CCE i selected the aspect ratio as 16:9. Alas, I formattted this as AviSource, what would happen if i just left it as AviSource instead of DirectShowSource?
thor300
26th May 2005, 20:42
If CCE wouldnt accept the framerate i think you didnt remove the line i suggested. After ReInterpolate() there should NOT be a Separatefields().
And, you can and should use AviSource, no need for DirectshowSource in your case.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.