HELP!! needed in removing Interlace!!!

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

HELP!! needed in removing Interlace!!!

Postby htt91 » Mon May 16, 2011 8:16 pm

I was encoding a video from DVD for the first time and it seems i ran into some trouble

My source seems to be heavily interlaced and the horizontal lines show up especially during the fast motion scenes.I read quite a few of Scintilla's guide on Deinterlacing,Sharpening,Blending,Denoising etc but after several tries I am still not satisfied with the result.Any way to get firm lines on the source deinterlace it and still save as much detail as possible...

Any Avisynth script/filters recommendations are appreciated.Btw I am only 1-2 days old to Avi Synth scripts so a detailed explanation of what it(the recommended filter) does where to get it and how the problem was solved would be better

A Cut Scene from the Source (1 minute cutscene from 3 min - 4min of complete Source)

Vandread Season 2 Episode 13 ---->
Code: Select all
http://www.megaupload.com/?d=IFHTHVTU


Btw please do try the filter yourself before recommending since I used a lot of them and failed

[Kariudo: Removed links to a full episode in parts. I'll leave the 1 minute sample for filter testing purposes pending further discussion]
htt91
 
Joined: 16 May 2011

Re: HELP!! needed in removing Interlace!!!

Postby BasharOfTheAges » Tue May 17, 2011 2:44 pm

Post your script.
Another Anime Convention AMV Contest Coordinator 2008-2014 & Head of the AAC Fan-works Theater - follow us on Twitter: https://twitter.com/#!/AACFanTheater
:sorcerer: :sorcerer: |RD: "Oh, Action!" (side-by-side) | |
User avatar
BasharOfTheAges
Just zis guy, you know?
 
Joined: 14 Sep 2004
Location: Merrimack, NH
Status: Extreeeeeeeeeme

Re: HELP!! needed in removing Interlace!!!

Postby htt91 » Tue May 17, 2011 3:30 pm

I used TFM(),TDecimate() and vinverse()<----- [After reading an earlier solution]
TomsMoComp(-1,5,1)/(1,5,1)/(1,30,0)/(1,10,0) etc and several combinations
yadif()
KernelDeint()

and several others tried after reading this guide http://www.animemusicvideos.org/guides/ ... moval.html
-------------------
I used the scripts on Megui before I encoded it and saw the result using preview so I no longer have the scripts since I wasn't satisfied and didn't save.

i used almost the Deinterlace removal filters Megui provides as well :|

Like I said I am new to Avisynth Filters so I might have missed a trick or two please you some of your time to arrive at a suitable script.Thanks ^_^
htt91
 
Joined: 16 May 2011

Re: HELP!! needed in removing Interlace!!!

Postby Scintilla » Tue May 17, 2011 5:54 pm

htt91 wrote:I read quite a few of Scintilla's guide on Deinterlacing,Sharpening,Blending,Denoising etc...

Scintilla, in the aforementioned guide, wrote:Scintilla's Guide to AVISynth Postprocessing Filters
(except deinterlacers)

Just so nobody tries to go blaming this one on me. :P
ImageImage
:pizza: :pizza: Image :pizza: :pizza:
User avatar
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

Re: HELP!! needed in removing Interlace!!!

Postby htt91 » Tue May 17, 2011 6:34 pm

lolol you got me there :P

I should have written many including yours which I found an enjoyable read.Thanks for the effort you put in writing stuff and recommending.Senior encoders on minitheatre.org where I practice encoding share a link to your guide the first thing if anyone says he wanna learn about filters. :P

so thanks ^_^

It will make my day if you clear this problem of mine too :D
htt91
 
Joined: 16 May 2011

Re: HELP!! needed in removing Interlace!!!

Postby htt91 » Wed May 18, 2011 1:18 am

SInce the reply rate on this forum is extremely slow :( I will add another problem >.>

How to tell when have u blended enough?

Can be interpreted as where to stop Deen?

I have tried my hands at encoding the Itazura na Kiss DVD iso and got the following screenies to share

So this is the DVD source at 1 min 33 sec (Size-1.8 GB)
Image

Now I encoded it on Handbrake with the following Detelecine,yadif,Denoise(Medium) ....and CRF 6 to get a 1 GB encode
Image

Since I found the video not sharp enough (I usually prefer them sharper but most people i should the screenshots too say I overdid it :( )
.......so I used the following script to resize,sharpen and smoothen it ^_^

Code: Select all
DirectShowSource("H:\New folder\[minitheatre.org][minitheatre.org][dvd-iso]itazura Na Kiss Crf 0 [htt91][Htt91].mkv", fps=29.970, audio=false, convertfps=true).AssumeFPS(30000,1001)
LoadPlugin("H:\Setups\Encoding Software\MeGUI_1911_x86_WithoutInstaller\tools\avisynth_plugin\TIVTC.dll")
TDecimate(cycleR=4)
LanczosResize(1280,720)
LoadPlugin("H:\Setups\Encoding Software\MeGUI_1911_x86_WithoutInstaller\tools\avisynth_plugin\UnDot.dll")
Undot() # Minimal Noise
ConvertToYV12()
aWarpSharp(depth=9, blurlevel=2, thresh=0.5, cm=2).MSharpen(threshold=4, strength=128, mask=false, highq=true)
Deen("a2d",2,5,7,0)


Encoded at CRF 13 from CRF 6 source.Size = 280 mb

i tweaked a bit to get it there and here is how it looks now .....tell me what do you guys think did I get it right?
Image

----------------------------------------------------------------------------
Anything that can make it look better?I dont mind re-encoding it so share ur thoughts.Btw I wanted to try PixiedustMT and VmToons on it instead but couldn't get them to work what should be my script if I wanted to try with them?
htt91
 
Joined: 16 May 2011

Re: HELP!! needed in removing Interlace!!!

Postby Mister Hatt » Wed May 18, 2011 1:30 am

I haven't grabbed your source sample due to limited resources at hand, but do you even know the difference between interlacing, telecine, hybrid, and half-sized interlaced frames (only occurs in sport usually)? Even if you don't know the difference, you should at least be able to analyse your footage and give a fairly good idea of what it is.

That said, randomly trying filters isn't going to work as they do multiple things and need to be configured to do whatever it is you require. I would recommend reading my post in the bebop source thread about how to find out what you're dealing with, if someone can dig it up for you as I have no idea right now where it is. I might write a guide at some stage on this.

As for your filter settings above, none of it makes any sense and will only serve to ruin your footage. That is NOT a DVDISO; it is the wrong framerate, you have a lot of unnecessary code, and your source call isn't even the right one to be using for your content. Forget fixing it, start over. I would suggest you find out what a DVDISO is and how it differs from an MKV. Then learn what telecine is and what the various filters you are using actually do. Reading up on colourimetry is also a good idea. You might want to get on IRC and ask for some realtime help. Also I believe there is a rule on this board about using pirated material.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you

Re: HELP!! needed in removing Interlace!!!

Postby htt91 » Wed May 18, 2011 2:02 am

hmm the sample is just a 1 min cutpiece from an source encode which may or may not be pirated.yeah its not CRF 0 (Its a CRF 15 encode from the DVD which may be genuine x_x ) o_o

like I said I am 2 days old to filters and I genuinely cant figure out what filters to use...I think thats the perfect time to ask for help lol when u dont know what to do next.

And I didn't use all the filters at once lol..I tried combinations of them...Megui has an analyse feature which detects the filters required and it suggested TIVT too.I tweaked with its cycles and top order,bottom order thats it.he ones I mentioned in 1 line are the ones I used together not all of them at once :P

As for the others I started reading the Deinterlace guide and tried it x_x sorry about that

And I would love to read more into this if someone links me to it :D

The Itazura screenshots I linked are effectively my first time using avisynth filters...so as u can see I need help :|

Thanks for the answer.Will love to hear more when u can dwnload the source sample.
htt91
 
Joined: 16 May 2011

Re: HELP!! needed in removing Interlace!!!

Postby Mister Hatt » Wed May 18, 2011 4:24 am

Stop using MeGUI, it is terrible and will only make you do the wrong thing. If all you had to tweak top/bottom or field order, then you're obviously doing it wrong as those don't need tweaking. The sample is useless if it is a second generation encode, upload a direct cut from the original VOB files. You don't need to even think about filtering yet. Filtering is what you do after your source is in a manageable form, which is what deinterlacing or IVTC is for. You need to make it progressive and cut any garbage data out and reset it to a 1:1 PAR before even THINKING about filtering, with very few exceptions where you'd filter beforehand, none of which I think you would need. 99% of the time, new DVDs don't even need filtering other than slight AA even, so you most likely don't even need to bother once it's progressive.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you

Re: HELP!! needed in removing Interlace!!!

Postby Mister Hatt » Wed May 18, 2011 4:28 am

By the way, if this wasn't immediately obvious, unless you are using the VOB and IFO files directly, you won't be able to deinterlace it properly at all. Just FYI in case you were stupid and downloaded an MKV rip.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you

Re: HELP!! needed in removing Interlace!!!

Postby htt91 » Wed May 18, 2011 7:11 am

Mister Hatt wrote:By the way, if this wasn't immediately obvious, unless you are using the VOB and IFO files directly, you won't be able to deinterlace it properly at all. Just FYI in case you were stupid and downloaded an MKV rip.


True enough before I downloaded my first thoughts were that it would have been filtered off...guess I was wrong x_x

So no way to cure this on mkv because I think I can get the vobs too?but it would be a painful task....

Mister Hatt wrote:Stop using MeGUI, it is terrible and will only make you do the wrong thing. If all you had to tweak top/bottom or field order, then you're obviously doing it wrong as those don't need tweaking. The sample is useless if it is a second generation encode, upload a direct cut from the original VOB files. You don't need to even think about filtering yet. Filtering is what you do after your source is in a manageable form, which is what deinterlacing or IVTC is for. You need to make it progressive and cut any garbage data out and reset it to a 1:1 PAR before even THINKING about filtering, with very few exceptions where you'd filter beforehand, none of which I think you would need. 99% of the time, new DVDs don't even need filtering other than slight AA even, so you most likely don't even need to bother once it's progressive.


Which encoding software do you recommend and any links to it and its tutorial?
What script is needed for the second part of your answer for vob files?I actually have no experience of using avisynth of vob files so please help.Sorry for asking allnooy questions here on this forum

btw any recommendations on the Smoothing and Sharpening i asked before?i will redo it from scratch on the vob files if i can manage a single script...

Thanks for all the help ^_^
htt91
 
Joined: 16 May 2011

Re: HELP!! needed in removing Interlace!!!

Postby htt91 » Wed May 18, 2011 7:18 am

btw this is what a friend said after seeing the Itazura Screenshots and script

1)Use HB to encode a lossless video to preserve all quality
2)Encode Normally
3)Your final screenshot sucks.
4)Use ffms2, don't use Lanczos,
-use removegrain(1) instead of Undot(), although I suggest you remove it all together in that script.
5)Deen before sharpening
6)Your mkv is already YV12 I suppose, remove that convertoyv12() line.

