Log in

View Full Version : ChangeFPS(framerate*2) only if video is slower than 25.001fps


thomaz909
12th April 2015, 23:44
i need an avisynth script which only does "ChangeFPS(framerate*2)" when video is slower than 25.001fps.

is this possible with an avisynth script ?

if yes can anybody give me the right code ?

thx

poisondeathray
13th April 2015, 00:09
i need an avisynth script which only does "ChangeFPS(framerate*2)" when video is slower than 25.001fps.




src=last

src.framerate<25.001 ? src.changefps(framerate*2) : src

creaothceann
13th April 2015, 06:37
Or just

(FrameRate < 25.001) ? ChangeFPS(FrameRate * 2) : last

Btw. why not checking for 25.0?

thomaz909
19th April 2015, 15:35
"Original frame rate" useless invetion in .avi.
mediainfo of a testfile .avi:
Frame rate : 30.000 fps
Original frame rate : 23.976 fps

i just changed framerate with virtualdub.

lav splitter sends stream to lav decoder.
lav decoder sends decoded video to ffdshow raw filter.
ffdshow raw filter info shows 30fps but avisynth still uses the "original framerate" value and still does fps*2.

why ?

is this a huge bug in avisynth ?

with .mkv where i changed the "bps" in mkvmerge all is fine.

colours
19th April 2015, 16:44
We aren't psychic. Post your script and your source file(s).

thomaz909
19th April 2015, 21:12
it is a video i play through ffdshows avisynth plugin.
here is more desciption:
http://forum.doom9.org/showpost.php?p=1718292&postcount=15282