Created
August 17, 2011 20:28
-
-
Save PyYoshi/1152524 to your computer and use it in GitHub Desktop.
DGIndexでテンプレートとなるファイル。 ロゴデータ、スクリプトのパスを適切に変更すること。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ########## 初期設定 ########### | |
| # メモリ最大使用量 | |
| SetMemoryMax(512) | |
| # MultiThreads対応 | |
| SetMTMode(2,0) | |
| # MPEG読み込み | |
| v=MPEG2Source("__vid__") | |
| # WAVE読み込み | |
| a=bassAudioSource("__aud__") | |
| # VIDEOとAUDIOの結合 | |
| AudioDub(v,a) | |
| # 音声の遅延調整 | |
| DelayAudio(__del__) | |
| ########## CPU処理 ########### | |
| # ロゴ除去 | |
| logofile_path="ロゴデータ.lgd" | |
| EraseLOGO(logofile=logofile_path,pos_x=0, pos_y=0, depth=131,yc_y=0, yc_u=0, yc_v=0,start=0, fadein=0, fadeout=0, end=-1,interlaced=true) | |
| # YV12へ変換 | |
| ConvertToYV12(interlaced=true) | |
| # 逆テレ インタレース解除 | |
| TIVTC24P2() | |
| # リサイズ | |
| LanczosResize(1280,720,2,0,-2,0) | |
| # バンディング軽減 | |
| #GradFunkMirror(strength=1.9) | |
| Import("GradFun2DBmod.v1.5.avsiのフルパス。") | |
| GradFun2DBmod(mode=2,thr=1.01,str=0.80,temp=0,adapt=1,radius=3,range=4) | |
| # ノイズリダクション | |
| Convolution3d(preset="animeHQ") | |
| # シャープフィルタ | |
| msharpen(threshold=10, strength=40, mask=false) | |
| # アンシャープマスク | |
| UnsharpMask(26,8,44) | |
| # Warpsharp | |
| WarpSharp(95,3,85,0) | |
| # フェードイン・アウト | |
| FadeIn2(10, color=$000000) | |
| FadeOut2(10, color=$000000) | |
| ########## 最終処理 ########### | |
| # YV12へ変換 | |
| ConvertToYV12() | |
| return last | |
| ########## 外部関数 ########### | |
| function TIVTC24P2(clip clip){ | |
| Interp = clip.AssumeTFF().SeparateFields().SelectEven().eedi2(field=1) | |
| Deinted=clip.TDeint(order=1,field=1,edeint=Interp) | |
| clip = clip.TFM(PP=7,slow=2,cthresh=7,blockx=32,MI=460) | |
| clip = clip.TDecimate(mode=1) | |
| clip = clip.TIsophote() | |
| return clip | |
| } | |
| function GradFunkMirror( clip c, float "strength" ) | |
| { | |
| strength = default( strength, 1.2 ) | |
| w = c.width() | |
| h = c.height() | |
| vflip = c.FlipVertical() | |
| hflip = c.FlipHorizontal() | |
| stackhorizontal( hflip.crop( w-16, 0, 16, h ).addborders( 0, 16, 0, 16 ), | |
| \ stackvertical( vflip.crop( 0, h-16, w, 16 ), c, vflip.crop( 0, 0, w, 16 ) ), | |
| \ hflip.crop( 0, 0, 16, h ).addborders( 0, 16, 0, 16 ) ) | |
| gradfun2db( strength ) | |
| crop( 16, 16, -16, -16 ) | |
| Return last | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment