View Full Version : AVS 2.52 bug with SeparateFields?
Hi,
using the released version of AVISynth 2.52, the following script
ColorBars(720,576)
SeparateFields()
BilinearResize(352,576,8,0,704,576).Weave()
ConvertToYUY2(interlaced=true)
creates a double height (352x1152) clip on my system. This doesn't happen when I take out SeparateFields (and Weave, respectively). Can anyone confirm this? Is this a bug?
Kurosu
1st July 2003, 12:45
I don't think so: Separatefields produces frames that are half the height of the source, but twice the count (unfold?). Then Weave put the fields back (ie 2 frames) into a frame, doubling the height.
Therefore, BilinearResize(352,576,8,0,704,576).Weave() is bound to produce a 352x1152 frame. I'm also surprised that you don't get green lines or the like, as your clip before BilinearResize should be 704x288 at twice the framerate. My first suggestion would be to use:
BilinearResize(352,288,8,0,704,288).Weave() #Not sure which paremeters are optional with these settings
Besides, BilinearResize works in 2 passes (I'm not sure for others, as they must use more samples): one horizontal and one vertical. As your input clip and output clip have probably the same height (and you only crop horizontaly, so no offset), you can just use bilinearResize directly, as only the horizontal resizer will get used.
Could anyone confirm if I'm not mistaken, and why it wouldn't work on that particular case? Thanks in advance.
> ColorBars(720,576)
Creates 720x576 (25 FpS for Example)
> SeparateFields()
Creates 720x288 (50 Fps)
>BilinearResize(352,576,8,0,704,576)
Creates 352x576 (50 Fps)
>.Weave()
Creates 352x1152 (25 Fps)
So that's normal. Like Kurosu wrote, the Line with BilinearResize is wrong.
Wilbert
1st July 2003, 13:12
Could anyone confirm if I'm not mistaken
That's seems correct.
But that clip should resulted in an error message, because your are feeding BilearResize with an incorrect height.
edit: to late :)
I'm sorry guys, you are of course correct :). Not sure how I missed the error on BiliniearResize. Doesn't look like one of my best days. Grr.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.