Old1
18th June 2004, 00:27
Hi All
Does Anyone have any suggestions for scripts which allow processing of scenes separately?. I am converting some old home video to DVD using CCE (VHS captured to DV) and there are many instances of scenes which require noise or levels adjustment, particularly in low light, as well as some scenes which dont really need any processing.
The attached script shows how I am doing this right now. I start by defining a clip for the whole capture file, and then define a series of separate clips using Trim with there own Levels and Tweak settings. Each clip can be modified with a noise filter as appropriate. I mostly use Convolution3D after separating the fields. I have not found it necessary to treat the odd and even fields separately as I have seen in some sample scripts, can anyone explain why this is done?. I then splice all the clips together, crop as required and add borders for overscan etc, then re-interlace using Weave. The script includes a formula for automatic crop adjustments based on required crop and border values. This works fine for me but I am sure someone has a neater way of doing this and would appreciate your views.
ClipA=ConvertToYV12(AVISource("D:\DV Capture\Captured Video\vid03.avi"))
Clip1=ClipA.Trim(201,65032).Levels(0, 1, 255, 0, 255).tweak(sat=1.2).SeparateFields()
Clip1a=Clip1.Convolution3d(1, 10, 17, 10, 13, 2.8, 0)
Clip2=ClipA.Trim(65033,66693).Levels(3, 1.5, 170, 0, 255).tweak(sat=1.3).SeparateFields()
Clip2a=Clip2.Convolution3d(1, 10, 17, 10, 13, 2.8, 0)
Clip3=ClipA.Trim(66694,69055).Levels(0, 1, 255, 0, 255).tweak(sat=1.1).SeparateFields()
Clip3a=Clip3.Convolution3d(1, 10, 17, 10, 13, 2.8, 0)
clip1a+clip2a+clip3a
ConverToYUY2()
CropL=12
CropT=0
CropR=10
CropB=10
borderL=24
borderR=24
borderT=16
borderB=16
cropwidth=720-CropL-CropR
CropTa=CropT/2
CropBa=CropB/2
cropheight=(576/2)-CropTa-CropBa
borderTa=borderT/2
borderBa=borderB/2
resizew=720-borderL-borderR
resizeh=(576/2)-borderTa-borderBa
Crop(CropL,CropTa,cropwidth,cropheight).BiLinearResize(resizew,resizeh).Addborders(borderL,borderTa,borderR,borderBa)
weave()
Old1
Does Anyone have any suggestions for scripts which allow processing of scenes separately?. I am converting some old home video to DVD using CCE (VHS captured to DV) and there are many instances of scenes which require noise or levels adjustment, particularly in low light, as well as some scenes which dont really need any processing.
The attached script shows how I am doing this right now. I start by defining a clip for the whole capture file, and then define a series of separate clips using Trim with there own Levels and Tweak settings. Each clip can be modified with a noise filter as appropriate. I mostly use Convolution3D after separating the fields. I have not found it necessary to treat the odd and even fields separately as I have seen in some sample scripts, can anyone explain why this is done?. I then splice all the clips together, crop as required and add borders for overscan etc, then re-interlace using Weave. The script includes a formula for automatic crop adjustments based on required crop and border values. This works fine for me but I am sure someone has a neater way of doing this and would appreciate your views.
ClipA=ConvertToYV12(AVISource("D:\DV Capture\Captured Video\vid03.avi"))
Clip1=ClipA.Trim(201,65032).Levels(0, 1, 255, 0, 255).tweak(sat=1.2).SeparateFields()
Clip1a=Clip1.Convolution3d(1, 10, 17, 10, 13, 2.8, 0)
Clip2=ClipA.Trim(65033,66693).Levels(3, 1.5, 170, 0, 255).tweak(sat=1.3).SeparateFields()
Clip2a=Clip2.Convolution3d(1, 10, 17, 10, 13, 2.8, 0)
Clip3=ClipA.Trim(66694,69055).Levels(0, 1, 255, 0, 255).tweak(sat=1.1).SeparateFields()
Clip3a=Clip3.Convolution3d(1, 10, 17, 10, 13, 2.8, 0)
clip1a+clip2a+clip3a
ConverToYUY2()
CropL=12
CropT=0
CropR=10
CropB=10
borderL=24
borderR=24
borderT=16
borderB=16
cropwidth=720-CropL-CropR
CropTa=CropT/2
CropBa=CropB/2
cropheight=(576/2)-CropTa-CropBa
borderTa=borderT/2
borderBa=borderB/2
resizew=720-borderL-borderR
resizeh=(576/2)-borderTa-borderBa
Crop(CropL,CropTa,cropwidth,cropheight).BiLinearResize(resizew,resizeh).Addborders(borderL,borderTa,borderR,borderBa)
weave()
Old1