Log in

View Full Version : Deinterlacing anime DVDs


Daiamondo
21st November 2003, 16:22
Hi, this is my first post... I know this question might have been answered before, but the fact is that using the search didn't return a satisfactory answer to my problem... please don't shoot me :)

I'm trying to rip some R1 and R0 anime DVDs, 30 fps, and I can never do a 100% correct IVTC process.

For some reason, it seems to me that the first scenes follow the 3:2 pulldown pattern (3 progressive frames and 2 interlaced frames), which the Decomb IVTC package handles perfectly well. But some other scenes seem to not follow any pattern: some sequences seem to have absolutely no interlaced frames, while other scenes seem to have more than 3 or 4 interlaced frames in a raw, causing the Decomb to leave interlace.

My IVTC is almost perfect, but it still leaves some interlaced frames here, and there :(

So, here are my questions:

1-) is it normal for all DVDs to have this kind of behavior, or most DVDs follow the 3:2 pulldown pattern for all the frames, during all the video sequence?

2-) The Decomb IVTC only works properly with "well behaved" video sequence (e.g. 3:2, 2:2, etc), where we can identify a pattern for the sequence of interlaced and progressive frames, or there is a way to handle this kind of video??

3-) I found a rough "solution", that is: to apply a deinterlace filter after the Decimate, to eliminate the remaining interlace. Is this procedure "correct" or there's a more intelligent solution for this? Would it be better to leave the Telecide without postprocessing and then apply a deinterlace filter and live with the unpleasant artifacts?

I'd like to know what I can do to handle this problem, since it's such a pain...

Thank you very much for your attention.

mf
21st November 2003, 16:45
As stated here: http://forum.doom9.org/showthread.php?s=&postid=397283

Either use Telecide's postprocessing and live with good frames being deinterlaced and bad frames not being deinterlaced, or
Use full postprocessing and live with all frames being deinterlaced (causing blurriness), or
Do it properly (manually) using override tools like Notepad (:D) and YATTA.

Daiamondo
21st November 2003, 19:08
So, it means that the best way of doing it so far is by checking frame by frame the whole episode and editing the override script?? :devil:
It gives 30 frames*60 seconds*24 minutes = 43200 frames to be manually processed :mad:

mf
21st November 2003, 19:38
Originally posted by Daiamondo
So, it means that the best way of doing it so far is by checking frame by frame the whole episode and editing the override script?? :devil:
It gives 30 frames*60 seconds*24 minutes = 43200 frames to be manually processed :mad:
Sonotori desu ^_^. Want me to post my script? I've got around 400 override lines.

Daiamondo
21st November 2003, 19:41
Originally posted by mf
Sonotori desu ^_^. Want me to post my script? I've got around 400 override lines.

Yes, please! :rolleyes:

mf
21st November 2003, 19:51
Originally posted by Daiamondo
Yes, please! :rolleyes:
Here goes:
Import("..\mfToon-v0.44.avs")
#Import("..\UnSmooth-v0.1.avs")

function RWNext(clip clip, int frame) {

clip.DeleteFrame(frame).DuplicateFrame(frame)

}

function RWPrev(clip clip, int frame) {

clip.DeleteFrame(frame).DuplicateFrame(frame-1)
}

function RWCustom(clip clip, int frame, int repframe) {

clip.Trim(0, frame-1)
before = last
clip.Trim(frame+1, 0)
after = last
clip.Trim(repframe, repframe)
replace = last
#clip.DeleteFrame(frame)
before+replace+after
}

function RWCouple(clip clip, int frame) {

clip.RWPrev(frame)
RWNext(frame+1)
}


MPEG2Source("maburaho3.d2v", cpu2="oooooo")

#Telecide(order=1)

input = last

#input.Greyscale()
#y1 = last

#input.UToY()
#u1 = last

#input.VToY()
#v1 = last

#StackHorizontal(u1, v1)
#FieldMatch(10)

#Telecide(order=1, triple=true, vthresh=255.0, ovr="maburaho3-ovr.txt", post=1)

#yuv = last

#yuv.Crop(0, 0, -360, -0)
#y2 = last

#yuv.Crop(0, 0, -360, -0)
#u2 = last

#yuv.Crop(360, 0, -0, -0)
#v2 = last

#YToUV(u2, v2, y1)

Telecide(order=1, triple=false, vthresh=255.0, ovr="maburaho3-ovr.txt", post=1)

Crop(4, 0, -4, -0)

RWPrev(596)
RWPrev(1227)
RWPrev(1696)
RWPrev(1701)
RWNext(1727)
RWNext(1732)
RWNext(1752)
RWNext(2721)
RWNext(2726)
RWNext(2731)
RWNext(2746)

