How to get the current frame number in AviSynth? -
in avisynth, there function returns current frame number? if not, how can current frame number?
that's question, quality standards:
goal use in conditional statement it's clear 1 looking @ when comparing encode source. following.
a=import("source.avs") b=ffvideosource("encode.mkv") interleave(a,b) media = ((currentframe % 2 > 0) ? "encode" : "source") subtitle(media)
a simultaneous display of both videos times , frame numbers can created in potplayer or other players support avisynth , can play frame frame. potplayer uses "f" key go forward , "d" key go backward. created having avisynth installed , avs script:
loadplugin("c:\program files (x86)\avisynth 2.5\plugins\ffms2.dll") v1 = ffvideosource("wham!last christmas.mp4") v2 = ffvideosource("wham!last christmas.mp4") stackvertical(v1,v2) showframenumber(scroll=true, x=20, y=40, font="arial", size=24, text_color=$ff0000) showtime(x=82, y=64, font="arial", size=24, text_color=$ff0000) showsmpte(fps=24, x=78, y=88, font="arial", size=24, text_color=$ff0000)
fps=24 added in case fps not exact. v1 , v2 same file here not have , ffms2.dll ffmpeg video loader can use directshowsource , eliminate loading plugin ffms2 as:
v1 = directshowsource("wham!last christmas.mp4") v2 = directshowsource("wham!last christmas.mp4") stackvertical(v1,v2) showframenumber(scroll=true, x=20, y=40, font="arial", size=24, text_color=$ff0000) showtime(x=82, y=64, font="arial", size=24, text_color=$ff0000) showsmpte(fps=24, x=78, y=88, font="arial", size=24, text_color=$ff0000)
Comments
Post a Comment