Quantcast Avisynth: Guide to Dealing with Interlaced Sources - Page 6 - digitalFAQ.com Forums [Archives]
  #101  
12-03-2006, 09:49 PM
grodriguez grodriguez is offline
Free Member
 
Join Date: Sep 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
so should i change it manualy in tmpgenc to ( setting \ advance tab \ field order : top field first(field a) ) after i load every thing and right before i start encoding?
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
  #102  
12-04-2006, 12:50 AM
grodriguez grodriguez is offline
Free Member
 
Join Date: Sep 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Boulder
When you open the VOB file in VirtualDubMod, does it show a pattern of 3 non-combed frames followed by 2 combed frames or are all frames combed?
all frames combed
Reply With Quote
  #103  
12-04-2006, 04:15 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 grodriguez
so should i change it manualy in tmpgenc to ( setting \ advance tab \ field order : top field first(field a) ) after i load every thing and right before i start encoding?
Yes, do not trust what TMPGEnc says. If you know that the field order is TFF (which it is 99% of the time when dealing with DVDs, DV is always BFF), set TMPGEnc to encode as TFF. As all the frames are combed, you have a pure interlaced source.
Reply With Quote
  #104  
12-04-2006, 01:57 PM
grodriguez grodriguez is offline
Free Member
 
Join Date: Sep 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
if i encoded with it saying bff (didn't know) in my avs script but changed it manualy in TMPGEnc does it encode at bff or tff?
Reply With Quote
  #105  
12-04-2006, 02:31 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
IIRC most "source settings" in tmpgenc don't matter much unless we're feeding it with the real source.
Which in this case we ain't: we're feeding it with a script.
Thus I feel pretty much confident when I say that if you left the field order set wrong in your script then most surely you will end up with a jerky KDVD.
But I'm not an expert in interlaced sources and my memories of tmpgenc are starting to fade away gradually...
__________________
Rui
Reply With Quote
  #106  
12-04-2006, 02:43 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
You must use the correct field order in both the script and encoder to avoid problems.
Reply With Quote
  #107  
12-05-2006, 07:43 PM
grodriguez grodriguez is offline
Free Member
 
Join Date: Sep 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
thanks guys for your help it turned out pretty good . I managed to get 6 movies rangeing from 19min to 53min . thanks again
Reply With Quote
  #108  
12-06-2006, 01:39 AM
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
Quote:
Originally Posted by grodriguez
I managed to get 6 movies rangeing from 19min to 53min.
Good for you .
We always love hearing good reviews on KDVD/KVCD.
Cheers
__________________
Rui
Reply With Quote
  #109  
08-02-2007, 05:53 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
Here's YADIF, which is a very good and rather fast smart bobber:

http://avisynth.org.ru/yadif/yadif.html

Do not place the plugin in your Avisynth plugins folder! You must place it elsewhere and load it in your script by using Load_Stdcall_Plugin("path\yadif.dll").

Then simply use:
Code:
Load_Stdcall_plugin("path\yadif.dll")
MPEG2Source("path\clip.d2v") # or AVISource
AssumexFF() # replace x with T of B; this line is not needed with MPEG2Source!
YADIF(mode=1)
..all filtering, colorspace conversions, resizing here..
SeparateFields()
SelectEvery(4,0,3)
Weave()
Encode as interlaced, setting the field order to whatever it is in your source. Most likely it is TFF.
Reply With Quote
  #110  
08-02-2007, 06:50 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Load_stdcall_plugin is a new "feature" of avisynth 2.7 to fix memory leak (or alignement) problem, isn't it ? 2.7 has some problems and I removed it atm.
Reply With Quote
  #111  
08-02-2007, 06:53 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
Nope, it's just an alias for LoadCPlugin, which sometimes gets overridden by the old LoadCPlugin from avisynth_c.dll. Load_Stdcall_Plugin was included in v2.5.6 I think.
Reply With Quote
  #112  
08-02-2007, 06:56 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Ok, thanks ! (the new aviynth.org with is wiki documentation is a pain in the a... when looking for information ).
Reply With Quote
  #113  
04-06-2008, 09:50 AM
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
Hi guys,
Long time no seeing.
Hope everybody is doing fine, Karl, Phil, Andrej, Boulder, etc.
I'm not doing bad myself but I can't say I have been encoding much in the last 12 months mainly due to too many things in hands.
Anyway, remember my last posts in this thread?
They were about a DVB-S capture that I got from a friend of Guns N' Roses Welcome to the Videos and it was interlaced in a way that I couldn't figure what to do, even Boulder found it weird.
This time I decided to buy the DVD from an online store thinking that it would be a much better source.
Wrong! I payed $14.00 plus shipping and I got a very bad 720x480 interlaced / 4:3 NTSC @ 29.97fps.
The picture quality is so bad that I almost can't tell the difference between the DVB-S that I still have and the actual DVD.
Only this one is top field first with a constant 3 frames good + 2 combed frames.
I then created a DGIndex project with field operation set to Force Film to retrieve a 23.97fps.
I loaded it into Andrej's PARanoia and I set it up just to resize to 704x480 and to output a avs script.
Then I opened the script with VDub 1.7.8 along with the MPEG2 plugin and I watched it just to realize that in every scene change I still had 1 or 2 combed frames.
So I added LeakKernelDeint(order=1,sharp=true) to my script just below the resizing parameters.
Note: Boulder's recommendation, Yadif, simply didn't decomb the frames and that's why I tried LeakKernelDeint.
Now it looks like a...progressive source but @ 23.97.
I'll be using Hank's excellent HC encoder.
So, at this point what should I do? What options should I select in the encoder since I want to deinterlace the source?
Should I try to a) keep it at 23.97 or b) should I use the 3:2 pulldown in HC?
I have tried both options in advance and a) comes out fine but then Muxman doesn't like the m2v when I try to author it, and b) makes the encode go back to 29.97fps with 3 good frames and 2 combed. Weird, shouldn't it be the opposite?
I really don't seem to understand interlaced sources and the approach to encode them.
Maybe I should try to keep it at 23.97 and maybe use DVDPatcher or maybe DGPulldown to trick Muxman, I don't know...
All I know is that watching the original DVD with my SAP on my plain old widescreen 32" CRT TV I can see the combed frames a lot (should I?) and I hate it.
Unfortunately the WTTV doesn't seem to have been edited in PAL so there's no progressive 25fps version of this title.
At least, not that I'm aware of.
Sorry for such a verbose post, you know me and my big mouth .
Cheers
__________________
Rui
Reply With Quote
  #114  
