Quantcast Avisynth: Smoothdeinterlace and ConvertToYUY2? - digitalFAQ.com Forums [Archives]
  #1  
10-11-2004, 03:14 AM
shgr shgr is offline
Free Member
 
Join Date: Apr 2004
Location: Lima, Peru
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Hi everyone

I have an mpeg2 interlaced source...
so, I thought that maybe using SmoothDeinterlace my problem would be solved.

But, when I loaded my AVS script on Tmpgenc, avisynth warned me that SmoothDeinterlace only works with YUY2 and RGB32 sources.

So then, I added:

ConvertToYUY2(interlaced=true)

and finally, my script was accepted. however, when I finished the encoding I noticed that the left half of the video was VIOLET, and the other half was correct.

After that, I tried:

ConvertToRGB32(interlaced=true)

And what I got was almost the same result... just that it wasnt the half, but just an small section of the video all colored in violet.

I dont get why this is happening. Im not a total noobie, but this is out of my tiny knowledge.

plzzzzzzz!!!

PS: sorry for my english, if everyone could understand spanish it would be much easier to me.

[/code]
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
10-11-2004, 03:23 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
We used to have this problem once. This is due to an instruction that I do not remember at the moment that need to works in YV12 !
(I will remember the line if you post your complete script).

That means that you have a real incompatibility in your scripts between filters that need to be in YV12 and others that need to be in YUY2.

you will have to choose beween dropping the YV12 filter or using and other deinterlacer (there are a lot that work in YV12).
Reply With Quote
  #3  
10-11-2004, 06:34 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
That half violet screen issue "IMHO"!!! results from a usage of "Asharp()" in YUY2 colorspace!

Second:
If you dont want to result your strems in a 50fps "bobbed" state, then Smoothdeiterlace() is NOT the first choice! Youd look for "Kerneldeint()" on neuron2.net or if you want it quick'n dirty "try" Fielddeinterlace(full=false, blend=false) ... or blend=true. (Blend=false means no blendings/ghostings but blend=true means no jitter at all)

So the best would be if you post your TOTAL actual script where your problems do base on.
Reply With Quote
  #4  
10-11-2004, 01:10 PM
shgr shgr is offline
Free Member
 
Join Date: Apr 2004
Location: Lima, Peru
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
thanks!! :P

yeah, I was using Asharp filter.

the script I did wasnt the big thing, just loading the source, then "Smoothdeiterlace"ing, and finally "asharp.

I've read somewhere that the best desinterlacing filter was Smoothdeiterlace.
Actually, I don't understand whats ASHARP is for... now Im going to look for it. than, maybe I can delete that line from my script.

Reply With Quote
  #5  
10-11-2004, 01:21 PM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
Don't delete anything.
Post your script here and somebody will tell you what is the better solution.
Reply With Quote
  #6  
10-11-2004, 02:16 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Quote:
Originally Posted by shgr
the script I did wasnt the big thing, just loading the source, then "Smoothdeiterlace"ing, and finally "asharp.
I've read somewhere that the best desinterlacing filter was Smoothdeiterlace.
Actually, I don't understand whats ASHARP is for... now Im going to look for it. than, maybe I can delete that line from my script.
You dont know whats asharp for???
Do you order something new in a restaurant you've never eat before without reading the card at least?

Asharp -- "nomen est omen" does sharpen .... but in an adaptive way so only edges will be sharpened by using threshold.

So do follow mine and Prodaters advice and post your script
Reply With Quote
  #7  
10-12-2004, 03:31 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by incredible
Do you order something new in a restaurant you've never eat before without reading the card at least?
I do
When I'm in a chinese or japonese restaurant and don't understand the name of somethign of the card, I order it
Reply With Quote
  #8  
10-12-2004, 03:44 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
YEP!

"no risk - no fun" .... isnt it ?
Do you remember that nice -old shool- hip hop song from 1988 "go see the doctor" from Kool Moe dee ?
http://www.discogs.com/artist/Kool+Moe+Dee
Reply With Quote
  #9  
