Repository navigation
Avisynth+ v3.7.7pre-r5111 test build
Pre-releaseChanges since 3.7.6 (pre 3.7.7) (r5111; 20261205)
Full details:
readme_history.txt ·
changelist
Downloads
(unlike real releases, for testing my build process, all of my outputs are provided here, but due to their sizes, the embedded VC redistributable ones are now omitted)
| File | For |
|---|---|
(no redist version now) AviSynthPlus_3.7.7pre_r5111_20261205.exe |
Windows 10 and later, x86 + x64, built with clang-cl (default) |
(no redist version now) AviSynthPlus_3.7.7pre_r5111_20261205_msvc.exe |
Windows 10 and later, x86 + x64, built with MSVC v145 |
(no redist version now) AviSynthPlus_3.7.7pre_r5111_20261205_win7.exe |
Windows 7, 8, 8.1 (and later), x86 + x64, MSVC v143 14.44 with its redistributable |
(no redist version now) AviSynthPlus_3.7.7pre_r5111_20261205_xp.exe |
Windows XP SP3 and later, x86 + x64, v141_xp, VC++ 14.27 redistributable |
AviSynthPlus_3.7.7pre_r5111_20261205_arm64.exe |
Windows on ARM64 (llvm-mingw) |
AviSynthPlus_3.7.7pre_r5111_20261205_no_vcredist.exe, _no_vcredist_msvc.exe, _no_vcredist_win7.exe, _no_vcredist_xp.exe |
the same four x86 + x64 installers without the bundled Visual C++ Redistributable, for those who keep it up to date themselves (see below) |
AviSynthPlus_3.7.7pre_r5111_20261205_macOS_10.15+_universal.pkg |
macOS installer, universal (Apple silicon: macOS 11 and later, Intel: 10.15 and later), unsigned |
AviSynthPlus_3.7.7pre_r5111_20261205_macOS_10.15+_universal-filesonly.tar.xz |
the same macOS files without installer (usr/local tree) |
AviSynthPlus_3.7.7pre_r5111_20261205-filesonly.7z |
all Windows variants as plain files, no installer |
AviSynthPlus_3.7.7pre_r5111_20261205-pdb.7z |
debug symbols (PDB) of all Windows variants |
AviSynthPlus_3.7.7pre_r5111_20261205-SHA256SUMS.txt |
checksums |
All packages, installers, PDB archives and checksums are created by a single command (from avisynth-build-win, see Full release build):
make_release.bat -ClangCL -Stages deps,build,check,docs,pack,installer
macOS packages are universal (Apple silicon and Intel Macs in one file), cross-built on Windows by the same command, and unsigned like the earlier ones: macOS asks for confirmation before installing (macOS 15 and later: System Settings, Privacy & Security, "Open Anyway"). The installer copies the files to /usr/local.
Most of the bugs were found by AddressSanitizer (ASan) and UndefinedBehaviorSanitizer (UBSan) builds, or by comparing the output of the different CPU paths, then analysed and fixed with AI tools. Some were reported by users.
TL;DR
- Expr, new JIT code generators:
- aarch64 (Linux, Windows on ARM64, macOS): NEON JIT instead of the C interpreter, for everything the x86 JIT handles; 4-9x faster for simple expressions, 12-35x for relative pixel kernels (Raspberry Pi 5). The math functions give exactly the x86 AVX2 results.
- x64 AVX-512 CPUs: AVX-512 (zmm) JIT code, 16 pixels per register and 32 vector registers: 1.6-2.3x faster than AVX2 (memory bound float: equal). Same output as the AVX2 code;
SetMaxCPU("avx2")gives the AVX2 code.
- Audio filters no longer serialize Prefetch (
MT_NICE_FILTERwith aGetAudiolock instead ofMT_SERIALIZED): ResampleAudio, Normalize, GetChannel, ConvertToMono, MergeChannels, MixAudio, EnsureVBRMP3Sync (regression of 3.7.3), SSRC, SuperEQ, TimeStretch, and ChangeFPS, WriteFile, Compare: 4-6x quicker after aPrefetch(8)video chain. SSRC, SuperEQ and TimeStretch serve a second reader (an audio visualizer under Prefetch) from a 4 second output history, without a restart. - Audio correctness: SSRC no longer leaks memory on seeking (existed since 2003); SSRC and SuperEQ give the same audio after a seek as a sequential read, SuperEQ and TimeStretch also with two readers; Loop, SelectRangeEvery and Dissolve audio follow the video for any request size (29.97 fps at 48000 Hz);
Tone()no longer depends on the request size; crashes or wrong samples with two threads reading audio (audio cache, sample type conversions) fixed. - Frame cache and Prefetch: AvsPmod bookmarks are cached again (regression of 3.7.6), stepping back after playing no longer eats memory (AviSynth#379), Prefetch follows any constant step (SelectEven, playing backward), random seeking is quicker; two filters reading one source a few frames apart (ScriptClip switching between a TDecimate and a ChangeFPS branch) are cached again (regression of 3.7.6); Subtitle and Text on 4:2:0/4:2:2 no longer copy the frame (regression of 3.7.6); a clip made while another host thread draws a frame (AvsPmod Fast Clip) gets its caches (the refresh froze for minutes).
- Non-ASCII names on a non-UTF-8 code page work again: autoload of
.avsifiles (AviSynth#462),LoadPluginfrom a folder likeC:\Videók\(regressions of 3.7.6);ScriptDir/ScriptNamewere cut on CJK and UTF-8 code pages. - Crash fixes: conversions to 32 bit float (AVX2) on narrow clips, closing a script with
Prefetch, YUVA to RGB on aarch64,LoadPlugin(""), Histogramaudiolevels, TimeStretch with 17-32 audio channels, arrays past 32767 elements, and more. - Output changes (by design): chroma mask kernels of Overlay, Layer, Subtitle and Text on subsampled formats; 32 bit float limited range levels and rounding now match ConvertBits; YUV <-> RGB to float is always calculated in float.
- Same output on every CPU: several C vs SIMD vs NEON differences and random (unset) planes fixed.
- NaN or infinite float parameters of the built-in filters are an error now.
- New:
_Rangeframe property (H.273 numbers,_ColorRangeis its alias),AudioStats,ListAutoloadedFunctions. - New: indexed assignment of array elements,
a[i] = v,d["key"] = v,a[] = v(append); readinga[i]anda = ArraySet(a, ...)no longer copy the whole array: a read or set on 10 / 100 / 1000 elements took 5-6 / 14-20 / 95-157 µs, now 0.2 µs;ArraySize(a)copies nothing,a = ArraySort(a)sorts in place. - New: UTF-8 scripts with BOM:
ImportandEvalaccept them, and their file names and texts are taken as UTF-8 withoututf8=true. See script encoding. - Plugin authors: Linux/macOS core exports only the C API now, use
AVS_PLUGIN_EXPORTwith-fvisibility=hidden; the C API loader moved from the installed headers to theFilterSDK/c_loadersamples. - macOS: universal packages again (Apple silicon + Intel, both with SIMD code), cross-built on Windows; the macOS x86_64 build on an Apple silicon Mac works again (it switched NEON on).
- Windows packages: the default build is for Windows 10 and later, Windows 7 has its own
_win7installer; the XP installer installs its VC++ redistributable now (it never did); noDevIL.dllin the system folder any more; every x86/x64 installer also comes without the bundled VC++ redistributable (_no_vcredist).
New since the previous test build (r5092)
- AvsPmod Fast Clip froze (thanks to gispos for the detailed report and the videos): a clip made on one host thread while another host thread was inside a frame request got no frame caches at all, so the refresh did not return for minutes and playback stayed slow afterwards. The per-call state is kept per thread now. Existed since 3.6.0.
- Frame cache: a cache never shrinks below the deepest slot that was ever hit, so a branch used for a few seconds keeps its source frames while another branch runs alone for minutes (ScriptClip switching TDecimate / ChangeFPS: the second branch after 60 s of the first 18-20 -> 4.5 ms per frame).
- Arrays: indexed assignment
a[i] = v,a[i, j] = v,d["key"] = v,a[] = v(append),global g[i] = v; reads, theArraySetfamily,ArraySizeandArraySortno longer copy the whole array (see the table below). More than 32767 elements: an error instead of a crash. - UTF-8 scripts with BOM:
ImportandEvalaccept them; file names and texts in them are UTF-8 withoututf8=true; autf8parameter for every core function and bundled plugin that takes a file name. Interface 14.2. - Fixes:
AviSource("x.avs")under Prefetch ("Not supported frame data transfer" withOnCPUin the opened script); TimeStretch with 17-32 audio channels crashed (SoundTouch 2.4.1);WriteFileEndignoredlocal;AddAutoloadDirkept a folder twice; macOS/Linux hosts built with libc++ can catchAvisynthErrorandNotFoundagain (missed since r5024). - Windows installers: each x86/x64 installer has a
_no_vcredisttwin without the VC++ redistributable. ImageSeq's image libraries: xz 5.8.5, libdeflate 1.27 (XP: 1.25).
New and changed features
-
Expr, x64, AVX-512 CPUs: AVX-512 (zmm) JIT code, 16 pixels per register and 32 vector registers. Same output as the AVX2 code; 1.6-2.3x faster at 1920x1080 (8 bit always, 32 bit float when not memory bound).
SetMaxCPU("avx2")gives the AVX2 code. -
Expr, aarch64 (Linux, Windows on ARM64, macOS): NEON JIT code instead of the C interpreter, for everything the x86 JIT handles (
asin,acos,atanstay in C). Same output as the C code; the math functions (exp,log,pow,sin,cos,tan,atan2,%) give exactly the x86 AVX2 results. Raspberry Pi 5, 1920x1080: 4-9x faster for simple expressions, 12-35x for relative pixel kernels.opt=1orSetMaxCPU("none")gives the C code. -
Expr: new int parameter
opt, the highest code path for tests and speed comparisons, as in MaskTools2: 0 auto (default), 1 C, 2 SSE2, 3 SSE4.1, 4 AVX (as 3), 5 AVX2, 6 AVX-512; aarch64: 1 C, any other value NEON. It replaces the debug parametersoptAvx2andoptSSE2, which are removed (naming them is an error now):optSSE2=false->opt=1,optAvx2=false->opt=3. -
SSRC, SuperEQ, TimeStretch: keep the last 4 seconds of their output and run one
GetAudioat a time (own lock,MT_NICE_FILTER: the video before them is not serialized). A reader that is behind (the host reading the audio while a filter requests it inGetFrame, e.g. an audio visualizer under Prefetch) gets the same samples without a restart: bit-identical to a sequential read (SuperEQ in that test 80.5 s -> 12.7 s; TimeStretch differed in 94% of the bytes). -
Overlay, Layer, Subtitle, Text: chroma of subsampled formats uses low-pass filter kernels instead of point samples.
top_lefton 4:2:0 (3x3), 4:2:2 and 4:4:0:[1 2 1]. 4:1:1 and 4:1:0:[1 2 3 4 3 2 1]/16(co-sited) and[1 3 5 7 7 5 3 1]/32(centred) per axis. 4:1:0left,bottom_left,DVget a new 7x8 kernel,topis centred. Mask edges are clamped. Output changes for these placements. -
Text and Subtitle: all chroma samples reached by the kernel are drawn, also those beside the chroma blocks of the text.
-
Frame properties: new
_Range, numbered by ITU-T H.273 as in VapourSynth: 1 is full, 0 is limited._ColorRangestays reserved as its older name with 0 and 1 swapped; they are one property, held by the frame as_Range, and plugins and scripts of any version reach it by both names. Key lists give_Rangeonly,propGetAllandpropShowboth. -
New ListAutoloadedFunctions(utf8): the names of the functions of the autoloaded plugins, one per line, exactly as registered.
$PluginFunctions$is one space separated string, so a canonical name<plugin file name>_<function>of a plugin whose file name has a space could not be held in it; there such spaces are now written as_. Use$Plugin!<name>!Param$for the parameters of each name. -
New AudioStats: audio levels (peak, RMS, clipped samples, loose peak), also per channel, as an array of named values at script load time.
-
AmplifydB: the dB to factor conversion is calculated in double, soAmplifydB(-peak_db)of an AudioStats value gives the exact factor. -
Frame cache sizing: a cache grows when an evicted frame is requested again, but at most 32 slots in a row unless frames come back steadily (evicted at least twice); it gives slots back when only its front is used, but never below the deepest slot that was ever hit (doom9 p=2053179: a branch used for a few seconds keeps its source frames while another branch runs alone for minutes, 18-20 -> 4.5 ms per frame). AvsPmod bookmarks (30 bookmarks on QTGMC: 138 ms per jump in 3.7.6, cached from the 3rd cycle on) and stepping back after playing (AviSynth#379: 2.4 GB and still growing, now 410 MB) are both cached; encoding is unchanged or faster. When a cache grows to keep a frame, the caches below it do not grow for it;
SetCacheMode(CACHE_OPTIMAL_SIZE)makes them not store it either (AviSynth#270, AviSynth#379). -
Prefetch: while no steady step is found (random jumps, bookmarks, seeking), no frames are prefetched, except right after a jump of at most max(4, frames) frames. Random seeking on QTGMC 40% quicker, AvsPmod bookmark cycling about 6x quicker; playing, encoding and out-of-order forward reading are unchanged.
-
Arrays: indexed assignment
a[12] = 3(same asa = ArraySet(a, 3, 12)),a[1, 2] = vanda[1][2] = v,d["key"] = v(replace or append[key, v]), mixed keys and indexess["ch", "FR", 1] = v,a[] = vanda[1][] = v(append),global a[i] = v.ArrayGetaccepts mixed integer indexes and string keys, one per level, sos["ch", "FR"]reads the same ass["ch"]["FR"]. Readinga[i]from a variable copies only the element (before: the whole array, then the element);a = ArraySet(a, ...),ArrayAdd,ArrayIns,ArrayDel,ArraySortwith the same variable on both sides change the stored array in place (before: about four whole-array copies);ArraySize(a)andArraySort(a)read the stored array (passing an array to a function copied it about five times). The results are the same as before; when a plugin or script function replaces one of these functions, or the variable comes from another scope, the original call runs. Per operation, before -> now (i7-11700, x64):operation 10 elements 100 elements 1000 elements 10000 elements read a[i]5.4 -> 0.18 µs 14 -> 0.18 µs 95 -> 0.18 µs 940 -> 0.5 µs set a[i] = v6.1 -> 0.2 µs 20 -> 0.2 µs 157 -> 0.2 µs 1600 -> below 2 µs append a[] = v(average while growing)5.3 -> 0.23 µs 13 -> 0.6 µs 80 -> 3.5 µs 880 -> 30 µs dictionary, n keys 18 -> 1.5 µs 134 -> 5.6 µs 1280 -> 51 µs ArraySize(a)4.2 -> 0.16 µs 15 -> 0.2 µs 65 -> <1 µs 720 -> <1 µs a = ArraySort(a), shuffled integers5.0 -> 0.4 µs 20 -> 4.4 µs 175 -> 63 µs 2400 -> 1350 µs 3 levels deep (100x10x10): 2.7 ms -> 0.4 µs. What remains of ArraySort is the sort itself. See Arrays.
-
UTF-8 scripts with BOM: a script file or text that starts with a UTF-8 BOM is a UTF-8 script.
Import(before: refused on Windows) andEval(before: syntax error, alsoImporton Linux/macOS) skip the BOM. In such a script an optionalbool utf8parameter that the script did not pass getstrue(Import,Exist,LoadPlugin,AviSource,WAVSource,Subtitle,Text,MessageClip..., plugins that declare one, script functions), andScriptName/ScriptFile/ScriptDirreturn the UTF-8 form. Texts evaluated from it (Eval,ScriptClip,ConditionalFilter,WriteFile...) are UTF-8 too; each imported file is decided by its own BOM. A plugin function called from it that calls another function (e.g. GRunT'sWriteFile, which replaces the core one) passes theutf8=trueon. Scripts without BOM: unchanged. UTF-16/32 files are refused with a clear message on every OS. See script encoding. -
New
utf8parameter for every core function and bundled plugin that takes a file or folder name and had none: WriteFile, WriteFileIf, WriteFileStart, WriteFileEnd, ConditionalReader, Compare (logfile), SetLogParams, SetWorkingDir, ImageWriter, ImageReader, ImageSource, ImageSourceAnim, SuperEQ (preset file), LoadVirtualdubPlugin. The name is UTF-8 (Windows);trueby default in a UTF-8 script with BOM, so e.g.WriteFile(ScriptDir() + "log.txt", ...)works there. DirectShowSource applies itsutf8to thelogfiletoo. ImageSeq: DevIL takes ANSI names only, a name outside the code page is read and written by ImageSeq and given to DevIL in memory. ConditionalReader skips a UTF-8 BOM at the start of its file. File names in the error messages of these functions are UTF-8 now.
Packages, build environment, C API loader, interface
- macOS packages: universal (arm64 + x86_64)
.pkgand.tar.xz, cross-built on Windows bymake_release.bat(variantsmacos-arm64,macos-x86_64), in the structure of the official ones. Fix: the macOS x86_64 build on an Apple silicon Mac failed (NEON was switched on from the host CPU);CMAKE_OSX_ARCHITECTURESpicks the SIMD code now. Fix: the build failed with the macOS 27.2 SDK (cache.cppwithout<cstdlib>). - Windows packages: the default x86/x64 build is for Windows 10 and later, built with clang-cl; the MSVC v145 build is the
_msvcdownload. Windows 7 has its own_win7build and installer (v143 toolset 14.44 and its redistributable); XP and ARM64 are separate packages. The whole release is built bymake_release.batin one run. - ImageSeq has DevIL and its image libraries linked in statically in every installer (ARM64 and XP included): no
DevIL.dllis installed into the system folder any more. - Fix: the XP installer never installed its Visual C++ redistributable (14.27); on a clean XP, AviSynth+ did not start (
MSVCP140.dllnot found). Existed in the 3.7.6 XP installer. - Installers without the Visual C++ Redistributable: every x86/x64 Windows installer also as
<name>_no_vcredist<suffix>.exe(the XP one: 32.8 -> 13.1 MB). Which runtime each needs and where to get it: below.make_release.bat -VcRedist both|redistonly|noredistonly(defaultboth); ARM64 and macOS are not affected. - Dependencies: SoundTouch 2.4.1 (TimeStretch); DevIL's image libraries: xz 5.8.5, libdeflate 1.27 (the XP build stays at 1.25, 1.26 and newer need C11).
make_release.batrebuilds a dependency chain when a pinned tag moves, and itsupstreamstage reports newer upstream releases. - Interface version 14.2 (
AVISYNTHPLUS_INTERFACE_BUGFIX_VERSION2), no API change: it marks UTF-8 scripts with BOM, so a host can check before it passes a BOM text toEval. C API loader: newhas_at_least_v14_2. - Interface version 14.1 (
AVISYNTHPLUS_INTERFACE_BUGFIX_VERSION1), no API change: it marks the_Range/_ColorRangealias. Loader: newhas_at_least_v14_1. - Linux/macOS: the core exports only the C API (
avs_*) andCreateScriptEnvironment/CreateScriptEnvironment2, as the Windows DLL does (about 5000 symbols before). Hidden default symbol visibility, and on ELF platforms also a linker version script generated fromavisynth_c.h. Plugins no longer get the core'sBitBlt,GetBitmapFont,DrawString*,UnQuote,AVS_linkageetc. substituted for their own copies when a host loads the core withRTLD_GLOBAL. - Linux/macOS: the type_info of
AvisynthErrorandIScriptEnvironment::NotFoundstays exported (new macroAVS_EXCEPTION_EXPORT): with libc++ (macOS, Linux clang) a host's or plugin'scatchmatches them by address, and the C-API-only export of r5024 had hidden them. Found by AVSMeter's macOS test. - New macro
AVS_PLUGIN_EXPORT(avs/capi.h) for plugin entry points:__declspec(dllexport)on Windows, default symbol visibility on POSIX, for plugins built with-fvisibility=hidden.AVSC_EXPORTof C plugins does the same. - C API loader moved from the installed headers to the
FilterSDK/c_loadersamples (source:distrib/). Copy the chosen loader andavisynth_c_loader_common.hinto your project. CMake location:share/doc/avisynth/examples/c_loader. - New C++17 loader
avisynth_c_loader.hpp(avsc::Library) with automatic reference cleanup and API helpers. The C variant targets C11; both share compatibility handling and released-version capability flags. - Loader: improved load-error diagnostics (
avs_load_library_ex/lib.error()), UTF-8 on Windows, no fixedMAX_PATHbuffer. - Loader:
avs_attach_library/lib.attach()acquires a reference to an already-loaded core. For plugins,avs_bind_plugin_library/lib.bind_plugin()binds without retaining a library reference or requiring cleanup at plugin unload. - Loader: new
has_frame_propsflag (V9+ and all V8/V9 frame property functions present; false on Win32 3.7.1, which is detected as V9, not V8). - Loader: host examples and a plugin example covering both C entry points and 64 bit values. Plugin initialization is synchronized with C11/C++ atomics.
- Loader: fallbacks for selected missing APIs on older cores, including V11 value accessors.
- Loader: on 3.7.4/3.7.5 (V11, V11.1) functions registered with the same
user_data(e.g. NULL) could get mixed up; each one is now registered with its ownuser_data. - Loader: compiles in strict ISO C mode on Linux too (
gcc -std=c11). avisynth_c.h: the variadicavs_sprintfis declared__cdecl(newAVSC_API_VARARGS,AVSC_CC_VARARGS). Same ABI and export name as before; fixes a 32 bit clang warning.- Fix: GCC build with LTO failed with "inlining failed in call to 'always_inline'" in the SSE4.1 Overlay/Layer mask row preparation (AviSynth#531).
- Fix: CMake with Ninja (or NMake) and MSVC, clang-cl or icx-cl, without
-DCMAKE_BUILD_TYPE, gave an unoptimized Debug build instead of Release; every file warned D9025 "overriding '/EHs' with '/EHa'". - Fix: MinGW/llvm-mingw builds (Windows ARM64, GCC x86/x64) had no version resource in
AviSynth.dll(File and Product version showed n/a). Since 3.4.0. - Haiku:
PROGRAMDIRinAddAutoloadDiris the program's folder (was empty). An unreadable program path gives an emptyPROGRAMDIRon any system instead of throwingstd::out_of_range.
Fixes: bugs in normal use
- A clip made on one host thread while another host thread was inside a frame request (AvsPmod editing a script while a frame was still being drawn, Fast Clip) got no frame caches at all: the frames read by its filter constructors were recalculated over and over, the refresh did not return for minutes, and playback stayed slow afterwards. Threads not started by AviSynth shared one set of per-thread counters, so the new clip counted as made from inside a frame request (like
ScriptClip). Existed since 3.6.0. - A script opened by
AviSource(AviSource("x.avs")) failed with "Not supported frame data transfer" under aPrefetchin the outer script, when the opened script hadColorBars,BlankClip,MessageClipor an explicitOnCPU. The CPU devices of the two environments are now taken as the same device. Existed since 3.6.0. - Linux/macOS/BSD:
ListAutoloadDirslisted the system plugin folder twice (and autoload scanned it twice) when anLD_LIBRARY_PATHentry was the core's install folder.AddAutoloadDirnow keeps a folder only once: added again at the end it is ignored, withtoFront=trueit is moved to the front. Existed since 3.7.4. WriteFileEndignoredlocal: it always usedlocal=true, the given value went to the internal flush setting. Existed since 3.6.0.- Prefetch made single threaded by audio filters: ResampleAudio, Normalize, GetChannel, ConvertToMono, MergeChannels, MixAudio, EnsureVBRMP3Sync (
MT_SERIALIZEDlocksGetFrametoo, regression since 3.7.3), ChangeFPS (since AviSynth+ MT), WriteFile/WriteFileIf/Start/End and Compare (since 3.6.0 / 3.4.0). NowMT_NICE_FILTERwith a lock aroundGetAudio(or the log and totals) only; output unchanged. 1280x720Prefetch(8)chains: about 4-6x quicker. Srestore (and other scripts keeping state in globals) need their frames in order: useQTGMC().Prefetch(8).Srestore(). - A script switching between two branches that read the same source a few frames apart (
ScriptClipreturningTDecimate()orChangeFPS(24000,1001)of one LWLibavVideoSource) played the second branch at a crawl: every request was a backward seek. 1080p, 2400 frames: 3.7.6 218 s, now 8.9 s (3.7.5: 10.5 s). Regression since 3.7.6. - Subtitle, Text and other in-place filters copied the whole frame on every frame (the caches in front kept one frame from the script load and never shrank). A cache that is never hit shrinks to 0 now. Regression since 3.7.6.
- SSRC leaked memory on every seek (about 1.3 MB per frame with an audio visualizer); after a seek its audio was shifted by up to one input sample; it read uninitialized memory. Existed since 2003.
- SuperEQ: after the first seek it restarted on every following request, without preroll; now bit-identical to a sequential read. Bands missing from a settings file are 0 dB. Existed since 2003.
- Loop and SelectRangeEvery audio drifted against the video when a frame is not a whole number of samples (29.97 fps at 48000 Hz), and depended on the request size;
Loop()audio was one frame longer than the video. Existed since classic AviSynth / 2.5.5. - ConditionalFilter with a shorter source1: a "false" frame past its end froze source2. DeleteFrame with a repeated number followed by a smaller one kept a frame; DeleteFrame/DuplicateFrame with a frame number outside the clip deleted/duplicated the last or first frame (now ignored).
- Prefetch locked only to step +1 from a cold start: SelectEven/SelectEvery after Prefetch, playing backward or a GUI stepping by 2 kept prefetching frames nobody asked for. Any constant step locks now (step 2: 30% quicker, step 4 and backward about 45% on QTGMC). Since AviSynth+ MT (2014).
- AvsPmod with many bookmarks (10 or more on QTGMC) recalculated every bookmark on every visit: the frame caches did not grow for them. Regression since 3.7.6.
- Near the
SetMemoryMaxlimit, a growing cache took a slot from the least recently used cache using its own size instead of the other cache's size. Since AviSynth+ MT (2014). $PluginFunctions$(read by e.g. AVSMeter) split the function names of a plugin whose DLL file name contains spaces; the space is now written as_. Since 3.7.6.- Non-ASCII file names (non-UTF-8 ANSI code pages):
.avsiautoload failed with "Import: couldn't open" (regression since 3.7.6; 3.7.5 crashed) (AviSynth#462).ScriptDir,ScriptName,ScriptFile(and$ScriptDir$etc.) andStrFromUtf8were cut short or had garbage at the end on multibyte ANSI code pages and UTF-8 mode (existed since r2487).LoadPluginand plugin autoload failed with "Cannot load file ... code 126" in a folder with non-ASCII characters, also withutf8=true(regression since 3.7.6). The DLL search directory is restored after loading.
- WriteFile, WriteFileIf, WriteFileStart, WriteFileEnd on Linux/macOS: a relative name of a not yet existing file ended up in the wrong folder with
flush=true. The name is now made absolute as on Windows; an empty, invalid or too long name is an error. - Import of a script whose full path is exactly 260 characters, or a UNC path of 260 or more, failed with "couldn't open".
- Windows ARM64 (and MinGW/GCC x86/x64): the
USER_CLASSIC_PLUGINSandMACHINE_CLASSIC_PLUGINSautoload folders were not expanded; ARM64 now reads them fromPluginDir2_5as the x86/x64 MSVC builds do. Since 3.7.4. - aarch64: crash in YUV with alpha to RGB when the bit depth changes (e.g.
ConvertToRGB32from 10-16 bit or float YUVA,ConvertToPlanarRGBA(bits=8)). Since 3.7.6. - AVX2 YUV to planar RGB (and RGB to YUV/Y) from 8-16 bit to float: memory overwrite past the end of rows on narrow clips. Since 3.7.6.
- AVX2 YUV to planar RGB (and RGB to YUV/Y) to 10-14 bit: values above 32767 were not clamped before the final clamp. Since 3.7.6.
- ConvertToYUV444/ConvertToY (and other planar RGB to YUV/Y) from float RGB to 8-16 bit: output range scaling depended on uninitialized memory. Since 3.7.6.
- 32 bit float horizontal resize (all resizers), AVX2 and AVX-512: reading past the row end could produce random NaN output pixels. Since 3.7.6.
- ConvertToXXXX with
interlaced=true, 4:2:0 or 4:1:0: heights not giving an integral number of chroma rows per field (e.g. 720x486 to 4:2:0) read outside the source frame. Now an error: height must be mod4, or mod8 with 4:1:0 (existed since AviSynth 2.6) (AviSynthPlus-UT#5). - Overlay and Layer, 32 bit float, AVX2,
left-sited mask: wrong mask samples for 4:2:2 and 4:2:0. Since 3.7.6. - Text and Subtitle(gdi=false) on 4:1:0: misplaced chroma if
ywas not divisible by 4. Since 3.7.6. - Layer(op="Subtract") with YUVA: the blend weight is the original overlay alpha, not the inverted one. Regression since 3.7.6 (r4589).
- ConvertToYUY2 from sources with alpha (planar RGBA, YUVA, YA) gave "ConvertYV16ToYUY2: Only YV16 is allowed as input"; alpha is now dropped (AviSynth#529).
- AddAlphaPlane refused greyscale clips; it now gives YA. RemoveAlphaPlane turns YA back into Y (AviSynth#530).
- Crash at closing a script using
Prefetchwhen its clip is also held in a script variable: worker threads could still run while script functions and filter buffers were freed. - Histogram:
color2, 10-16 bit limited range,bitsbelow the clip bit depth: U or V at the top of the range was plotted outside the panel. Since 3.7.6.levels, 32 bit float, limited range: luma bars were 16 levels too high and levels above 239 piled up in the last bar. Since 3.7.1.levelson Y+Alpha clips gave an error, now works as on greyscale.
- Subtitle (
gdi=true), 10-16 bit, also RGB: overflow on a bright background; at 16 bit white text edges on white wrapped around to dark pixels. - Expr, YA clips: a single expression string was also applied to the alpha plane; alpha is now copied.
- Expr:
x._ColorRangeon a clip without this property read as 0 (full), also on YUV. Now it is the format default (RGB 0, others 1). The same forx._Rangewith its own numbers.
Fixes: accuracy, rounding, limited range levels
Output changes by a rounding step; the values now match ConvertBits and the other paths.
- Tweak: integer results are rounded on all paths.
realcalc=true, chroma at 12-16 bit and chroma from the lookup table withoutdithertruncated; output changes by up to 1. - Tweak, 32 bit float:
ditherwas not centred (luma about half an 8 bit step too bright);coringlimits andbrightused a 256 scale (white 235 became 234.08) (AviSynthPlus-UT#53). - Expr
cmin,scale_inputs="floatUV", 8-16 bit: half a step too high (17 instead of 16 at 8 bit). Since 3.5.0. - Histogram
classic, 32 bit float, limited range,bitsabove 8: bars were not at the same position as at integer bit depths. - Histogram
"audiolevels": RMS calculated from a mean square rounded down to an integer (-96 dB instead of -92.5 dB near silence); dB values use theAmplifydBformula; full scale shows0.00dBinstead of-0.00dB. - Subtitle (
gdi=true), 10-16 bit YUV: levels were level * 257 instead of a limited range shift (white Y 60393 instead of 60160 at 16 bit). 32 bit float: chroma off by half an 8 bit step, white in RGB is now 1.0. - Limiter, Levels, MaskHS, Expr
ymax,cmin,cmax, 32 bit float: limits differed from ConvertBits by a rounding step (e.g.Limiter(show="chroma")marked 16 or 240 as out of range). - YToUV without
clipY, 32 bit float: grey Y plane was 126/256, now 126/255. Since r2487. - Planar YUV <-> RGB conversions to 32 bit float from 8-16 bit are always calculated in float (same as
quality=true): limited range white gives exactly 1.0,quality=falseandtruegive the same float output. Not slower. - 16 bit planar RGB to YUV/Y with 32 bit float output: limited range RGB to full range output wrapped around above nominal white.
Fixes: same output on every CPU, OS and compiler
Tone()(Sine, Square, Triangle, Sawtooth): the samples depended on how the audio was requested (one long request vs smaller ones, or a seek). The phase is now computed from the absolute sample position. Since 2.5.4.- Expr
powwith a negative base, x86 JIT: gave 2.4e38 for powers other than constant 2, 3, 4. Now IEEE 754 like the C paths (-2 ^ 3is -8, fractional power is NaN);0 ^ 0.25is 0. - Expr
sqrtof a negative number is 0 on all paths (was NaN outside the x86 JIT). - Limiter with min > max (degenerate, outside the documented range): the x86 SIMD paths now go to C as well, matching the C and NEON results.
- Planes left unset (random content from reused frame buffers) are now defined:
- Expr: an empty expression plane, or alpha without expression, when
formatchanges the bit depth (converted as in ConvertBits). UToY,VToY, Histogramclassic/levels/colorand YToUV with YUVAclipUand noclipY: alpha is opaque. Histogramcolor2alpha is opaque (was 0 in 3.7.6).
- Expr: an empty expression plane, or alpha without expression, when
- Format()/propShow shortest number form gave one superfluous digit for a few powers of two (e.g. 2^-24). Since 3.7.6.
- Planar YUV <-> RGB float C path computes in the same order as SSE2.
Fixes: crash or hang on unusual parameters or input
- TimeStretch with 17-32 audio channels crashed the host (any
tempo,rateorpitch, unlessaa=0): SoundTouch's anti-alias filter wrote past a stack buffer of 16 channels. Fixed upstream in SoundTouch 2.4.1, which the release builds use now. More than 32 channels (the SoundTouch limit): a clear error at the start. Existed since 3.7.4. ArrayAdd,ArrayInsandArraySetwith a new dictionary key past 32767 elements stored a negative array size (the size is a 16 bit number): crash at the next use. Now an error: "the array size limit (32767) is reached". Existed since 3.6.0.- Two threads reading audio (e.g. an audio visualizer under Prefetch and the host): the audio cache (since 3.7.3) and
ConvertAudioToFloatand the other sample type conversions (since AviSynth+ MT) crashed or gave wrong samples. - SSRC: a request of more than 2^31 samples overflowed; after an error in the source audio it restarts cleanly.
ChangeFPS(0)crashed (division by zero), now an error.- Expr, C path (aarch64 before the NEON JIT,
opt=1,asin/acos/atan):powwith exponent 3 at the deepest point of an expression wrote past the evaluation stack. Since r2542. LoadPlugin("")andLoadCPlugin("")terminated the host (uncaughtstd::filesystemexception); now the usual "Cannot load file" error. Regression since 3.7.6.- SegmentedAVISource, SegmentedDirectShowSource: a file name without extension crashed the host; a name longer than 259 characters overflowed a stack buffer;
utf8=truedid not find non-ASCII names. - Video for Windows script open (e.g. VirtualDub): a path whose ANSI form is longer than 259 bytes read past a buffer.
PROGRAMDIRinAddAutoloadDir: long paths cut without terminating zero; POSIX current folder restore usedFILENAME_MAXinstead ofPATH_MAX.- AviSynth 2.5 plugins and C plugins before interface V11:
GetVar,GetVarDef(C:avs_get_var,avs_get_var_try) returned 64 bitlong/doubleunknown to them; nowintandfloat, array elements as well. Since 3.7.4. - Animate
user_fn: a function which cannot be called withstagecrashed the host (alsoOnCPU,OnCUDA). A non-number, NaN or infinite result is an error. The custom function is not called for the start and end frames, and results are no longer clamped to start..end. - Animate: linear integer interpolation is exact (could be one off); frame ranges longer than 2^31 no longer overflow. ApplyRange/Animate without extra arguments: debug assertion.
- RGBAdjust, ColorYUV
analyze=true: stack buffer overflow on huge or NaN-only pixel values; RGBAdjust planar RGB float: crash on NaN pixels. - ShowFrameNumber, ShowCRC32: division by zero with
scroll=truewhensizeis larger than the clip height;sizeof 0 or below, NaN or too large never finished, now an error (1..1000000). - YToUV accepted clips that do not fit the output frame and wrote past the plane rows; now errors. RGB32/RGB64 as
clipAgive their alpha plane (AviSynthPlus-UT#8). - 8 and 16 bit horizontal resize, AVX-512: some kernels could read up to ~120 bytes past the source buffer on the last row. Since 3.7.6.
- Histogram
"audiolevels": stack overflow with low frame rate, high sample rate or many channels (above about 1 MB audio per frame). Since classic AviSynth.
Fixes: undefined behaviour, NaN or degenerate parameters
- Dissolve with overlap 0: the last audio sample of the first clip came from the second clip. ResampleAudio: overlapping
memcpy(nowmemmove), output unchanged. AudioSamplesFromFrames(Trim, AudioDub, BlankClip, AssumeFPS and others) andFramesFromAudioSamples(e.g. Trim, Histogram): 64 bit overflow on degenerate frame rates (e.g. 192 kHz with a denominator of about 2^30 after about 46 000 frames). The result is now exact, saturated when it does not fit. The C API helpersavs_audio_samples_from_framesandavs_frames_from_audio_samplesinavisynth_c.hhad the same overflow (inline: plugins get the fix when rebuilt). Since classic AviSynth.- Float parameters of built-in filters that are NaN or infinite give an error when the filter uses them. This includes resizers, Bob,
param1..3ofConvertTo..., AddBorders, LetterBox, and (NaN) Tweak, MaskHS, Histogramfactor, AddAlphaPlane, ShowSMPTEfps. Too largesrc_left,src_top,src_width,src_heightfor the resizer are errors too. - Normalize: silent track left as is (was infinite factor/NaN/undefined); 16 bit peak search stopped at the first 32767, missing a later -32768.
Optimizations
- Subtitle (
gdi=true) on subsampled formats and YUY2: the chroma mask rows are prepared once per rendered text. Three Subtitles on 1080p YV12: 0.44 -> 0.29 ms per frame. - Near the
SetMemoryMaxlimit, a frame buffer released by shrinking the caches is reused before the unused buffers are freed (was: a free + new allocation for every frame). - Autoload:
$PluginFunctions$is published once at the end instead of after each function (1332 names: 26 MB and 0.04 s, now 1 MB and 0.005 s). - Text and Subtitle(gdi=false): luma loops skip empty bitmap bytes, chroma visits only set bits. About 20-35% quicker.
- x86 SSE2 (no SSE4.1): cheaper emulation of unsigned 16 bit min/max (Limiter, Blur/Sharpen, 10-14 bit resizers); fewer instructions in the MSVC SSE2 C resizer pack + clamp.
- Planar YUV <-> RGB C path (aarch64, no SIMD): int32 exact 16 bit calculation, vectorized by GCC and Clang. Output unchanged.
Documentation
- New: Script encoding (UTF-8 with BOM) in the syntax page: what a BOM script changes, before/after tables, notes for hosts and plugin authors. Updated for it: Import, Eval, ScriptName/ScriptFile/ScriptDir (the
Utf8variants are documented now), API V14.2 and the C API loader, WriteFile (utf8, andlocal, documented now), ConditionalReader, Compare, SetLogParams, ImageWriter, ImageSource, SuperEQ, DirectShowSource. - Arrays: indexed assignment, what is copied, measured speed, how the in-place paths fall back.
LoadVFAPIPlugin(VFAPI/TMPGEnc import plugins, e.g. QTReader) is marked as removed everywhere: it is not part of AviSynth+.- New: Full release build (make_release.bat), Windows and macOS.
- New: Cross-compiling for macOS on Windows: the SDK, the toolchain, universal binaries, the
.pkg, and a short history of Macs, their CPUs and AviSynth+. UserDefined2Resize: link to the external tool SincDownsizeCoeffs by DTL, which computesb,candsfrom the downsize ratio and the overshoot of the source.
Installers without the Visual C++ Redistributable
For users who keep the Microsoft Visual C++ Redistributable up to date themselves. Same files as the
installers of the same name without _no_vcredist. Install the runtime first, both x86 and x64 on 64-bit
Windows (the installer installs the 32 and the 64-bit AviSynth+), otherwise AviSynth+ does not load.
| Installer | Windows | Visual C++ Redistributable |
|---|---|---|
AviSynthPlus_3.7.7pre_r5111_20261205_no_vcredist.exe |
Windows 10 and 11 | the latest: x86, x64 |
AviSynthPlus_3.7.7pre_r5111_20261205_no_vcredist_msvc.exe |
Windows 10 and 11 | the latest: x86, x64 |
AviSynthPlus_3.7.7pre_r5111_20261205_no_vcredist_win7.exe |
Windows 7 SP1, 8, 8.1 | 14.44, the last one for Windows 7 (needs KB2999226 on Windows 7): x86, x64 |
AviSynthPlus_3.7.7pre_r5111_20261205_no_vcredist_xp.exe |
Windows XP SP3, Vista | 14.28.29213 (14.27 or 14.28: a newer one does not run on XP): x86, x64 |