『漫游』酷论坛>『影音数码技术学习交流』>[请教]能介绍一下几种 ..

yujin630@2007-04-21 11:00

LoadPlugin("MaskTools.dll")
LoadPlugin("Msharpen.dll")
LoadPlugin("MipSmooth.dll")
#------------------------------------------------------------------------------------------------------------------------------------------------------
function DeRainbow(clip org, int "thresh")
{
thresh = default(thresh, 10)

org_u = utoy(org)
org_v = vtoy(org)

msharpen(org, threshold = thresh, mask=true)
reduceby2()
greyscale()
uv = blur(1.5).levels(0,2.0,255,0,255).blur(1.5).blur(1.5).levels(50,2.0,255,0,255)

filtered_u = org_u.mipsmooth(spatial=255, temporal=255, scenechange=3, show=false, method="strong", scalefactor=0.5)
filtered_v = org_v.mipsmooth(spatial=255, temporal=255, scenechange=3, show=false, method="strong", scalefactor=0.5)

u_final = MaskedMerge(org_u, filtered_u, uv)
v_final = MaskedMerge(org_v, filtered_v, uv)

return ytouv(u_final, v_final, org)
}


function DeRainbowYUY2(clip org, int "thresh")
{
thresh = default(thresh, 10)

org_yv12 = org.converttoyv12()
org_u = utoy(org).converttoyv12()
org_v = vtoy(org).converttoyv12()

msharpen(org_yv12, threshold = thresh, mask=true)
bilinearresize(last.width/2, last.height)
greyscale()
uv = blur(1.5).levels(0,2.0,255,0,255, coring=false).blur(1.5).blur(1.5).levels(50,2.0,255,0,255, coring=false)

filtered_u = org_u.mipsmooth(spatial=255, temporal=255, scenechange=3, show=false, method="superstrong", scalefactor=0.5)
filtered_v = org_v.mipsmooth(spatial=255, temporal=255, scenechange=3, show=false, method="superstrong", scalefactor=0.5)

u_final = MaskedMerge(org_u, filtered_u, uv).converttoyuy2()
v_final = MaskedMerge(org_v, filtered_v, uv).converttoyuy2()

return ytouv(u_final, v_final, org)
}
引用

eva031118@2007-04-21 11:08

http://avisynth.org/DeRainbow
引用

kagakadaj@2007-04-21 11:26

THX两位啦~~
引用

realsweet@2007-04-21 13:11

顺便再试试Bifrost
好用回来告诉我声
引用

GOD_HIKARU MK2@2007-04-21 20:48

derainbow
嗯 你要有心理准备只是比AAA快少许
囧 其实也没啥分别速度上
引用

kagakadaj@2007-04-21 22:16

AAA的速度俺是可以忍受的......
引用

kzhou@2007-04-21 22:48

多谢shinjico~
那rainbow是长啥样子的..- -b
引用

kagakadaj@2007-04-21 22:53

貌似以前的AIR的1024*768的那个RAW就有出现RAINBOW现象~
引用

kzhou@2007-04-21 23:05

没看到...大概视而不见了..orz
不过头发有点锯齿倒是看到了..- -
引用

yujin630@2007-04-22 01:32

引用
最初由 realsweet 发布
顺便再试试Bifrost
好用回来告诉我声


又碰到不懂的了

这啥

彩虹?...

咋用?

R叔快梦游出来让我吸!
引用

kagakadaj@2007-04-22 10:24

引用
最初由 yujin630 发布


又碰到不懂的了

这啥

彩虹?...

咋用?

R叔快梦游出来让我吸!
当初俺看到也不是很明白R大说的是啥= =|||愣了很久.....R大请赐教[/KH]
引用

realsweet@2007-04-22 11:11

引用
最初由 yujin630 发布


又碰到不懂的了

这啥

彩虹?...

咋用?

R叔快梦游出来让我吸!

我手头需要去彩虹的片只有一部,没的多试
自己有用过,脱色比derainbow还严重,于是丢给别人用XD
2种TYPE,
TYPE1:AVS里source后写上separatefields().selectodd() ,然后扔进YATTA,AU,VDM里(随便啥的能看就行)去看,找到一组有彩虹的帧,观察如果每帧都不一样,就是TYPE1,直接source后挂上Bifrost
TYPE2:判断方法同上,每5帧里有一个重复帧的那种就是TYPE2,IVTC之后挂上Bifrost(interlaced=false)

看的懂README的直接看README得了,免得被误导XD
Rainbow Types
When dealing with telecined material you first have to determine if the rainbows were added before or after it was telecined. To do this use separatefields().selectodd() on the source. Find a frame with lots of rainbowing and see if they change every frame or if there's a duplicate every 5 frames. If you find duplicates it's type 2 rainbows and you have to perform perfect ivtc in yatta and force the right pattern over the entire source clip and then finally use "Decimation by pattern" in the project to finish it. If you find no duplicates (type 1) the process is much simpler and you just put Bifrost() right after the source.

Usage
Using Bifrost multiple times on type 2 rainbows can improve the results.

Type 1:

Mpeg2source("fruits_basket_r1.d2v")
Bifrost()
Telecide(order=1)
Decimate()


Type 1 using altclip and SSIQ:

Mpeg2source("gsc_r1.d2v")
Bifrost(scenelumathresh=1.5,altclip=SSIQ(11,100,true),interlaced=true)
Telecide(order=1)
Decimate()

Type 2:

Mpeg2source("trigun_r1.d2v")
Telecide(order=1,ovr="trigun.tel.txt")
Decimate(ovr="trigun.dec.txt")
Bifrost(interlaced=false)

Type 2 using altclip and SSIQ:

Mpeg2source("bgc_r1.d2v")
Telecide(order=1,ovr="bgc.tel.txt")
Decimate(ovr="bgc.dec.txt")
Bifrost(scenelumathresh=2,altclip=SSIQ(11,300,false),interlaced=false)
引用

kagakadaj@2007-04-22 11:50

引用
最初由 realsweet 发布

我手头需要去彩虹的片只有一部,没的多试
自己有用过,脱色比derainbow还严重,于是丢给别人用XD
2种TYPE,
TYPE1:......

膜拜~~~~~不过最近好象没碰到有RAINBOW的片子了......能出现这现象还真实属难得啊~
引用

eva031118@2007-04-22 12:49

引用
最初由 kagakadaj 发布

膜拜~~~~~不过最近好象没碰到有RAINBOW的片子了......能出现这现象还真实属难得啊~


奈叶....多得去了...[/TX]
引用

realsweet@2007-04-22 12:50

引用
最初由 kagakadaj 发布

膜拜~~~~~不过最近好象没碰到有RAINBOW的片子了......能出现这现象还真实属难得啊~

悄悄告诉你吧
其实浴巾是来骗贴的XD 鬼才相信他会去用,这年头能有多少片需要去彩虹的
我只是配合骗贴而已XDDDD
引用

«123»共3页

| TOP