Thread: Avisynth+
View Single Post
Old 26th August 2019, 03:49   #4840  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
is there any difference if you replace all the splices with loop()?
still a significant difference with blankclip.
Code:
BlankClip(length=1000000000)
return Last



EDIT: and with mostly loop()s
Code:
#clip=LSMashvideoSource("1941 Flint Michigan Parade [Low, 360p].mp4")
clip=BlankClip(length=3000)
clp = clip.ConvertToRGB24
a = clp.Trim(20,-30) + clp.Trim(2000,-30)

#a = a+a+a+a+a+a+a+a+a+a                            # *10
#a = a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a        # *20
#a = a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a        # *20
#a = a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a        # *20
#a = a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a        # *20, = * 1600000 ::: 1600000 * 60 = 96,000,000

a=a.loop(1600000,0,59)

return a #.info  # 96,000,000 frames ### Max possible frames = $7FFFFFFF, ~= 2,000,000,000
avs+ capped at about same time as v2.6 std had completed, and with still lots of time yet to expend.



EDIT: Avs+ a bit faster if no ConvertToRGB24 [EDIT: Avs 2.6 std takes about 2:45.00 for same script, unlike previous, quite a bit longer than avs+]
Code:
#clip=LSMashvideoSource("1941 Flint Michigan Parade [Low, 360p].mp4")
clip=BlankClip(length=3000).Killaudio
#clp = clip.ConvertToRGB24
clp=clip
a = clp.Trim(20,-30) + clp.Trim(2000,-30)

#a = a+a+a+a+a+a+a+a+a+a                            # *10
#a = a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a        # *20
#a = a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a        # *20
#a = a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a        # *20
#a = a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a        # *20, = * 1600000 ::: 1600000 * 60 = 96,000,000

a=a.loop(1600000,0,59)

return a #.info  # 96,000,000 frames ### Max possible frames = $7FFFFFFF, ~= 2,000,000,000
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 26th August 2019 at 05:06.
StainlessS is offline