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)

Boulder 06-17-2006 01:39 AM

Open the source clip in VDubMod. Is there a pattern of three non-combed frames followed by two combed frames? If so, it's telecined and you should use the Telecide-Decimate -combo (simply put, IVTC the clips).

Otherwise the path depends on whether you can keep the files as NTSC or need to convert to PAL.

rds_correia 06-18-2006 05:30 AM

1st of all thank you both for such a quick reply.
2nd when I load my source into VDubMod I can't find a 3on2 sequence.
In fact, I can't get why some parts are combed and some other are not.
I thought that in scene change transitions I would find combed effect and on specially fast scenes.
But sometimes I find fast scenes/scene change where I can't find the combing effect.
VDubMod file info says 720x480, 29.970fps (33367us).
I have tried to burn this source to a DVD but...to tell you the truth...sometimes I think I can see the combing effect when watching on the TV too.
I know, it doesn't make sense but nevertheless I get that feeling :lol:.
I would feel much better if I could deinterlace it and maybe slow it down to ~25fps if that's possible :).
Any help will be very welcome :D.
Cheers

Boulder 06-18-2006 05:34 AM

Could you upload an unprocessed sample clip, preferably one from where there's no combing and one where the combing is visible. I guess something like 100 frames would be enough but you can upload a larger clip if you like.

rds_correia 06-18-2006 06:02 AM

Ok, I'll try to find sometime during today to upload the clips.
Thanks in advance guys ;).

rds_correia 06-18-2006 09:14 AM

Errrrm, guys?
I have a problem.
I want to cut a few frames from my VOBs but...what tool should I use to do that?
Cheers

Boulder 06-18-2006 09:26 AM

Open the VOB in DGIndex, choose a small range and choose Save project and demux video. You'll get an m2v file out of that.

rds_correia 06-18-2006 09:32 AM

Thanks Boulder :D

kwag 06-18-2006 10:50 AM

Quote:

Originally Posted by rds_correia
Errrrm, guys?
I have a problem.
I want to cut a few frames from my VOBs but...what tool should I use to do that?
Cheers

You can always use "Kutter" for that ;)

-kwag

rds_correia 06-28-2006 05:57 PM

Hi guys :).
I'm sorry for taking so long to post but lately I haven't had a life due to too much work. :(
Man I could use some vacations...
So here's what I have.
http://www.freewebs.com/kvcdguides/clip1.demuxed.m2v
Please be so kind to advise me on what to do from here on ;).
Thanks in advance :).
Cheers

Boulder 06-29-2006 02:35 AM

The stuff looks like it's mostly progressive at 29.97fps, only some occasional combs but there's no pattern.

You could try using ConvertFPS(25) but it will probably look bad. I don't know if there's any decent way to do the conversion, one option is to use MVFlowFPS or MVFlowFPS2 included in MVTools (avisynth.org.ru) instead.

rds_correia 06-29-2006 05:35 PM

Quote:

Originally Posted by Boulder
I don't know if there's any decent way to do the conversion...

Hi Boulder :).
Thanks for looking at my sources.
These are the words that I retained from your post.
If there's no decent way to convert these from interlaced to progressive I really won't loose much more of my (and yours') time with this.
But does this mean that my only option is authoring and watching this as interlaced?
And does this use to happen very often with your sources?
TIA
Cheers :)

Boulder 06-30-2006 03:11 AM

You can try using ConvertFPS but I'm not sure if the results are satisfactory. NTSC to PAL conversions often result in blending or jerkiness unless you have a clean, progressive 23.976fps source.

Try this one:
Code:

MPEG2Source()
AssumeTFF()
LeakKernelBob(order=1,sharp=true,threshold=3) # or TDeint(mode=1)
ConvertFPS(50)
AssumeTFF()
SeparateFields()
SelectEvery(4,0,3)
Weave()

As I said, you can use MVFlowFPS or MVFlowFPS2 to do the framerate conversion. They are slower but should provide better quality.

Replace ConvertFPS(50) with this:
Code:

backward_vec = MVAnalyse(isb = true, truemotion=true, pel=2, idx=1, sharp=1, blksize=8)
forward_vec = MVAnalyse(isb = false, truemotion=true, pel=2, idx=1, sharp=1, blksize=8)
MVFlowFPS(backward_vec, forward_vec, num=50, den=1, ml=100, idx=1)

or this:
Code:

backward_vec = MVAnalyse(isb = true, truemotion=true, pel=2, idx=1, sharp=1, blksize=8)
forward_vec = MVAnalyse(isb = false, truemotion=true, pel=2, idx=1, sharp=1, blksize=8)
cropped = crop(4,4,-4,-4,true) # by half of block size 8
backward_vec2 = cropped.MVAnalyse(isb = true, truemotion=true, pel=2, idx=2, sharp=1, blksize=8)
forward_vec2 = cropped.MVAnalyse(isb = false, truemotion=true, pel=2, idx=2, sharp=1, blksize=8)
MVFlowFPS2(backward_vec,forward_vec,backward_vec2,forward_vec2,num=50,idx=1,idx2=2)

