例えば、こんな感じとか?
#include "hspcv.as"
title "サンプルのgsquare.hspの元に動画を出力"
randomize
buffer 3
picload dir_exe+"\\docs\\hsp3ttl.jpg"
dialog "avi",17,"AVIファイル"
if stat=0:end
cvbuffer 0,640,480
cvmakeavi refstr,-1,15,0
screen 0,640,480,0
gmode 0,640,200
tx.0=0:ty.0=0
tx.1=640:ty.1=0
tx.2=640:ty.2=200
tx.3=0:ty.3=200
repeat 15*10
redraw 0
color 64,64,64:boxf
n = cnt&127:if n>=64 : n=63-(n-64)
x.0=n+100
y.0=n/2+150
x.1=540-n
y.1=n/2+150
x.2=n+540
y.2=330-(n/2)
x.3=100-n
y.3=330-(n/2)
; color 255,0,0:gsquare -1,x,y
gsquare 3,x,y,tx,ty
redraw 1
cvputimg 0
cvputavi
await 12
loop
cvendavi
dialog "終了しました。プレイヤーを起動して確認します。"
exec refstr,16
stop