10-12-2004, 09:11 AM
shgr shgr is offline
Free Member
 
Join Date: Apr 2004
Location: Lima, Peru
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Dont be surprised:

Code:
LoadPlugin("C:\AVSFilters\MPEG2Dec3dg.dll") 
LoadPlugin("C:\AVSFilters\asharp.dll") 
LoadPlugin("C:\AVSFilters\SmoothDeinterlacer.dll") 

Mpeg2Source("C:\abc\final.d2v")
ConvertToRGB32(interlaced=true) 
SmoothDeinterlace(doublerate=true, TFF=true, Blend=true)

asharp(1, 4)
so, just that... there was undot.. and other filters... but I just tried with this.

actually, I knew the concept of ASHARP; the name reveals itself. its just that there are so many filters which do the same job.
Reply With Quote
  #10  
10-12-2004, 10:23 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
Try this script:

Code:
LoadPlugin("C:\AVSFilters\MPEG2Dec3dg.dll") 
LoadPlugin("C:\AVSFilters\asharp.dll") 
LoadPlugin("C:\AVSFilters\KernelDeint.dll") 

Mpeg2Source("C:\abc\final.d2v") 
KernelDeint(order=1,sharp=true,threshold=5)
asharp(1, 4)
You'll find KernelDeint at http://www.avisynth.org/warpenterprises . Download the newer version, IIRC there's two links for it there. You'll also have to determine the correct field order, but it's top field first (order=1) in almost all DVD sources.
Reply With Quote
  #11  
10-12-2004, 09:52 PM
muaddib muaddib is offline
Free Member
 
Join Date: Jun 2002
Location: São Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Boulder,

The version in the link you suggested is 1.5.0. Here -> http://gast3.ssw.uni-linz.ac.at/~kp/...th/KernelDeint we can find a version 1.5.1.

Do you know if this is an official compile of KernelDeint, and what are the changes from the previous version?

Just one more question... I have been reading that KernelDeint is considered one of the best deiterlacers out there (if you want to keep the same fps as the source). Comparing KernelDeint and FieldDeinterlace, the final result will be that different?
Reply With Quote
  #12  
10-13-2004, 12:51 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by muaddib
Hi Boulder,

The version in the link you suggested is 1.5.0. Here -> http://gast3.ssw.uni-linz.ac.at/~kp/...th/KernelDeint we can find a version 1.5.1.
Actually both can be found via avisynth.org That's why I told to get the newer version.

Quote:
Do you know if this is an official compile of KernelDeint, and what are the changes from the previous version?
Some MMX optimizations, a couple of bugs fixed and KernelBob() was added to the plugin itself so no functions for that needed anymore. Generally recommended to get v1.5.1 as it's faster and works better.

Quote:
Just one more question... I have been reading that KernelDeint is considered one of the best deiterlacers out there (if you want to keep the same fps as the source). Comparing KernelDeint and FieldDeinterlace, the final result will be that different?
KernelDeint is an area-based deinterlacer so it deinterlaces only those areas that have combing (determined with the threshold parameter). FieldDeinterlace deinterlaces the whole frame. KernelDeint will produce a slightly sharper image and keeps more detail.
Reply With Quote
  #13  
10-13-2004, 02:57 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
You should also test "tdeint()" a new deinterlacer with modes for 25fps and 50fps(bobbed) output. It might become the best deinterlacer actually available as some tests till now have been shown.
Reply With Quote
  #14  
10-13-2004, 03:02 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
That's true, it's a good one. It's just damn slow due to the amount of calculations involved in its technique
Reply With Quote
  #15  
10-13-2004, 11:48 AM
muaddib muaddib is offline
Free Member
 
Join Date: Jun 2002
Location: São Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
I'm trying to deinterlace some interlaced music video clips and made some tests with these three deinterlacers.