I wrote those by copy-pasting from the MVTools documentation and changed them slightly so there might be errors lurking, the functions sometimes want a clip specified as a parameter.

rds_correia 06-30-2006 04:35 PM

Quote:

Originally Posted by Boulder
You can try using ConvertFPS but I'm not sure if the results are satisfactory. NTSC to PAL conversions often result in blending or jerkiness unless you have a clean, progressive 23.976fps source.

I see...
Thankfuly I live in PAL land and I don't get to see much interlaced stuff.
Quote:

Originally Posted by Boulder
Replace ConvertFPS(50) with this:

By replacing you mean creating a avsi function, right?
Quote:

Originally Posted by Boulder
I wrote those by copy-pasting from the MVTools documentation and changed them slightly so there might be errors lurking, the functions sometimes want a clip specified as a parameter.

I will take that in consideration when I try them.
Thanks for helping me here.
Hopefully next time I get a 23.976 source and maybe you can explain me more in detail what I need to know for those sources.
Are those the 3:2 ones? The ones that I can use Telecide?
Cheers

Boulder 07-01-2006 01:49 AM

Quote:

Originally Posted by rds_correia
Quote:

Originally Posted by Boulder
Replace ConvertFPS(50) with this:

By replacing you mean creating a avsi function, right?

No, instead of ConvertFPS(50) use those lines in your script. You can make a function out of those snippets and save them as avsi though. If you use them often, it might be a good idea so you won't have to type or copy-paste the whole lot every time.
Quote:

Hopefully next time I get a 23.976 source and maybe you can explain me more in detail what I need to know for those sources.
Are those the 3:2 ones? The ones that I can use Telecide?
Cheers
With regular sources, it's either Force FILM in DGIndex or IVTC (Telecide+Decimate). Most of the time Force FILM will do the trick and you get a clean 23.976fps stream which can then be converted to PAL by using AssumeFPS and speeding up the audio.

grodriguez 09-28-2006 01:44 AM

trying to fully understand interlaced is giving me a headach. i work 6 days a week 10 to 14 or sometimes more hours and dont have a lot of time. (honest) .i have made a basic kvcd from scratch about 2 years ago and might be a little rusty but all i need is a script for interlaced sources. so is there a basic script? all i want is my wife work out videos (a couple of them) on a kdvd really dont care a bout the best quality.

SOURCE:
- dvd
- interlaced
- Framerate 29.97
- aspect ratio 4:3
- 45 min long


DESTINATION:
-KDVD Full D1 720x480
- Encoding App Tmpgenc
- Muxing App BBmpeg
- Burning App Nero

thanx for any help

Dialhot 09-28-2006 03:43 AM

Quote:

Originally Posted by grodriguez
SOURCE:
- dvd
- interlaced
- Framerate 29.97
- aspect ratio 4:3
- 45 min long

Do you plan to use a whole DVD for it or do you want to have the smallest video possible, in ordoer to put other things with it on the same DVD ?

If you don't bother to use one DVD for just this video then do not mind about scripts : encode straight forward your video in interlaced mode. No filter is necessary, just a resize if needed.

kwag 09-28-2006 08:32 AM

Quote:

Originally Posted by grodriguez
trying to fully understand interlaced is giving me a headach.

http://www.100fps.com :)

-kwag

grodriguez 10-01-2006 08:30 PM

thanks for answering and sorry for late response

Quote:

Originally Posted by Dialhot
Do you plan to use a whole DVD for it or do you want to have the smallest video possible, in ordoer to put other things with it on the same DVD ?

i want to use the smallest video possable so i can put other videos like it on the same dvd

i also heard that if i dont have to deinterlace if i am only watching it on my tv and if true do i just use kwag's latest script?

and kwag thanks for the info, but what i meant was i dont understand how to use the deinterlaced plugins to make the script. i just used your script.

Quote:

Originally Posted by grodriguez
i have made a basic kvcd from scratch about 2 years ago and might be a little rusty but all i need is a script for interlaced sources

what i meant was i know how to use the script i just dont know how to create it. so is there a basic script ?

thanks

Dialhot 10-02-2006 03:44 AM

Quote:

Originally Posted by grodriguez
i also heard that if i dont have to deinterlace if i am only watching it on my tv and if true do i just use kwag's latest script?

This is true only if you do not plan to use an avisynth script to "obtain the smallest video possible". Filters are not all abble to deal with interlaced video and depending on the situation, the better is to deinterlace and use a "regular" script or to use a script that can handle interlaced materials.

In your situation, I think you just have to use the "Step one - Step two" given by Boulder in the first message of this toppic to deal with the source. There is just the problem with : where to put your filters, and I have to say that I don't really know. I never deal with interlaced material :(.

Boulder ?

Boulder 10-02-2006 04:16 AM

If you do not do any filtering, you could just simply use this as your script:
Code:

MPEG2Source("path\clip.d2v",cpu=4)
Open it in TMPGEnc and encode as interlaced 29.97fps and top field first (most likely).


All times are GMT -5. The time now is 09:59 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.