Log in

View Full Version : Error Encoding Avi with HC 018 & 017


Sounddude
27th June 2006, 18:09
This is my first error with HC. It showed up while encoding an avi. The error message was: error invoke pass 2.

The first pass completed with no problem, but the second pass would not start and the encoder closed saying DVD encoding finished.

The log shows only the first pass info and shows no errors.

It came up on both HC 018 & 017 (I tried both).

I checked the avi for video errors in virtualdub and it came up clean.

Any ideas?

Here's my script:

AviSource("G:\Movies\YellowBeard\Yellowbeard.avi", false)
ConvertToYV12()
LanczosResize(720,456,0.0,0.6)
AddBorders(0,12,0,12)

Mr_Odwin
27th June 2006, 18:53
From the Avisynth website:

LanczosResize(clip clip int target_width, int target_height, int taps)

The 'int' means integer, I assume. (A whole number.) So your 0.6 violates that.

Sounddude
27th June 2006, 19:39
From the Avisynth website:



The 'int' means integer, I assume. (A whole number.) So your 0.6 violates that.

What should it be then?

thanks for the help!

Mr_Odwin
27th June 2006, 20:12
Try just using lanczosresize(720,456), although I think the encoder may give better output with

lanczosresize(720,448)
addborders(0,16,0,16)

as mpeg2 encoders like to work with blocks of 16.

Sounddude
27th June 2006, 22:41
Thanks for the help!

Mug Funky
4th July 2006, 09:57
actually, that .6 might be a red herring. it'll just crop .6 pixels off the top of your source before resizing.

it's possible to crop by floating-point numbers inside a resizer, and it's very very useful too, especially when going NTSC 525 line to PAL 625 line but starting with a 480 line source and going to a 576 line output.

Abond
4th July 2006, 10:02
I guess this is simply a mistaken line in which Bicubicresize(720,456,0.0,0.6) was replaced with Lanczos without adjusting the parameters.