PDA

View Full Version : errors with assumefps


tomos
12th May 2006, 22:00
i need to change the duration of an audio clip i have ( doesnt match the video - it slowly goes out of sync)

its 25fps and when i use the line:

assumefps(26, 1,true)

that works fine, but that compensates too much. so i try

assumefps(25.5, 1,true)

this fails, same with the fps as 25.50 or 25.500 etc.

always gives the err:

Avisynth open failure:
Script error: Invalid arguments to function "assumefps"
(D:\1.avs, line 6)

i've done a quick search here and on google but cant find specifics. people seem to have no probs using standard fps like 29.970/23.976 etc

Zarxrax
12th May 2006, 22:26
Remove the "1". When you enter two values, this means you are specifying a numerator and denominator for the framerate, rather than a floating point number. If you want to use a floating point number like 25.5, then you just specify it with no denominator.

AssumeFPS(25.5, true)

tomos
12th May 2006, 22:32
ach, missed that bit

thanks for that :D

didnt fancy encoding 5 hrs of audio with belight at different tempos over and over till i got the right one

:D