RWNext(6159)
RWNext(6189)
RWNext(6239)
RWNext(6429)
RWNext(6743)
RWNext(6758)
RWNext(6788)
RWNext(6803)
RWNext(6815)
RWNext(7330)
RWNext(7342)
RWNext(7341)
RWNext(7345)
RWNext(7349)
RWNext(7360)
RWNext(7409)
RWNext(7413)
RWNext(7420)
RWNext(7424)
RWNext(7432)
RWNext(7435)
RWNext(7439)
RWNext(7462)
RWNext(7465)
RWNext(7469)
RWNext(7477)
RWNext(7480)
RWNext(7484)
RWNext(7525)
RWNext(7540)
RWNext(7555)
RWNext(7570)
RWNext(7574)
RWNext(7691)
RWNext(7750)
RWNext(7780)
RWNext(7810)
RWNext(7885)
RWNext(8435)
RWNext(8495)
RWNext(8540)
RWNext(8552)
RWNext(8556)
RWNext(8563)
RWNext(8586)
RWNext(9500)
RWNext(9720)
RWNext(9735)
RWNext(9750)
RWNext(9758)
RWNext(9809)
RWNext(9832)
RWNext(9840)
RWNext(9877)
RWNext(9885)
RWNext(9899)
RWNext(9937)
RWNext(9945)
RWNext(9973)
RWNext(9988)
RWNext(10003)
RWNext(10018)
RWNext(10033)
RWNext(10048)
RWNext(10078)
RWNext(10093)
RWNext(10108)
RWNext(10123)
RWNext(10138)
RWNext(10153)
RWNext(10168)
RWNext(10227)
RWNext(10526)
RWNext(11209)
RWNext(12464)
RWNext(13838)
RWNext(13867)
RWNext(13938)
RWNext(13949)
RWNext(13953)
RWNext(1742)
RWNext(1312)
RWNext(1318)
RWNext(1479)
RWNext(14161)
RWNext(14176)
RWNext(14191)
RWNext(14206)
RWNext(14218)
RWNext(14278)
RWNext(14448)
RWNext(14687)
RWNext(14698)
RWNext(14773)
RWNext(14777)
RWNext(14781)
RWNext(14788)
RWNext(14796)
RWNext(14803)
RWNext(15448)
MergeChroma(RWNext(15447))
RWNext(16508)
RWNext(16626)
RWNext(16637)
RWNext(16671)
RWNext(16675)
RWNext(16686)
RWNext(16697)
RWNext(17577)
RWNext(17663)
RWNext(18080)
RWNext(18088)
RWNext(18095)
RWNext(18103)
RWNext(18106)
RWNext(18110)
RWNext(18118)
RWNext(18460)
RWNext(18482)
RWNext(18490)
RWNext(18497)
RWNext(18512)
RWNext(18751)
RWNext(19139)
RWNext(19169)
RWNext(19334)
RWNext(19382)
RWNext(19940)
RWNext(20730)
RWNext(21081)
RWNext(21320)
RWNext(21356)
RWNext(21382)
RWNext(21393)
RWNext(21397)
RWNext(21401)
RWNext(21408)
RWNext(21412)
RWNext(21423)
RWNext(21427)
RWNext(21435)
RWNext(21438)
RWNext(21442)
RWNext(21446)
RWNext(21453)
RWNext(21457)
RWNext(21461)
RWNext(21468)
RWNext(21472)
RWNext(21476)
RWNext(21532)
RWNext(21561)
RWNext(21592)
RWNext(21603)
RWNext(21611)
RWNext(21622)
RWNext(22625)
RWNext(26800)
RWNext(27354)
RWNext(27357)
RWNext(27361)
RWNext(27399)
RWNext(27429)
RWNext(27444)
RWNext(27459)
RWNext(27474)
RWNext(27489)
RWNext(27504)
RWNext(27519)
RWNext(27534)
RWNext(27549)
RWNext(27564)
RWNext(27594)
RWNext(27609)
RWNext(27624)
RWNext(27639)
RWNext(27654)
RWNext(27669)
RWNext(28121)
RWNext(28124)
RWNext(28128)
RWNext(28136)
RWNext(28139)
RWNext(28154)
RWNext(28166)
RWNext(28181)
RWNext(28188)
RWNext(28199)
RWNext(28214)
RWNext(28241)
RWNext(28244)
RWNext(28248)
RWNext(28259)
RWNext(28263)
RWNext(28271)
RWNext(28311)
RWNext(28326)
RWNext(28369)
RWNext(5841)
RWNext(29295)
RWNext(29310)
RWNext(29629)
RWNext(29633)
RWNext(29637)
RWNext(29644)
RWNext(29674)
RWNext(29689)
RWNext(29693)
RWNext(29697)
RWNext(29742)
RWNext(29757)
RWNext(29761)
RWNext(29779)
RWNext(29787)
RWNext(29794)
RWNext(29802)
RWNext(29813)
RWNext(29969)
RWNext(30014)
RWNext(30029)
RWNext(30163)
RWNext(30264)
RWNext(30271)
RWNext(30279)
RWNext(30286)
RWNext(30294)
RWNext(30301)
RWNext(30309)
RWNext(30316)
RWNext(30324)
RWNext(30331)
RWNext(30339)
RWNext(30346)
RWNext(30354)
RWNext(30361)
RWNext(30369)
RWNext(30376)
RWNext(30386)
RWNext(30390)
RWNext(30890)
RWNext(30920)
RWNext(31705)
RWNext(32357)
MergeChroma(RWNext(33566))
RWNext(34567)
RWNext(34961)
RWNext(34976)
RWNext(34991)
RWNext(34996)
RWNext(35979)
RWNext(35984)
RWNext(36120)
RWNext(37290)
RWNext(37298)
RWNext(37483)
RWNext(37505)
RWNext(37520)
RWNext(37524)
RWNext(37531)
RWNext(37580)
RWNext(37591)
RWNext(37595)
RWNext(37599)
RWNext(37606)
RWNext(38171)
RWNext(38182)
RWNext(38194)
RWNext(38201)
RWNext(38212)
RWNext(38216)
RWNext(38224)
RWNext(38231)
RWNext(38251)
RWNext(38272)
RWNext(38284)
RWNext(38302)
RWNext(38306)
RWNext(38314)
RWNext(38321)
RWNext(38325)
RWNext(38329)
RWNext(38332)
RWNext(38366)
RWNext(38377)
RWNext(38813)
RWNext(40312)
RWNext(40315)
RWNext(40319)
RWNext(40327)
RWNext(40334)
RWNext(40342)
RWNext(40345)
RWNext(40349)
RWNext(40357)
RWNext(41388)
RWNext(42908)
RWNext(43232)
RWNext(43237)
RWNext(43243)
RWNext(43247)
RWNext(43253)
RWNext(43258)
RWNext(43263)
RWNext(43278)
RWNext(43308)
RWNext(43358)
RWNext(43362)
RWNext(2756)
RWNext(4618)
RWNext(4648)
RWNext(4678)
MergeLuma(RWNext(4693))
RWNext(6728)
RWNext(6735)
RWNext(6750)
RWNext(6765)
RWNext(6780)
RWNext(6795)
RWNext(6818)
RWNext(7405)
RWNext(7476)
RWNext(7688)
RWNext(8285)
RWNext(8430)
RWNext(8434)
RWNext(8445)
RWNext(8957)
RWNext(8987)
RWNext(9286)
RWNext(9675)
RWNext(9727)
RWNext(9962)
RWNext(10515)
RWNext(10522)
RWNext(20192)
RWNext(21927)
RWNext(21926)
RWNext(26062)
RWNext(26485)
RWNext(26488)
RWNext(26492)
RWNext(27324)
RWNext(29753)
RWNext(29828)
RWNext(29832)
RWNext(29847)
RWNext(29851)
RWNext(29854)
RWNext(29873)
RWNext(29877)
RWNext(29888)
RWNext(29892)
RWNext(29903)
RWNext(29907)
RWNext(29914)
RWNext(27032)
RWNext(27036)
RWNext(9929)
RWNext(9922)
RWNext(9907)
RWNext(9892)
RWNext(9869)
RWNext(9824)
#RWNext()



