View Full Version : Deinterlacing-problem
Benus_MinO
24th August 2008, 10:37
Hello!
I have a problem with interlace in one anime, immediately come to things. The interlacing using commands such as:
DGDecode_mpeg2source("C:\DVD_VIDEO\VIDEO_TS\VTS_01_1.d2v", info=3)
ColorMatrix(hints=true,interlaced=true)
tfm(order=1).tdecimate()
LanczosResize(640,480)
I also trying something like this:
DGDecode_mpeg2source("C:\DVD_VIDEO\VIDEO_TS\VTS_01_1.d2v", info=3)
Telecide.Decimate(5)
A result of this configuration is an error, only appears on this line kanji:
http://img264.imageshack.us/img264/5835/erroreq1.th.jpg (http://img264.imageshack.us/my.php?image=erroreq1.jpg)
I have tried to improve filters:
AAA()
LimitedSharpenFaster()
But it did not help anything. Also tried Yatta, The result worse.
I would like to ask you to help with configuration interlacing, in top sorry for my poor English.
Link to m2v Sample:
>>>http://www.megaupload.com/pl/?d=382DWPTM<<<
Link to d2v
>>>http://www.megaupload.com/pl/?d=YVTZYCX2<<<
egrimisu
24th August 2008, 10:42
provide a m2v sample
Benus_MinO
24th August 2008, 14:34
it is the link given in the subject
thetoof
24th August 2008, 16:00
I ran it through animeivtc() in mode 1 and everything looks fine.
Benus_MinO
24th August 2008, 16:13
something like this?:
AnimeIVTC(mode=1, aa=2)
then looks terrible, and why I want to do this filter 4 belts after two crashes and error?
Sample:
>>>http://www.megaupload.com/pl/?d=ZQYCCZ18<<<
Guest
24th August 2008, 17:01
It's soft telecined. Your clip looks just fine with Forced Film in DGIndex. Is there some reason you can't use Forced Film?
Also, you have to select Yes for the field order correction on your sample clip.
For external IVTC, I used this simple script:
telecide()
decimate()
and everything was fine. I don't understand why you obtained a bad frame using that. Please try again with the field order correction.
Benus_MinO
24th August 2008, 20:19
I can give, but after that in megui can not detect the type of interlacing
Guest
24th August 2008, 20:29
Your response is unintelligible to me.
If you use Force Film, the output will be progressive, so there's no need to try to determine type of interlacing.
Comatose
24th August 2008, 21:01
Benus, where are you from?
Benus_MinO
24th August 2008, 21:02
Poland
I tried something like this:
DGDecode_mpeg2source("C:\DVD_VIDEO\VIDEO_TS\VTS_01_1.d2v",info=3)
ColorMatrix(hints=true)
telecide()
Sample:
>>>http://www.megaupload.com/pl/?d=1LLRX9ZE<<<
or
DGDecode_mpeg2source("C:\DVD_VIDEO\VIDEO_TS\VTS_01_1.d2v",info=3)
ColorMatrix(hints=true)
decimate()
but here you can see the pixels around subtitles
Sample:
>>>http://www.megaupload.com/pl/?d=6UFRW8Y0<<<
and an attempt to improve the quality:
Import("C:\Program Files\AviSynth 2.5\plugins\AAA.avs")
DGDecode_mpeg2source("C:\DVD_VIDEO\VIDEO_TS\VTS_01_1.d2v",info=3)
ColorMatrix(hints=true)
decimate()
trim(2300,5000)
LimitedSharpenFaster()
LanczosResize(640,480)
Undot()
Sample:
>>>http://www.megaupload.com/pl/?d=NJTSG0EX<<<
but it does not work, you can see that in opening interlacing is not done in 100%
you have any ideas?
Adub
25th August 2008, 18:44
No, no, no.
What neuron2 said is this:
DGDecode_mpeg2source("C:\DVD_VIDEO\VIDEO_TS\VTS_01_1.d2v",info=3)
ColorMatrix(hints=true, interlaced=true)
telecide()
decimate()
However, when I noticed frame 564, (right after the scenechange, after inverse telecining) I tried animeivtc(mode=1, aa=0) (which you can change if you want, I was just running through it real fast), and it cleared everything right up.
In short, a good, working script is this:
DGDecode_mpeg2source("C:\Documents and Settings\DWORAA\Desktop\VTS_01_1.demuxed.d2v",info=3)
ColorMatrix(hints=true,interlaced=true)
AnimeIVTC(mode=1, aa=0)
Benus_MinO
25th August 2008, 22:15
Doesn't detect hints...
edit//It's allright now, but why it have 19.18fps?
Adub
25th August 2008, 22:17
What do you mean? Make sure that you're DGDecode line contains the "info=3" option.
Blue_MiSfit
26th August 2008, 01:47
Doesn't detect hints...
edit//It's allright now, but why it have 19.18fps?
You need to do ONE of the following. NOT both.
A) Enable force film in DGIndex
B) Perform external IVTC with Telecide/Tecimate or TFM/TDecimate.
~MiSfit
Benus_MinO
26th August 2008, 08:50
I used this:
DGDecode_mpeg2source("C:\DVD_VIDEO\VIDEO_TS\VTS_01_1.demuxed.d2v")
animeivtc(mode=1,aa=2)
crop( 4, 0, -4, 0)
LanczosResize(640,480)
LimitedSharpenFaster()
dedot()
Undot()
Adub
26th August 2008, 16:30
So, it works for you now, yes?
If so good. But also, I would recommend this instead. It should allow you to keep proper colors when converting using xvid or x264.
DGDecode_mpeg2source("C:\DVD_VIDEO\VIDEO_TS\VTS_01_1.demuxed.d2v", info=3)
Colormatrix(hints=true,interlaced=true)
animeivtc(mode=1,aa=2)
crop( 4, 0, -4, 0)
LanczosResize(640,480)
#dedot().undot() #Try using Removegrain(mode=2) instead, like this
RemoveGrain(mode=2)
LimitedSharpenFaster()
Also, instead of undot and dedot, try using Removegrain(mode=2)
egrimisu
26th August 2008, 16:45
shoul removegrain and other grain removers like mvdegrain be used after limitedshapenfaste?
Adub
26th August 2008, 16:50
No, you are right. It should be before. No sense in having limitedsharpenfaster enhance noise. I'll edit my post.
Benus_MinO
26th August 2008, 22:20
DGDecode_mpeg2source("C:\DVD_VIDEO\VIDEO_TS\VTS_01_1.d2v", info=3)
ColorMatrix(hints=true,interlaced=true)
animeivtc(mode=1,aa=0)
crop( 4, 0, -4, 0)
LanczosResize(640,480)
dedot()
undot()
RemoveGrain(mode=2)
LimitedSharpenFaster()
Sample:
http://www.megaupload.com/pl/?d=SNXHD4KV
How I can improve quality?
Adub
26th August 2008, 23:12
I don't get it. That is a pretty freakin' clean source. The only thing you can do is encoder wise, such as increase reference frames, b-frames, bitrate, etc.
Frankly I think, excluding encoder artifacts from that compressed clip, it is clean as can be, and any more filtering would be too much. You have to know when to stop.
thetoof
27th August 2008, 15:59
My thoughts too... The only difference I see between your source and your encode is, as Merlin7777 said, compression artifacts. You don't really need sharpening for the clip you sent us as it only makes compression harder... and uglier.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.