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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th February 2003, 14:37   #21  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,923
Field dominance simply refers to which field is displayed first in time, i.e., temporal order. Swapping fields means interchanging the fields of a frame. Swapping fields will reverse the temporal order, but it will also interchange each pair of lines, putting them spatially in the wrong position.

There are methods of reversing the temporal order without reversing the spatial order. Two of them were discussed in this thread.

Your capture card is simply putting each field in the "wrong" field of the output frame. That creates incorrect temporal and spatial order that can be corrected by swapping fields.

Last edited by Guest; 25th February 2003 at 14:41.
Guest is offline   Reply With Quote
Old 25th February 2003, 16:47   #22  |  Link
Si
Simply me
 
Si's Avatar
 
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
Field Dominance

A good guide (as pointed out to me a long long time ago by Donald ) can be found here

regards
Simon
Si is offline   Reply With Quote
Old 25th February 2003, 19:19   #23  |  Link
Si
Simply me
 
Si's Avatar
 
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
Version 1.1 available

via my site or here .

Now has optional parameter
shiftup (true/false, default=true)

regards
Simon
PS @vidiot et al - sorry for the wrong URL in the Version 1 post - I now know why you were confused by the name
Note to self - must test more often

Last edited by Si; 25th February 2003 at 19:23.
Si is offline   Reply With Quote
Old 26th February 2003, 05:23   #24  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,923
>Now has optional parameter
>shiftup (true/false, default=true)

Good one, Simon. I agonized for about 10 seconds over it.
Then I decided to shift up because I thought the duplicated line would be less noticeable at the bottom.
Guest is offline   Reply With Quote
Old 3rd March 2003, 05:14   #25  |  Link
SomeJoe
Registered User
 
Join Date: Jan 2003
Posts: 315
Re: Re: .oOo.

Quote:
Originally posted by neuron2
Quote:
Originally posted by Tsui
insert this line into an avisynth-script to change bff to tff :

DoubleWeave().SelectOdd()

Ingenius, but strictly, it is not fully correct as a general method, because it makes new frames with different field combinations. E.g., if we had originally:

1 3 5
2 4 6

Your method would make:

3 5 7
2 4 6

The dominance has been changed, yes, but the fields have been recombined.
A true statement, but the differing field combinations shouldn't matter. Interlaced video, in the strictest sense, is a stream of fields. There is no such thing as a frame in the analog domain.

We use the concept of a frame in the digital domain because our codecs and progressive displays work with frames, not the fields of interlaced video.

As long as each field is drawn in the space where it was originally filmed, and the fields are played back in the order that they were filmed, how they are grouped into "frames" is irrelevant, since they exist in that state only when packed inside the codec. Through whatever method they eventually get turned into an analog signal again, the grouping into "frames" disappears, and they are once again a stream of fields.

The only disadvantage I see to the DoubleWeave().SelectOdd() is that the first field of video is lost, which could result in audio sync difficulties, etc. But otherwise, it properly regroups fields to allow the opposite field dominance to be used, without changing either temporal order or spatial order of the fields.
__________________
- SomeJoe
SomeJoe is offline   Reply With Quote
Old 3rd March 2003, 14:49   #26  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,923
@SomeJoe

Did you miss the part where I said this:

"The dominance has been changed, yes, but the fields have been
recombined. Probably in most applications (where reversing
dominance is required) that is acceptable."

But thank you for pointing out the sync problem.
Guest is offline   Reply With Quote
Old 3rd March 2003, 15:36   #27  |  Link
mf
 
mf's Avatar
 
Join Date: Jan 2002
Posts: 1,729
So what about stretching instead of duplicating a line ?
mf is offline   Reply With Quote
Old 3rd March 2003, 17:17   #28  |  Link
Si
Simply me
 
Si's Avatar
 
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
@mf
Could you define what you want/mean by stretch?

regards
Simon
Si is offline   Reply With Quote
Old 3rd March 2003, 17:20   #29  |  Link
mf
 
mf's Avatar
 
Join Date: Jan 2002
Posts: 1,729
Quote:
Originally posted by siwalters
@mf
Could you define what you want/mean by stretch?

regards
Simon
Etou.... Uhrm. I wonder if it's even possible myself . I was thinking about something with SeperateFields(), but if you do that anyway you won't have to drop one scanline, or am I completely being moronic on the subject now ?
mf is offline   Reply With Quote
Old 6th April 2004, 04:55   #30  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,923
Quote:
Originally posted by mf
Etou.... Uhrm. I wonder if it's even possible myself . I was thinking about something with SeperateFields(), but if you do that anyway you won't have to drop one scanline, or am I completely being moronic on the subject now ?
It's not moronic because you could resize the frame vertically by one line after deleting one. The problem is that it will degrade the video, be very slow, and destroy interlaced material. Other than that...

It's so fun to resurrect old threads.
Guest is offline   Reply With Quote
Old 7th April 2004, 21:06   #31  |  Link
bb
Moderator
 
bb's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 2,665
Quote:
Originally posted by neuron2
[...]It's so fun to resurrect old threads.
And this one is really worth it

bb
bb is offline   Reply With Quote
Old 27th July 2004, 20:22   #32  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,299
@Si,

I was looking at your filter. It seems that ReverseFieldDominance(shiftup=true) actually shifts down one line
Wilbert is offline   Reply With Quote
Old 30th July 2004, 11:07   #33  |  Link
Si
Simply me
 
Si's Avatar
 
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
Test Source (do a right-click to download) RedGreen5.avi

Code:
LoadPlugin("c:\av\avisynth\myplugins\reversefielddominance.dll")
AVISource("D:\VTest\RedGreen5.avi")
ReverseFieldDominance(shiftup=true)
return last
Seems to move the green lines up on my system.

However, looking at the code - I think it'll get it wrong with RGB inputs

Are you using RGB?

regards
Simon
Si is offline   Reply With Quote
Old 30th July 2004, 13:16   #34  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,299
Your example works fine.

I used the following RGB32 clip.

Code:
c = blankclip.AssumeFieldBased
v = c.blankclip(color=$ffffff).AssumeFieldBased
Interleave(c,v)
Weave
# first line is white
Code:
c = blankclip.AssumeFieldBased
v = c.blankclip(color=$ffffff).AssumeFieldBased
Interleave(c,v)
Weave
ReverseFieldDominance
# the first two lines are white

Last edited by Wilbert; 30th July 2004 at 13:19.
Wilbert is offline   Reply With Quote
Old 3rd August 2004, 11:03   #35  |  Link
Si
Simply me
 
Si's Avatar
 
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
Version 1.2

Version 1.2 can be found here.

It should correct the mistake with RGB material.

regards

Simon
Si is offline   Reply With Quote
Old 22nd June 2009, 02:42   #36  |  Link
WorBry
Registered User
 
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 887
Sorry for the extreme necromancy, but I wonder if the author, or an interested filter developer, might consider adding native YV12 support to this extremely useful filter, assuming this is possible. Just a thought
__________________
Nostalgia's not what it used to be
WorBry is offline   Reply With Quote
Old 22nd June 2009, 09:45   #37  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,380
An alternative that works for all color spaces is stickboy's JDL_ReverseFieldDominance function, found in his jdl-interlace.avsi.
Gavino is offline   Reply With Quote
Old 23rd June 2009, 06:02   #38  |  Link
Mug Funky
interlace this!
 
Mug Funky's Avatar
 
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,547
you can also abuse a resizer (this will also dupe the lines at the edges, which may or may not be a good thing depending on whether you have the dreaded "halfline" in your video or not).
__________________
sucking the life out of your videos since 2004
Mug Funky is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 21:58.


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