RWPrev(1747)
RWPrev(1801)
RWPrev(2398)
RWPrev(2736)
RWPrev(2741)
RWPrev(2751)
RWPrev(2761)
RWPrev(2766)
RWPrev(2771)
RWPrev(2776)

RWPrev(6810)
RWPrev(8275)
RWPrev(13837)
RWPrev(13937)
RWPrev(1311)
RWPrev(1335)
RWPrev(568)
RWPrev(593)
RWPrev(598)
RWPrev(1182)
RWPrev(1240)
RWPrev(1271)
RWPrev(1328)
RWPrev(23287)
RWPrev(14146)
RWPrev(15443)
RWPrev(15824)
RWPrev(17819)
RWPrev(18058)
RWPrev(18065)
RWPrev(18073)
RWPrev(18087)
RWPrev(18514)
RWPrev(18627)
RWPrev(18790)
RWPrev(19189)
RWPrev(19314)
RWPrev(19510)
RWPrev(20078)
RWPrev(20303)
RWPrev(20497)
RWPrev(20633)
RWPrev(20726)
RWPrev(21630)
RWPrev(21827)
RWPrev(21974)
RWPrev(22253)
RWPrev(22621)
RWPrev(22627)
RWPrev(22880)
RWPrev(23030)
RWPrev(25045)
RWPrev(25404)
RWPrev(25405)
RWPrev(26503)
RWPrev(26708)
RWPrev(26739)
RWPrev(26799)
RWPrev(26887)
RWPrev(27084)
RWPrev(27675)
RWPrev(28441)
RWPrev(5656)
RWPrev(5838)
RWPrev(28564)
RWPrev(29006)
RWPrev(29599)
RWPrev(30393)
RWPrev(30912)
RWPrev(31113)
RWPrev(31134)
RWPrev(31196)
RWPrev(31701)
RWPrev(32353)
RWPrev(32532)
RWPrev(32685)
RWPrev(32971)
RWPrev(33259)
RWPrev(33281)
RWPrev(34563)
RWPrev(34707)
RWPrev(35981)
RWPrev(36124)
RWPrev(38441)
RWPrev(38828)
RWPrev(38858)
RWPrev(38888)
RWPrev(38903)
RWPrev(38933)
RWPrev(38948)
RWPrev(38963)
RWPrev(38978)
RWPrev(38993)
RWPrev(39053)
RWPrev(39068)
RWPrev(39083)
RWPrev(39098)
RWPrev(39113)
RWPrev(39143)
RWPrev(39679)
RWPrev(39767)
RWPrev(40045)
RWPrev(40665)
RWPrev(40772)
RWPrev(43212)
RWPrev(43257)
RWPrev(43262)
RWPrev(43272)
RWPrev(43277)
RWPrev(43292)
RWPrev(43297)
RWPrev(43302)
RWPrev(43312)
RWPrev(43322)
RWPrev(43327)
RWPrev(43332)
RWPrev(43367)
RWPrev(43372)
RWPrev(43377)
RWPrev(43918)
RWPrev(2718)
RWPrev(2723)
RWPrev(2728)
RWPrev(2733)
RWPrev(2738)
RWPrev(2743)
RWPrev(2748)
RWPrev(2753)
RWPrev(2758)
RWPrev(2763)
RWPrev(2768)
RWPrev(2773)
RWPrev(2964)
RWPrev(3181)
RWPrev(1698)
MergeChroma(RWPrev(1714))
RWPrev(1724)
RWPrev(1729)
RWPrev(1744)
RWPrev(1749)
RWPrev(1797)
RWPrev(1935)
RWPrev(2122)
RWPrev(2329)
RWPrev(2335)
RWPrev(2341)
RWPrev(2346)
RWPrev(2492)
RWPrev(4531)
RWPrev(8268)
RWPrev(8284)
RWPrev(8295)
RWPrev(8675)
RWPrev(8698)
RWPrev(8826)
RWPrev(9516)
RWPrev(10181)
RWPrev(11121)
RWPrev(11502)
RWPrev(11933)
RWPrev(12003)
RWPrev(12938)
RWPrev(13453)
RWPrev(14006)
RWPrev(14156)
RWPrev(14383)
RWPrev(31519)
RWPrev(31954)
RWPrev(32698)
RWPrev(34411)
RWPrev(34448)
RWPrev(2600)
RWPrev(2605)
RWPrev(2610)
RWPrev(31026)
RWPrev(6446)
RWPrev(8613)
RWPrev(12993)
RWPrev(17095)
RWPrev(17207)
#RWPrev()
#RWPrev()
#RWPrev()
#RWPrev()
#RWPrev()
#RWPrev()
#RWPrev()
#RWPrev()
#RWPrev()
#RWPrev()