04-06-2008, 12:26 PM
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 rds_correia
Should I try to a) keep it at 23.97 or b) should I use the 3:2 pulldown in HC?
Only 29.970 is allowed on DVD so, as your source is 23.976 now, then you must use the 3:2 pulldown.

Quote:
I really don't seem to understand interlaced sources and the approach to encode them.
The point is that your source is not interlacec anymore, and that was your purpose using leakkerneldeint, isn't it ?

Quote:
Maybe I should try to keep it at 23.97 and maybe use DVDPatcher or maybe DGPulldown to trick Muxman, I don't know...
3:2 pulldown in HC is just like using DGpulldown afterwards: simply adding flags in the mpeg stream. You don't encore really in interlaced mode.

Quote:
I can see the combed frames a lot (should I?) and I hate it.
Not normal. You should not have more combed frames than with any other of your sources. That means that this one is not correctly deinterlaced.
Reply With Quote
  #115  
04-06-2008, 03:00 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
Hi Phil,
Thanks for your reply.
You see, my source looks normal.
That is, it looks like 3 normal 2 combed 3 normal 2 combed, all the way through until the GOP ends.
But in every scene change I get between 1 and 3 combed frames and sometimes they are not consecutive.
I mean, at least this time there is a pattern.
Anyway, with my tv+sap I can clearly see the combing especially in the scene changes.
So from a backup point of view what do you suggest?
DGIndex set up for Forced Film or should I create a 29.97 d2v project and deal with the combing in Avisynth?
Either way, how do I setup HC to deal with both options, 23.97 and 29.97?
Cheers

