Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Capturing and Editing Video > DV
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 25th June 2004, 16:41   #1  |  Link
HighInBC
Registered User
 
HighInBC's Avatar
 
Join Date: Jan 2003
Location: Victoria, BC, Canada
Posts: 144
Using avisynth filters on interlaced video

Ok, lets say I have some DV video, and it is interlaced.

Say I want to use the Dissolve command, can I just do:

Dissolve (clip1,clip2.10)

or will that damage the interlacing? It looks to the eye like it damages the interlacing so I wrote this:

function interlaced_dissolve(clip clip1, clip clip2, int iter)
{
clip1 = clip1.SeparateFields()
odd1 = clip1.SelectOdd
evn1 = clip1.SelectEven

clip2 = clip2.SeparateFields()
odd2 = clip2.SelectOdd
evn2 = clip2.SelectEven

odd = Dissolve(odd1,odd2,iter)
evn = Dissolve(evn1,evn2,iter)

return Interleave(evn,odd).Weave().DoubleWeave.SelectOdd()
} # I wrote this with some help from the DV to DVD faq as a base

and it is invoked like this:

source = a1.interlaced_dissolve(a2,10).interlaced_dissolve(b1,10).interlaced_dissolve(c1,10).interlaced_dissolve(d,10)

so will that function dissolve better without damaging interlacing lines? or does avisynth handle that internally?

P.S.

I got most of that routine for a noise reduction routine in the DV2DVD faq, but what is the '.DoubleWeave.SelectOdd()' for? it seems redundant?

Last edited by HighInBC; 25th June 2004 at 16:44.
HighInBC is offline   Reply With Quote
Old 26th June 2004, 14:29   #2  |  Link
bb
Moderator
 
bb's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 2,665
Yes, the dissolve should be done on a field basis like you've described it (didn't test the script, but looks good).

DoubleWeave.SelectOdd() changes the field order from bff to tff or vice versa. This is necessary for ecoders that encode tff only, like CCE (except the latest version, which can encode bff).

bb
bb is offline   Reply With Quote
Old 26th June 2004, 19:29   #3  |  Link
HighInBC
Registered User
 
HighInBC's Avatar
 
Join Date: Jan 2003
Location: Victoria, BC, Canada
Posts: 144
thank you you are most helpful
HighInBC is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 19:00.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.