RWCustom(36029, 36019)
RWCustom(36117, 36104)
RWCustom(36144, 36139)
RWCustom(36356, 36345)
#RWCustom()
#RWCustom()

RWCouple(43282)
RWCouple(43287)
RWCouple(43317)
RWCouple(20184)
#RWCouple()
#RWCouple()
#RWCouple()
#RWCouple()


crap = last

function ApplyRangeSucks(clip clip, string args) {

clip.MSmooth()
}

function ApplyRangeSucksMore(clip clip, string args) {

clip.MergeChroma(MSmooth(clip))
}

function ApplyRangeStillSucks(clip clip, string args) {

clip.MergeChroma(SeparateFields(clip).DeleteFrame(60788).DuplicateFrame(60788).Weave())
}

function ApplyRangeStillSucks2(clip clip, string args) {

clip.MergeChroma(SeparateFields(clip).DeleteFrame(65373).DuplicateFrame(65372).Weave())
}

function ApplyRangeStillSucks3(clip clip, string args) {

clip.FieldDeinterlace(blend=false, full=true, dthreshold=0)
}

function ApplyRangeStillSucks4(clip clip, string args) {

clip.MergeChroma(FieldDeinterlace(clip, blend=false, full=true, dthreshold=0))
}

function ApplyRangeStillSucks5(clip clip, string args) {

clip.MergeChroma(SeparateFields(clip).ShowFrameNumber().Weave())
}