Another thing, the encode output with HB is stretched out vertically, it looks fine beside that and the halos.
Finally, WHY THE HECK DID YOU UPSCALE !!!

So how much do you agree or disagree with him...I tried lossless conversion too btw as fate would have it megui couldn't even pick it up it crashed at the 2 Gb source video lol so waiting for your suggestion on the next encoding software to try

...and I can live without upscaling just testing beginners luck there :P
htt91
 
Joined: 16 May 2011

Re: HELP!! needed in removing Interlace!!!

Postby Mister Hatt » Wed May 18, 2011 9:31 am

Your friend is an idiot. I don't recommend using encoding software for post processing at all. Encoding software is for encoding. If it was for pp, it'd be called post processing software. I would suggest using avisynth for both processing and post-processing your footage and then x264 or ZarxGUI for encoding it. You need to analyse your content from the VOB files to see what processing needs to be done. Then you need to pp it for editing if necessary. After editing, you might need further pp but I would imagine not. Then you encode it. Using lossless formats in between is advised.

Come back when you have the actual VOBs and we might be able to see about helping you determine your content makeup and how to deal with it. But really, buy the R2j DVDs at least. They're far superior to shitty American disks.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you

Re: HELP!! needed in removing Interlace!!!

Postby htt91 » Wed May 18, 2011 10:00 am

