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. |
25th February 2003, 14:37 | #21 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
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. |
25th February 2003, 16:47 | #22 | Link |
Simply me
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
|
Field Dominance
__________________
http://www.geocities.com/siwalters_uk/fnews.html |
25th February 2003, 19:19 | #23 | Link |
Simply me
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
__________________
http://www.geocities.com/siwalters_uk/fnews.html Last edited by Si; 25th February 2003 at 19:23. |
26th February 2003, 05:23 | #24 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
>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. |
3rd March 2003, 05:14 | #25 | Link | ||
Registered User
Join Date: Jan 2003
Posts: 315
|
Re: Re: .oOo.
Quote:
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 |
||
3rd March 2003, 14:49 | #26 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
@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. |
3rd March 2003, 17:17 | #28 | Link |
Simply me
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
|
@mf
Could you define what you want/mean by stretch? regards Simon
__________________
http://www.geocities.com/siwalters_uk/fnews.html |
3rd March 2003, 17:20 | #29 | Link | |
·
Join Date: Jan 2002
Posts: 1,729
|
Quote:
|
|
6th April 2004, 04:55 | #30 | Link | |
Guest
Join Date: Jan 2002
Posts: 21,901
|
Quote:
It's so fun to resurrect old threads. |
|
30th July 2004, 11:07 | #33 | Link |
Simply me
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 However, looking at the code - I think it'll get it wrong with RGB inputs Are you using RGB? regards Simon
__________________
http://www.geocities.com/siwalters_uk/fnews.html |
30th July 2004, 13:16 | #34 | Link |
Moderator
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
|
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. |
3rd August 2004, 11:03 | #35 | Link |
Simply me
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
|
Version 1.2
__________________
http://www.geocities.com/siwalters_uk/fnews.html |
22nd June 2009, 02:42 | #36 | Link |
Registered User
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
|
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 |
22nd June 2009, 09:45 | #37 | Link |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,431
|
An alternative that works for all color spaces is stickboy's JDL_ReverseFieldDominance function, found in his jdl-interlace.avsi.
|
23rd June 2009, 06:02 | #38 | Link |
interlace this!
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,555
|
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|