function ApplyRangeStillSucks6(clip clip, string args) {

clip.MergeChroma(SeparateFields(clip).DeleteFrame(80829).DuplicateFrame(80828).Weave())
}

function ApplyRangeStillSucks7(clip clip, string args) {

clip.FieldDeinterlace(blend=false, full=true)
}

#

ApplyRange(2347,2347,"ApplyRangeSucks", "It sucks")
ApplyRange(31206,31206,"ApplyRangeSucks", "It sucks")
ApplyRange(32248,32249,"ApplyRangeSucks", "It sucks")
ApplyRange(32253,32254,"ApplyRangeSucks", "It sucks")
ApplyRange(32256,32256,"ApplyRangeSucks", "It sucks")
ApplyRange(2719,2720,"ApplyRangeSucks", "It sucks")
ApplyRange(2348,2348,"ApplyRangeSucksMore", "It sucks more")
ApplyRange(2353,2353,"ApplyRangeSucksMore", "It sucks more")
ApplyRange(1478,1478,"ApplyRangeSucksMore", "It sucks more")
ApplyRange(1507,1507,"ApplyRangeSucksMore", "It sucks more")
#ApplyRange(,,"ApplyRangeSucksMore", "It sucks more")
#ApplyRange(,,"ApplyRangeSucksMore", "It sucks more")
ApplyRange(2354,2362,"ApplyRangeSucks", "It sucks")
ApplyRange(2597,2597,"ApplyRangeSucks", "It sucks")
ApplyRange(1316,1317,"ApplyRangeSucks", "It sucks")
#ApplyRange(,,"ApplyRangeSucks", "It sucks")
#ApplyRange(,,"ApplyRangeSucks", "It sucks")
#ApplyRange(,,"ApplyRangeSucks", "It sucks")
#ApplyRange(,,"ApplyRangeSucks", "It sucks")


ApplyRange(30394, 30394, "ApplyRangeStillSucks", "It still sucks")
ApplyRange(32686, 32686, "ApplyRangeStillSucks2", "It still sucks")
ApplyRange(34454, 34454, "ApplyRangeStillSucks3", "It still sucks")
ApplyRange(35976, 35976, "ApplyRangeStillSucks4", "It still sucks")
ApplyRange(40414, 40414, "ApplyRangeStillSucks6", "It still sucks")
ApplyRange(43501, 43664, "ApplyRangeStillSucks7", "It still sucks")
ApplyRange(27817, 27817, "ApplyRangeStillSucks4", "It still sucks")
ApplyRange(2601, 2601, "ApplyRangeStillSucks7", "It still sucks")
ApplyRange(2606, 2606, "ApplyRangeStillSucks7", "It still sucks")
ApplyRange(2611, 2611, "ApplyRangeStillSucks7", "It still sucks")
ApplyRange(13700, 13700, "ApplyRangeStillSucks4", "It still sucks")

#ChangeFPS(29.970)
#Reverse()
#Dup(chroma=false, maxcopies=2, show=true)
#
#Reverse()
#FieldDeinterlace(full=true, blend=true, dthreshold=0)

#Convolution3D(preset="animeBQ")

LanczosResize(640, 480)

beforecomplete = last
AVISource("mabu3eyecatchfix.avi").AssumeFPS(29.970).ConvertToYV12()
beforecomplete+last
RWCustom(24905, 46755)
RWCustom(24906, 46756)
#return u2

#MergeChroma(TomsMoComp(1,15,1))
completevideo = last
WAVSource("maburaho3.wav")
completeaudio = last
AudioDub(completevideo, completeaudio)
complete = last


beforecom = complete.Trim(0, 23030)
aftercom = complete.Trim(24829, 43919)
nextep = complete.Trim(45717, 46316)

beforecom++aftercom++nextep
cutforsubs = last

#cutout = opening++begin++end++nextep
AVISource("Maburaho 05 [640x480 WMV9 QB93].avi")
ConvertToYV12() #.KillAudio()
Trim(0, 719).ChangeFPS(29.970)
diffrawvideo = last
WAVSource("maburaho3-intro-New.wav")
diffrawaudio = last
AudioDub(diffrawvideo, diffrawaudio)
diffraw = last

cutforsubs.Trim(643, 0)
withoutstart = last

diffraw++withoutstart

Decimate(mode=2, quality=3).AssumeFPS(24)
#
#Convolution3D(preset="AnimeLQ")
mfToon(sharpen=false, strength=192)
#UnSmooth(smoother="Deen", params=Chr(34)+"m2d"+Chr(34)+", 1, 3, 1")
Deen("a2d", 1, 3, 5)
blah = last
LanczosResize(2560, 1920)
XSharpen(255, 255)
LanczosResize(640, 480)
MergeChroma(blah)