I wrote the following before you posted but i got disconnected for some reason but still still share

Sorry hope this isn't considered spamming but i cant see an edit post option for some odd reason

I linked the wrong image before where image 2 is this one should have been there
Image

And I worked a bit on friends recommendation and used this script of CRF 6 source
Code: Select all
DirectShowSource("H:\New folder\[minitheatre.org][minitheatre.org][dvd-iso]itazura Na Kiss Crf 0 [htt91][Htt91].mkv", fps=23.976, audio=false, convertfps=true).AssumeFPS(24000,1001)
LoadPlugin("H:\Setups\Encoding Software\MeGUI_1911_x86_WithoutInstaller\tools\avisynth_plugin\TIVTC.dll")
TDecimate(cycleR=4)
ConvertToYV12()
Deen("a2d",2,5,7,0)
aWarpSharp(depth=9, blurlevel=2, thresh=0.5, cm=2).MSharpen(threshold=4, strength=128, mask=false, highq=true)

This is what Megui preview showed (sorry still using Megui x_x )
Image

i had to add YV12 command since it kept asking for it...meaning HB doesn't change the colourspace like the friend mentioned >..>
Removed Undot,Didn't resize at all,used Deen before Sharpening


Now after reading your comment....

will download ZarxGui...I have experience in x264Cli encoding will give it a shot too.

Btw Screenshot 1 which said DVD 1.8Gb source was an Actual DVD Vob Screenshot...

Thanks for the tips again ^_^
htt91
 
Joined: 16 May 2011

Re: HELP!! needed in removing Interlace!!!

Postby htt91 » Wed May 18, 2011 10:58 am

I noticed you never gave me an avs script to work with

This is the source DVD vob http://xdat.us/HdHSi.png

What filters would you have used on this source....

Please frame a sample script since I know nothing of even calling out vob sources.This time will try ZarxGui for the encode

btw the guide on your site says ( http://www.animemusicvideos.org/guides/mpegforcons/ )
Always use LanczosResize() for your resizing steps. It will produce the best-looking resizes


And my friend said something else about using ffms2...how do these two filters compare?Which one would you pick?
htt91
 
Joined: 16 May 2011

Next

Return to Footage Help

Who is online

Users browsing this forum: No registered users and 1 guest