PS: Boy, I'm such a noob when it comes to interlaced that I didn't even know that DVD only accepts 29.97...
__________________
Rui
Reply With Quote
  #116  
04-06-2008, 05:16 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
I think your source is not film, nor video (=interlaced) but hybrid !
Thus you should configure DGIndex on "honor pulldown flags" and then use this in your script :
Quote:
Tfm()
Tdecimate(hybrid=1)
If I'm not wrong, this should give you a 23.976 result, that you will encode as any other progressive source.

Nevertheless, can you post a snapshot of these scene changes ?
Reply With Quote
  #117  
04-06-2008, 07:13 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
Great tips Phil.
By snapshots you mean pictures?
I guess a small avi done with vdub is ok with you?
Here's the link http://www.j3v.woeps.com/kvcd/wttv.avi
Remember this avi was encoded from the source vob.
All goes well from frame 0 till frame 13 on a 3+2,3+2,3+1 because at this point there is a scene change.
Now look how frame 14 is decombed although fuzzy followed by 15 combed, 16 decombed (fuzzy again look at Axl's shoulder), 17 decombed, 18 combed, 19 decombed+fuzzy, etc.
The worst parts are the black and white.
They only last a few seconds now and then because most of the time it is a 3+2, 3+2, 3+2, etc.
Should I try with your tivtc suggestions?
What about in the encoder?
Do I choose 3:2 pulldown or do I encode as if it was not interlaced?
Cheers
__________________
Rui
Reply With Quote
  #118  
04-07-2008, 03:37 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Your avi has been encoded using what setting in DGIndex ? Honor pulldown ?

Quote:
Originally Posted by rds_correia
Should I try with your tivtc suggestions?
Yes, you should. Even if there is no real magic
Quote:
What about in the encoder?
Do I choose 3:2 pulldown or do I encode as if it was not interlaced?
It seems you still didn't understand that you have no other choice than using the 3:2 pulldown when the source is 23.976 (=progressive) .
Reply With Quote
  #119  
04-07-2008, 07:09 AM
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
Hi Phil,
The avi that I posted has nothing to do with DGIndex.
I loaded the source vts into VDub and there I encoded to avi.
So it's from the real source, not from a DGIndex project.
And I really don't know if my source is really 23.97.
When I create a DGIndex project using Honor pulldown flag I get a 29.97 project whereas when I use Force Film I get a 23.97 project.
So, which is it, 29.97 or 23.97?
Man interlaced sources are a big pain in the a...
Cheers mate
__________________
Rui
Reply With Quote
  #120  
04-07-2008, 08:53 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 rds_correia
When I create a DGIndex project using Honor pulldown flag I get a 29.97 project whereas when I use Force Film I get a 23.97 project.
That is normal. If you look at the doc of DGIndex you will see that :
- honor pulldown follows exactly the source spécification, and as I said on DVD all sources are 29.970.

- discard pulldown does not take care of pulldown flags in the stream and so, if the source is correctly 3:2 pulleddown, that means that it really follows the 3+2 patttern, then the resulting video should be 23.976. But it clearly seem that your source does not follow this pattern ! My guess is that "discard pulddown" will give you something not 23.976 (nor 29.970). These are known as "hybrid videos".

- force film is to discard pulldown AND force 23.976.

Quote:
So, which is it, 29.97 or 23.97?
None of them .
AS I said, the best for you is to use "honor pulldown" in DGIndex and let TDecimate to try to combine the correct frames and generate a correctly decombed 23.976 stream.
(don't hesitate to look the pluginn doc, there are several other settings than "hybrid=1" than can help).

Quote:
Man interlaced sources are a big pain in the a...
Issue is that your source is not interlaced. Else it will be easy to simply split the fields and encode in interleaved mode. Here you have a "not academic" pulled down source.
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

Thread Tools



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