Log in

View Full Version : blendfields with resize fails


angelyote
26th February 2003, 04:00
Hi guys,

I'm trying to do an encode on the thoroughly evil Evangelion when I came across this problem.

loadplugin("c:\program files\avisynth 2.5\plugins\mpeg2dec.dll")
mpeg2source("c:\eva2\video_ts\eva2.d2v")
blendfields()
bicubicResize(572,428)

This opens fine in virtualdub but does not open in zoomplayer, tmpgenc, vfapiconvert or mediaplayer. I get an error similar to, "Floating decimal point is divided by 0" (this is from tmpgenc).

This error occurs with LanczosResize and bilinearresize. If I comment out either the blendfields or the resize then it works fine. If I use MarcFD's bicublin resize (converting to yv12 first) all is kosher.

I made the dvd2avi with version 1.76 and I'm using the version of mpeg2dec in the plugin zip on the avisynth sourceforge page. This doesn't happen in the avisynth 2.05 resize/mpeg2dec blendfields combination.

Can someone with more source code deciphering skill look and see if this is a simple fix or if I'm doing something wrong. I really butchered my script down to the most basic functionality to try and eliminate error on my end.

Always the bearer of good tidings,
Dave

sh0dan
26th February 2003, 14:12
What happends if you convert to YV12 before resize, or even after resize?

angelyote
26th February 2003, 14:45
converttoyv12 before or after the resize doesn't help, however converttorgb (and both of its brothers) work when placed before the resize but not after.

Dave