I have a program that uses video content, where I am trying to load a dozen or so videos on screen at the same time so the user can click which one to load full screen.
Imagine scrolling though thumbnails of videos and clicking with the mouse to pick the one you want.
The Problem: Damn this is super slow even for small files. Is there a faster way to load AVI?
(There's a Dark Video addon for DBP, dunno if it's faster, but damn 50$ for just that addon wow)
Here's a snippet showing some of the commands I'm using. It is not the entire program.
Function Video_Play(video_ID$, isLoop)
`Build video file path name
vidfile$ = Episode$ + "\video\" + video_ID$ + ".avi"
`Check if video file exists
If File Exist(vidfile$)
`Load new animation and register as loaded if not already loaded.
If (video_ID$ <> Vid_LoadedID$) or Animation Exist(1) = 0
LOAD ANIMATION vidfile$,1
Vid_LoadedID$ = video_ID$
EndIf
`Loop or play the video
If isLoop = 0 then PLAY ANIMATION 1, 0, 450, 100, 1470, 780
If isLoop = 1 then LOOP ANIMATION 1, 0, 450, 100, 1470, 780
Else
If Animation Exist(1) = 1 and video_ID$ <> "same"
Delete Animation 1
Vid_LoadedID$ = ""
EndIf
EndIf
Video_TimerReset()
EndFunction