#Undot()
#ConvertToYUY2()
#GoldDust()

#TextSub("Maburaho_03_needs_trans_check.ssa")

#return complete
The applyranges are there because of some crazy AVISynth bug causing an error if I don't make a function.

Eyecannon
22nd November 2003, 01:09
I have a weird problem, I'm trying to do Akira, but it seems it's telecined but not at 3:2, but instead 4:1. Am I crazy or what?

Using Telecide().Decimate(5), it gets rid of the interlacing, but then every 4th frame or so has some pretty bad color smear.

Using TomsMoComp, there's no smear, but there's a general lowering of quality and introduction of noise. What settings could I try besides (1,5,1).

Thanks for any help!

NightMare
22nd November 2003, 04:08
well i still think theres no perfect way to ivtc anime

i used to do it manualy with TMPGEnc and chose evry frame
u could use yatta its great

in most of my encodings i use this

Telecide(order=1,guide=1,vthresh=30,dthresh=10)
Decimate(mode=2)

theres no combed frames "even the mouth movment" but the imige is to blured so i use a sharpner or do it the easy eay and enable MPGE in xvid

i still get some very good results "IMHO" but it still need some work

ssjkakaroto
22nd November 2003, 12:20
OMG mf! where do you get the patience to do such a script??? :eek:

mf
22nd November 2003, 12:48
Originally posted by ssjkakaroto
OMG mf! where do you get the patience to do such a script??? :eek:
Being crazy in the head and being perfectionist ? :D

Prettz
22nd November 2003, 21:26
Originally posted by Eyecannon
I have a weird problem, I'm trying to do Akira, but it seems it's telecined but not at 3:2, but instead 4:1. Am I crazy or what?

Using Telecide().Decimate(5), it gets rid of the interlacing, but then every 4th frame or so has some pretty bad color smear.

Using TomsMoComp, there's no smear, but there's a general lowering of quality and introduction of noise. What settings could I try besides (1,5,1).

Thanks for any help!
I'm doing Akira as we speak and Telecide seems to be able to handle it perfectly. Because leaving full post processing on ruins any scenes skyscrapers in the background (which is like 3/4 of the entire movie), I turn it off completely. I haven't spotted any combing artifacts or jerky animation in it yet.

On a side note, using anything less than 3 CDs on this movie should be considered a crime against humanity.

Eyecannon
23rd November 2003, 01:40
Originally posted by Prettz
I'm doing Akira as we speak and Telecide seems to be able to handle it perfectly. Because leaving full post processing on ruins any scenes skyscrapers in the background (which is like 3/4 of the entire movie), I turn it off completely. I haven't spotted any combing artifacts or jerky animation in it yet.

On a side note, using anything less than 3 CDs on this movie should be considered a crime against humanity.

Hrmmm well I'm doing a 2CD rip, and the quality isn't the problem, just the smearing... Using just Telecide() certainly doesn't work very well (at least for me).

I tried using YATTA but I don't really understand what is going on with it, and although it looks really good within that program, it doesn't look that good when I try to use the .avs I made in vdub.

Prettz
23rd November 2003, 03:27
MPEG2Source("C:\Akira\akira_full_01b.d2v",idct=7)
Telecide(chroma=true,post=false)
Decimate(cycle=5,mode=2) #mode=0 gives pretty much the same result
BlindPP(quant=2,cpu=4,moderate_h=20,moderate_v=40)


