digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Guide to dealing with interlaced sources (http://www.digitalfaq.com/archives/avisynth/11922-avisynth-guide-dealing.html)

grodriguez 12-03-2006 09:49 PM

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?

grodriguez 12-04-2006 12:50 AM

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

Boulder 12-04-2006 04:15 AM

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.

grodriguez 12-04-2006 01:57 PM

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?

rds_correia 12-04-2006 02:31 PM

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...

Boulder 12-04-2006 02:43 PM

You must use the correct field order in both the script and encoder to avoid problems.

grodriguez 12-05-2006 07:43 PM

thanks guys for your help it turned out pretty good . I managed to get 6 movies rangeing from 19min to 53min . thanks again

rds_correia 12-06-2006 01:39 AM

Quote:

Originally Posted by grodriguez
I managed to get 6 movies rangeing from 19min to 53min.

Good for you :D.
We always love hearing good reviews on KDVD/KVCD.
Cheers

Boulder 08-02-2007 05:53 AM

A small update
 
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.

Dialhot 08-02-2007 06:50 AM

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.

Boulder 08-02-2007 06:53 AM

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.

Dialhot 08-02-2007 06:56 AM

Ok, thanks ! (the new aviynth.org with is wiki documentation is a pain in the a... when looking for information :-().

rds_correia 04-06-2008 09:50 AM

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 :lol:.
Cheers

Dialhot 04-06-2008 12:26 PM

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.

rds_correia 04-06-2008 03:00 PM

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...

Dialhot 04-06-2008 05:16 PM

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 ?

rds_correia 04-06-2008 07:13 PM

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 :)

Dialhot 04-07-2008 03:37 AM

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 :x
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) ;).

rds_correia 04-07-2008 07:09 AM

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? :lol:
Man interlaced sources are a big pain in the a... :lol:
Cheers mate

Dialhot 04-07-2008 08:53 AM

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? :lol:
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... :lol:
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.


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

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.