I improved the AppendSegment function to optionally resize, if you specify width > 0
Language: avisynth
# Multisegment AVI import
function AppendSegment(
\ string base,
\ int first_val,
\ int last_val,
\ string format,
\ int wide,
\ int high
\){
AviSegment = base + string(first_val, format) + ".avi"
result = wide > 0 \
? AviSource(AviSegment).LanczosResize(wide,high) \
: AviSource(AviSegment)
return (first_val < last_val) \
? result + AppendSegment(base,first_val+1,last_val,format,wide,high) \
: result
}
Examples:
Language: avisynth
AppendSegment("hd_", 0, 5, "%01.0f", 0, 0) # no resizing
AppendSegment("hd_", 0, 5, "%01.0f", 320, 240) # resizing
I also updated the avisynth highlighter to work with /* */ comments properly.
https://sourceforge.net/projects/feos-tas/files/userDefineLang.xml/download