This script gives me absolutely perfect deinterlacing and no loss of detail whatsoever (I'm obsessive about preserving detail). I'm considering whether or not to switch back to doing the MPEG post processing within MPEG2Source, but that's another story.

Eyecannon
23rd November 2003, 08:08
Originally posted by Prettz

MPEG2Source("C:\Akira\akira_full_01b.d2v",idct=7)
Telecide(chroma=true,post=false)
Decimate(cycle=5,mode=2) #mode=0 gives pretty much the same result
BlindPP(quant=2,cpu=4,moderate_h=20,moderate_v=40)


This script gives me absolutely perfect deinterlacing and no loss of detail whatsoever (I'm obsessive about preserving detail). I'm considering whether or not to switch back to doing the MPEG post processing within MPEG2Source, but that's another story.

I'm super impressed, this works perfectly! Thanks!

Daiamondo
24th November 2003, 12:05
Well... I still need to learn how to make all those functions manually, but I am a complete n00b when it refers to avisynth scripting... or even knowing what I am doing -_-;

Does anybody know where I can find a good reference / tutorial about manual deinterlace/ivtc using Avisynth + notepad? :confused:

joshyg2
24th November 2003, 13:39
I've got it pretty easy with AKIRA.

I own a PAL copy of AKIRA. The PAL copy of AKIRA (unlike other PAL animes) is speed up to 25 fps. So the video is already Progressive, so I dont have to do any IVTC.

All I have to do is:

AssumeFPS(23.976)

and

-ota( -r 25000 23976 )

JoshyG2

P.S if you can get a PAL copy of AKIRA, then I would recommend it (its been transfered directly from FILM and just speed up).
http://www.madman.com.au/catalogue.php

Since the American dollar is higher than the Australian, you should be able to get it for cheap.

Mug Funky
25th November 2003, 10:00
MF, you're a nutter!

hehe. if i've got irregular telecine i'd just "smart bob" the video and decimate after. it's slow and (slightly) blurrier than perfect IVTC, but it's sharper than full deinterlacing.

it's slow, but not as slow as 400+ lines of avs... hehe

prolly the best smart bobber for anime (anime has some problems that natural video doesn't) is the "tomsbob" technique.

you need tomsmocomp to do this. the script (for top first) will look like:

top=clip.tomsmocomp(1,5,0)
bottom=clip.tomsmocomp(0,5,0)

interleave(top,bottom)


[edit]

PAL r4 copy of Akira rocks the house, doesn't it? little bit oversharpened though. thankfully one of my best mates is a madman insider, so i get all my anime for reasonable prices. yipee!

mf
25th November 2003, 12:47
Originally posted by Mug Funky
PAL r4 copy of Akira rocks the house, doesn't it? little bit oversharpened though. thankfully one of my best mates is a madman insider, so i get all my anime for reasonable prices. yipee!
Tell that mate to pass the message that Madman's Martian Successor Nadesico sucked, then :D. I tried my hand on that one when I just started anime encoding, and I'm glad I bailed out.

Mug Funky
25th November 2003, 13:18
hehe! this guy's not been there long...

but i tore him a new butthole about sped-up 24-25fps... on a music DVD of all things.

problem most of the time is that they get sent utter crap from their suppliers. and their older stuff wasn't done in-house (their first release of Ghost in the Shell was terrible, but all they did was distribute it).

it's a shame that most anime is made in 30p or even 30i, and so there's no good (hardware) way of converting them.

mf
25th November 2003, 13:21
Originally posted by Mug Funky
it's a shame that most anime is made in 30p or even 30i, and so there's no good (hardware) way of converting them.
So just get a single (yes, single will do) PC with beefy specs and alot of diskspace. Put one quality-obsessed geek behind it (like me :D), and give him an internet connection, food, caffeine supply (coffee & energy drinks), and porn. Before you know it, super-high-quality DVD releases start rolling out.. :D

Mug Funky
25th November 2003, 13:27
hmm. they'd need a lab of computers and quality obsessed monkeys (like me)...

they release a huge number of DVDs. even doing everything with hardware in realtime is a problem come deadlines.

i've been on messenger with this guy at 5:00am and he's still at work.

i think the solution is for some NTSC people to have some goddamn appreciation of the world outside them, and send decent quality tapes in PAL.

mf
25th November 2003, 13:34
Originally posted by Mug Funky
hmm. they'd need a lab of computers and quality obsessed monkeys (like me)...

they release a huge number of DVDs. even doing everything with hardware in realtime is a problem come deadlines.

i've been on messenger with this guy at 5:00am and he's still at work.

i think the solution is for some NTSC people to have some goddamn appreciation of the world outside them, and send decent quality tapes in PAL.
Oh, so they actually *do* release things fast, contrary to the US companies. Everytime I read a license notice it says "buy the DVD next year".

Mug Funky
25th November 2003, 13:36
yeah

actually, sometimes they're too fast for the people who send the tapes.

the FLCL 3 release was pushed back 2 weeks because they didn't have any video... just a blank DVD structure.

mf
25th November 2003, 13:54
Originally posted by Mug Funky
yeah

actually, sometimes they're too fast for the people who send the tapes.

the FLCL 3 release was pushed back 2 weeks because they didn't have any video... just a blank DVD structure.
Nice.

bilu
25th November 2003, 19:32
Originally posted by Mug Funky
if i've got irregular telecine i'd just "smart bob" the video and decimate after. it's slow and (slightly) blurrier than perfect IVTC, but it's sharper than full deinterlacing.


Ever heard of SmartDecimate?
http://forum.doom9.org/showthread.php?s=&threadid=60031


Bilu

Ginta
25th November 2003, 21:02
Well... I've tried many times to use the bob technique to deinterlace my anime videos with no success... it always return me a "shaky" output, like the pictures sequence below:

http://ginta.bravehost.com/sequence01.png
http://ginta.bravehost.com/sequence02.png
http://ginta.bravehost.com/sequence03.png
http://ginta.bravehost.com/sequence04.png

Does anybody have any idea on what might be causing this? :confused:

PS: Pay attention to the Lyrics and to the Kanjis of the picture, the effect is more noticeable there :confused:

mf
25th November 2003, 21:40
Using Bob bobs the picture up and down. Smart Bob (DGBob is a Smart Bob) tries to reduce this.

Ginta
27th November 2003, 23:57
There's something strange happening to me lately. I am quite sure the problem is me, who isn't able to figure out what I'm doing wrong...

I always used Telecide without any problems, but lately it's not working at all with me.

Everything begun when I was using this script:


LoadPlugin("C:\vtools\plugins\MPEG2Dec3dg.dll")
LoadPlugin("C:\vtools\plugins\Decomb510.dll")
mpeg2source("c:\rip01\brena.d2v")
Telecide(order=1, vthresh=50, ovr="test0-ovr.txt", post=1)
-> etc


and when I opened it using VDM, I got an error message:

Script error: Invalid arguments to function "Telecide"

I tried to take the ovr off, and it persisted... then, I omited the vthresh, and it persisted, then I used it with arguments that used to work before and it still persisted...

one example that worked before and is not working now:


Telecide(order=1, vthresh=0, post=2)


then, I uninstalled AVS, the plugins, installed them all again, and the problem persists...

then I loaded an old avs script, which was like this:

LoadPlugin("C:\vtools\plugins\mpeg2dec3dg.dll")
LoadPlugin("C:\vtools\plugins\autocrop.dll")
LoadPlugin("C:\vtools\plugins\decomb510.dll")

function getOrder(clip c) {
order = GetParity(c) ? 1 : 0
return order }

movie = mpeg2source("C:\vid\episode01.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=40)
c_width = width(cropclip)
c_height = round(height(cropclip) / 0.911392405063291)
input_par = float(c_width)/float(c_height)
fixed_aspect = input_par > 1.4 ? 0.911392405063291 : 0.888888888888889
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
out_width = 640
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 8) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=40)
Telecide(order=getOrder(movie),guide=1,ovr="brena-tel.txt",post=2).Decimate(mode=0)
LanczosResize(out_width,out_height)

and everything worked fine... =_=

does anybody have a clue? :confused:

Ginta
28th November 2003, 00:11
Well, this is getting more and more weird, and it's making me nuts :devil:

I took the same script that worked, cut it, and let it just like this:


LoadPlugin("C:\vtools\plugins\mpeg2dec3dg.dll")
LoadPlugin("C:\vtools\plugins\decomb.dll")

mpeg2source("C:\vid\episode01.d2v")

Telecide(order=1,guide=1,post=1).Decimate(mode=0)


and everything worked fine :devil:

Then, I opened notepad to create a new script, exactly like the one above...

I even pasted it here to see if my eyes are betraying me...


LoadPlugin("C:\vtools\plugins\mpeg2dec3dg.dll")
LoadPlugin("C:\vtools\plugins\decomb.dll")

mpeg2source("C:\vid\episode01.d2v")

Telecide(order=1,guide=1,post=1).Decimate(mode=0)


and it returned THE SAME error message :devil:

It's driving me nuts... what the hell is going on here? :devil:

Wilbert
28th November 2003, 00:16
Does this also happen with the "normal" mpeg2dec3 and dvd2avi?

Ginta
28th November 2003, 00:27
Originally posted by Wilbert
Does this also happen with the "normal" mpeg2dec3 and dvd2avi?

Yes, it happens with any d2v I open, even with the "normal" dvd2avi and with the old mpeg2dec3, and with older decomb :confused:

It seems that it only works if I edit older scripts...

but if I make new scripts from scratch, manually, and make them with exactly the same contents of the older scripts that were working, with no different lines, no different spaces, no different settings... exactly a clone... they return the error


Script error: Invalid arguments to function "Telecide"


:confused:

I don't really understand this...

stickboy
28th November 2003, 02:44
Originally posted by Ginta
Everything begun when I was using this script:
LoadPlugin("C:\vtools\plugins\MPEG2Dec3dg.dll")
LoadPlugin("C:\vtools\plugins\Decomb510.dll")
mpeg2source=("c:\rip01\brena.d2v")
Telecide(order=1, vthresh=50, ovr="test0-ovr.txt", post=1)and when I opened it using VDM, I got an error message:

Script error: Invalid arguments to function "Telecide"If that's exactly the script you used, then you got that error because of a typo; the mpeg2source line shouldn't have an '=' in it.

If it's a typo in your post but not in your script, then try commenting out the Telecine line completely. Does the script load without error, or do you get a "script's return value is not a video clip" error?

Ginta
28th November 2003, 10:40
Originally posted by stickboy
If it's a typo in your post but not in your script, then try commenting out the Telecine line completely. Does the script load without error, or do you get a "script's return value is not a video clip" error?

Sorry, it was a typo on my post(fixed). Commenting the Telecine line makes the script load without error, and any other filter works. :confused: