Quantcast Avisynth: Guide to Dealing with Interlaced Sources - Page 3 - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #41  
11-16-2004, 04:34 PM
the viking the viking is offline
Free Member
 
Join Date: Sep 2004
Location: Norway
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Boulder wrote:
Quote:
50fps is not DVD compliant, so you must weave the fields!
and when I weave the fields,the video is interlaced again!!

So when doing kvcd,ksvcd,kdvd,vcd,svcd and dvd we can't
use bob() as deinterlacer(to keep the video deinterlaced)
beacause it gives 50 fps and the standard of the above mentioned
formats is 25 fps

Or have I missed something again

--------------------
viking
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
  #42  
11-16-2004, 07:24 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
We only do use (kernel)bob()) .... speratefields().selectevery(4,x,x).weave() ....in here for processing an interlaced video.
Means temporarely gettingfull height 50fps field separated streams and re-weaving the fields afterwards.

If you want to result in a finally deinterlaced 25 fps video I would do that using tomsMoComb as it works motion compensated.

Also a quick'n dirty deinterlacer is Fielddeinterlace(full=false, blend=false).

Full= false means ONLY the frames where combing is detected the deinterlacer processes, means NO unsahrp results in frames wheres no combing.

Blend=false means that no blending/ghosting will be the result, which would be my choice if fielddeinterlace() is used. But the bad side is that due the interpolation small typographics on the screen could get uneasy cause of crappy interpolation. So you have to test.
Reply With Quote
  #43  
11-17-2004, 03:28 AM
the viking the viking is offline
Free Member
 
Join Date: Sep 2004
Location: Norway
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Inc. wrote:

We only do use (kernel)bob()) .... speratefields().selectevery(4,x,x).weave() ....in here for processing an interlaced video.


Ok,then everything is clear to me(finally)

Ill make some tests with FieldDeInterlace(),SmoothDeInterlace
and TomsMoComp() when deinterlacing for Mpeg 1 purposes.

Anyway thanks a lot for the help
-------------------
viking
Reply With Quote
  #44  
11-17-2004, 04: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 the viking
Ill make some tests with FieldDeInterlace(),SmoothDeInterlace
and TomsMoComp() when deinterlacing for Mpeg 1 purposes.
Don't forget KernelDeint and TDeint, when considering details, they are superior
Reply With Quote
  #45  
11-17-2004, 06:10 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
Quote:
SmoothDeInterlace
Even if I once used it ....
Drop it as its old and outdated.
Reply With Quote
  #46  
11-17-2004, 09:58 AM
the viking the viking is offline
Free Member
 
Join Date: Sep 2004
Location: Norway
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
So I did a test using the following script(s):

Quote:
AviSource("D:\Full Capture\Video 1.avi",Pixel_Type="YUY2")
FieldDeInterlace(full=false,blend=false)
#TomsMoComp(-1,5,1)
#Tdeint(order=1)
#KernelDeint(1)

Crop(6,4,-6,-12)
LanczosResize(448,544,0,0,756,560)
AddBorders(16,16,16,16)
ConvertToRGB24() # For TMPGEnc
Trim(0,3540)
TMPGEnc settings was CQ 90,min.bitr.300,max bitr.2500,
res. 480x576,MPEG 1.

Then I burned as non-standard Vcd in Nero.
When viewing them on a 21 inch. TV,several times,the
poorest result was from FieldDeInterlace(full=false,blend=false),
a kind of "shaky" motion and not very sharp picture.It was hard to tell
any difference between the other three,maybe slightly better/sharper
picture with KernelDeint(1).

But as you can see I used default settings almost all over.
Maybe getting better results with other parameters.

BUT,the "man in the street" cant see any difference,and you must
know it to tell the difference between the results here and
the same video in Interlaced mode.Perhaps you can see
the difference better if the source was cleaner,I used
my captures for this test.

So to another question,when doing DVD,what gives best
results of this two options:

1. CQ 90,Min.Bitrate 2000,Max Bitrate 8000.

2. CBR 8000

Im here talking about interlaced videos.
And the final encoded filesize doesn't matter,only the quality.
anyone have any opinion about this?

And is CQ just as compatible as CBR with all Standalone DVD-players?
(I read somewhere that CBR is used as DVD standard,is it correct?)

---------------------
viking
Reply With Quote
  #47  
11-17-2004, 10:07 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
I recommend the parameter type=2 for TDeint.

Also if you use TomsMoComp with the -1 parameter, you should put AssumeTFF or AssumeBFF before so that the filter gets the correct field order. I don't recommend using the vertical filter in TomsMoComp, it tends to soften too much.

If you have a truly interlaced source, you should remove full=false from FieldDeinterlace. Full=false is meant for hybrid material, in which there's both progressive and interlaced content. The other usage for full=false is being a post-processor for any IVTC filter.
Reply With Quote
  #48  
11-17-2004, 12:03 PM
the viking the viking is offline
Free Member
 
Join Date: Sep 2004
Location: Norway
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Boulder wrote:
Quote:
I recommend the parameter type=2 for TDeint.
I used
Tdeint(order=1) beacause order=1 is TFF.
(Thats what I found out from the help-file)

So I guess your parameter recommandation has nothing to do with TFF/BFF?

------------
viking
Reply With Quote
  #49  
11-17-2004, 12:51 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
That's right, type=2 means that TDeint uses kernel interpolation. The default, type=1, isn't recommended for any non-cartoon like sources. At least that's what the help file says.
Reply With Quote
  #50  
08-21-2005, 05:49 AM
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
@Boulder or/and Incredible
Since DGPulldown 25 > 29.97 seems to be a good method to do PAL > NTSC conversions, and it needs progressive material, could you post how would be the script to obtain progressive from PAL interlaced.
There is any change respect to the script posted in first messages of this thread?
Thanks.
Reply With Quote
  #51  
08-21-2005, 05:58 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
http://www.geocities.com/xesdeeni200...Preview-0.html

I don't know if it will look good though.
Reply With Quote
  #52  
08-21-2005, 10:14 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Nice cross-entry array !

For 25i -> 25p I didn't see any problem with the method exposed, that is also the one I use (learkerneldeint)
Reply With Quote
  #53  
08-21-2005, 10:25 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
If you can handle the extra encoding time, try tritical's TDeint. It's a very good motion adaptive deinterlacer, much less flickering but also slower than LeakKernelDeint.

http://forum.doom9.org/showthread.php?t=82264
Reply With Quote
  #54  
08-21-2005, 04:32 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
Quote:
Originally Posted by Dialhot
Nice cross-entry array !

For 25i -> 25p I didn't see any problem with the method exposed, that is also the one I use (learkerneldeint)
Nice, yes, but who could explain me it?
Reply With Quote
  #55  
08-21-2005, 05:19 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
A direct "doesnt matter" deinterlacing used on a 25i material sometimes results in a poor quality which could be better archieved by first analyzing the fieldarchitecture.

So ...

IF you got a PAL 25 interlaced source then you should go through the following steps.

1. do use after loading the source:
Telecide(order=1,guide=2,post=0)

this telecide() command in the settings above does first try to remove a dynamical phase shift on PAL material. Sometimes this fast routine lets result your PAL interlaced stream into a nice 25 fps progressive one WITHOUT blendings and thats the goal.
i.E. I did fix some SexInTheCity DVDs using this to archieve perfect 25p streams as they where just dynamical phaseshifted.

if that doesnt work, means if still combs or blendings do result, try the next one ...

2. Use one of the Deinterlacers mentioned above like LeakkernelDeint() or Tdeint(). As it seems that 25i source is a REAL interlaced one taken by a video device. BUT If the deinterlacing results in blendings then you deal with a fieldblended 25i source out of a 29.976 wich resulted from 23.976 via telecine. And this will be handled using the next option ...

2. The Restore24() or Crestore() functions (one of them).
These ones do try to inverse a process called fieldblended conversation from 23.976p -> telecine -> 29.97i -> fieldblending -> 25i.
Means if you have luck an almost clean 25p stream containing no stutters or blends will result. But these are slow, especially Restore24() and its very complex blend detection.
Reply With Quote
  #56  
08-21-2005, 11:09 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
Quote:
Originally Posted by incredible
A direct "doesnt matter" deinterlacing used on a 25i material sometimes results in a poor quality which could be better archieved by first analyzing the fieldarchitecture.

So ...

IF you got a PAL 25 interlaced source then you should go through the following steps.

1. do use after loading the source:
Telecide(order=1,guide=2,post=0)

this telecide() command in the settings above does first try to remove a dynamical phase shift on PAL material. Sometimes this fast routine lets result your PAL interlaced stream into a nice 25 fps progressive one WITHOUT blendings and thats the goal.
i.E. I did fix some SexInTheCity DVDs using this to archieve perfect 25p streams as they where just dynamical phaseshifted.

if that doesnt work, means if still combs or blendings do result, try the next one ...

2. Use one of the Deinterlacers mentioned above like LeakkernelDeint() or Tdeint(). As it seems that 25i source is a REAL interlaced one taken by a video device. BUT If the deinterlacing results in blendings then you deal with a fieldblended 25i source out of a 29.976 wich resulted from 23.976 via telecine. And this will be handled using the next option ...

2. The Restore24() or Crestore() functions (one of them).
These ones do try to inverse a process called fieldblended conversation from 23.976p -> telecine -> 29.97i -> fieldblending -> 25i.
Means if you have luck an almost clean 25p stream containing no stutters or blends will result. But these are slow, especially Restore24() and its very complex blend detection.
I would even move the Restore24 step before simple deinterlacing as such material seems to be more common than PAL video. Hopefully R24 will get faster with the new MaskTools and Didée's revision. He told me that he's at the last few steps but who knows how difficult they prove to be..
Reply With Quote
  #57  
08-22-2005, 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
It was meant to be that I first see if a real video is the source by using a deinterlacer as second option. As if then combing still exists, this means in fact its a fieldblended source.

I tried Crestore by myself with no luck Others on Doom9 do report successes, so each one has to try by himself.

Yes, Im also waiting for the new Restore24() as it should run in LQ Mode in realtime, but even h HQ Mode is faster then the actual version.
(Theres a roumor on the germann doom9 board that Didée got rid of edgemasks as the internal blendetection in the new version will be done using a special procedure, .... so lets get surprised )
Reply With Quote
  #58  
08-22-2005, 07:47 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
i.E. I did fix some SexInTheCity DVDs using this to archieve perfect 25p streams as they where just dynamical phaseshifted.
And remember that I did the same with LeakKernelDeint with no problem, except surely a time loss.
LeakKernelDeint and some others are quite "intelligent" and do not blend when not necessary.
Reply With Quote
  #59  
06-16-2006, 08:53 PM
rds_correia rds_correia is offline
Free Member
 
Join Date: Apr 2003
Location: Chinese Democracy starts now!
Posts: 2,563
Thanks: 1
Thanked 0 Times in 0 Posts
Ok, I must have read this topic one thousand times but I still don't get it .
I just got 2 NTSC captures and I need to backup them.
Both are Satellite DVB captures and both are interlaced.
Could somebody help me with a step-by-step tour to interlaced sources ?
Please ?
Thanks in advance .
__________________
Rui
Reply With Quote
  #60  
06-16-2006, 11:47 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by rds_correia
Could somebody help me with a step-by-step tour to interlaced sources ?
Please ?
Hi Rui

Are they 24fps -->> to 29.97fps
Did you try a script with "telecide", or read here http://www.kvcd.net/forum/viewtopic....light=telecide

-kwag
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
KVCD: Interlaced/29.970 sources? gretagun Video Encoding and Conversion 13 01-08-2005 02:29 PM
Avisynth: Interlaced sources guide? [See pg2] J-Wo Avisynth Scripting 50 04-20-2004 07:41 AM
Avisynth: MA script for interlaced sources? Boulder Avisynth Scripting 52 04-03-2004 02:47 PM
DVD2SVCD: Script for Interlaced sources azel Video Encoding and Conversion 3 11-02-2003 11:29 AM
VirtualDub: Correcting Field Order and Swapping in interlaced sources ozjeff99 Video Encoding and Conversion 9 05-16-2003 02:21 AM




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