KernalDeint and TDeint seems to produce an image a little more sharp (I don't stop to compare them deeply), but IMHO they have a big negative point compared to FieldDeinterlace that is they produces much more jerkiness.

I think the smoothnes FieldDeinterlace seems to produces is due to the blending of the fields. But IMHO I prefer the blending ghost then the jerkiness.

What do you think?
Is there a way to get rid of the "blending ghosts" and the jerkness at the same time, or do I really have to choose one?
Reply With Quote
  #16  
10-13-2004, 01:02 PM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
It's one or the other, either you blend or interpolate.

You could try with sharp=false for a less sharp kernel. TDeint also has some parameters which might help with jerkiness, and TomsMoComp is not bad either, try it without the vertical filter (TomsMoComp(x,5,0) that is).
Reply With Quote
  #17  
10-13-2004, 01:18 PM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
muaddib,

I don't know exactly what kind of material you have, but maybe one option would be a conversion from 60i to 24p? Music videos are probably pure interlaced 29.97fps streams, which could be turned into 23.976fps monsters. There's a sticky thread about it at the optimal scripts forum.
Reply With Quote
  #18  
10-14-2004, 01:21 AM
muaddib muaddib is offline
Free Member
 
Join Date: Jun 2002
Location: São Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Boulder
It's one or the other, either you blend or interpolate.

In this case I will stay with "blend".
I really don't like jerk playback, even if it is a light jerk...

Quote:
You could try with sharp=false for a less sharp kernel.
I tried, but it didn't make much difference.

Quote:
TDeint also has some parameters which might help with jerkiness,
I played a lot with the parameters. I'm not sure if I made the best choices for lowering the jerkiness, but I had no lucky here too.

Quote:
and TomsMoComp is not bad either, try it without the vertical filter (TomsMoComp(x,5,0) that is).
Same situation here...
Reply With Quote
  #19  
10-14-2004, 01:37 AM
muaddib muaddib is offline
Free Member
 
Join Date: Jun 2002
Location: São Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Boulder
I don't know exactly what kind of material you have,
Some are pure ntsc interlaced 29.97fps, but I also have many that are pal interlaced 25fps.

Quote:
but maybe one option would be a conversion from 60i to 24p? Music videos are probably pure interlaced 29.97fps streams, which could be turned into 23.976fps monsters. There's a sticky thread about it at the optimal scripts forum.
Yes... I will try that with the 29.97 material, but is there something similar for 25fps

There is one interesting thing… with the 29.97 material, dvd2avi reports them as 100% ntsc interlaced, but there are some of them that I can do a simple IVTC (telecide.decimate), and it will result in a perfect 23.976 stream. By perfect I mean a completely smooth playback. The problem is that there are the ones that will result in a jerk playback. So I always have to try/encode them and check if it’s ok or not. I’m getting tired of these tests. and I have many (many!) clips to encode.

Also there are some 25fps reported as interlaced, but they are not! There is absolutely no comb effect in the entire stream.
Reply With Quote
  #20  
10-14-2004, 01:50 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
Well, DVD2AVI doesn't really know much..you must trust your eyes at all times.

One way to figure whether a clip is truly interlaced is to use a script that only loads the source and then SeparateFields(). View this clip in VirtualDub and see if there are any changes in the fields of the same frame. If there's constant movement, not just two duplicate frames with the other shifted a bit up or down, the clip should be truly interlaced.

With PAL sources you'll just have to deinterlace or encode as interlaced.

Shouldn't telecining result in a pattern of 3 progressive frames, then 2 combed when the source is loaded to VDub?
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
TMPGEnc: SmoothDeInterlace in my script the viking Video Encoding and Conversion 2 10-17-2004 05:28 PM
TO use Use ConvertToYuY2() Or Not? Major Video Encoding and Conversion 18 09-20-2004 01:42 PM
Avisynth: Converttoyuy2() jorel Avisynth Scripting 49 03-15-2004 01:40 PM
Recording Video with Smoothdeinterlace? mikcek Video Capturing / Recording 5 03-01-2004 06:34 PM
ConvertToYUY2() CaLaFaT Convertir y Codificar Video (Español) 5 07-14-2003 12:48 AM

Thread Tools



 
All times are GMT -5. The time now is 11:10 AM  —  vBulletin © Jelsoft Enterprises Ltd