Log in

View Full Version : problem with the following script?


fjhdavid
11th May 2009, 17:28
Dear Jdobbs,

I use the following script with dvdrb Pro 1.28.2:

--------------------------------------------------------
video = source(...).converttoyv12
w = video.width
h = video.height
y = video
u = video.utoy.lanczosresize(w,h)
v = video.vtoy.lanczosresize(w,h)
yp = mt_lutxyz(y, u, v, "x 1 * y 2 * z 3 * + +")
up = mt_lutxyz(y, u, v, "x 2 * y 3 * z 4 * + +").lanczosresize(w/2,h/2)
vp = mt_lutxyz(y, u, v, "x 1 * y -1 * z -1 * + +").lanczosresize(w/2,h/2)
return ytouv(up,vp,yp)
----------------------------------------------------------

Everything is working except the fact that I have 4x times more frames during encoding (3200 instead 800) with HC encoder, and during rebuilding I have to wait 4x times longer because I have warning "corrupted frames" from frame 801 to 3200.

Then the final re-encoded clip is readable but is 4x times bigger

What is the problem and how to fix it?

Thanks
Francois

fjhdavid
12th May 2009, 00:09
I answer to myself and for the others who read this post:

just remove the "return" statement, and this script from Manao works perfectly

Francois

Gavino
13th May 2009, 10:29
It seems this error occurs because dvdrb puts statements around the user's script and the 'return' interferes with their operation.

It could be avoided if dvdrb used Import to embed the user script in an outer one instead of including it directly.