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. |
20th November 2009, 23:51 | #1 | Link |
Registered User
Join Date: Nov 2009
Posts: 5
|
How to interlace progressive footage in Avisynth?
Hi,
I would need to interlace two separate avi files in avisynth and then combine the odd fields from the other one, and the even fields from the other one to the output stream. The goal is to create interlaced stereo output from separate L&R camera progressive files. Any tips? I know how to combine two clips together, but have been unable to find a way to interlace progressive material in avisynth. There is really no need to recreate the time difference between the fields. The source footage is usually 25P, sometimes originally shot in 50i, sometimes 25P straight from the camera. |
21st November 2009, 00:03 | #3 | Link |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
Code:
source1=... source2=... source1even=separatefields(source1).selecteven source2odd=separatefields(source2).selectodd interleave(source1even,source2odd) weave David Last edited by wonkey_monkey; 21st November 2009 at 00:07. |
21st November 2009, 00:51 | #4 | Link | |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,431
|
Quote:
I think your solution is correct, but if you work it through, it is just a longer way of doing what mine does. |
|
21st November 2009, 02:03 | #5 | Link |
Registered User
Join Date: Nov 2009
Posts: 5
|
It works... Sort of. All stationary parts of the clips look correct in stereo depth, but all the moving parts look like they are double interlaced. I'm assuming this is because I've deinterlaced the source footage already first..
|
21st November 2009, 02:09 | #7 | Link |
Registered User
Join Date: Nov 2009
Posts: 5
|
On the other hand, the footage looks like it's missing half of its' resolution (which it is). I would need a way to make the both sources look like they had both of the fields in tact. So, I think I should be interlacing AND converting the footage back to 50i before interleaving...
|
21st November 2009, 02:31 | #8 | Link |
Registered User
Join Date: Nov 2009
Posts: 5
|
Ok, I probably know what's going on... When I'm taking only half of the lines, I'm losing half of the vertical resolution.
That's ok, but I don't want to see any spaces between the lines, so I should probably resize the footage vertically before interleaving...? The solution is probably really simple, but I just can't get my head around it.. I have a 22" Zalman polarized stereoscopic monitor and with circularly polarized glasses. |
21st November 2009, 03:46 | #10 | Link | |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
Quote:
David |
|
21st November 2009, 10:11 | #11 | Link |
Registered User
Join Date: Apr 2008
Location: St. Petersburg, Russia
Posts: 334
|
Media player classic deinterlaces (I can't even find turning it off). Try VLC.
A 1 line shorter script doing the same (formal field order is the opposite, but is doesn't matter here - both fields carry the same phase): Code:
Interleave(clip1, clip2) DoubleWeave() Select Every(4,1) Code:
a=Interleave(clip1, clip2).DoubleWeave().Select Every(8,1) b=Interleave(clip2, clip1).DoubleWeave().Select Every(8,5) interleave(a,b) |
Tags |
interlace, stereo |
|
|