From Avisynth wiki
Jump to: navigation, search
Author Myrsloik
Version test6
Download BestAudioSource-test7.7z
Category Source filters
License Open source
Discussion Doom9 Thread



A new sample accurate but somewhat slow FFmpeg based audio source filter for AviSynth+. No indexing required and only available in 64-bit.


Syntax and Parameters

BestAudioSource (string "source", int "track", int "adjustdelay", bool "exactsamples", string "varprefix")

string  source =
Path to audio file. Path can be omitted if the script is in the same folder as the audio file.

int  track = -1
Positive track numbers refer to the FFmpeg given stream number. Negative numbers refer to the nth audio track with -1 being the first.

int  adjustdelay = -1
Delay adjustment; not yet implemented.

bool  exactsamples = false
Set to true if you want opening files to be really slow but for some reason need a completely sample exact length.

string  varprefix = ""
Works the same as FFMS2.


BestAudioSource("blah.mp4", track=-1, adjustdelay=-1, exactsamples=false, varprefix="")


Version        Date            Changes
test7 2020/08/02 - VapourSynth: update for V4 api again; fixed all known bugs and should be fairly stable test6 2020/06/23 - Fixes clips with more than 2^31 samples in VS and adds 24 bit output to AviSynth. test5 2020/06/13 - Properly export the number of bits per sample test4 2020/06/09 - Update for latest audio api revision test3 2020/01/26 - Fixes the channel mask variable that was previously almost always wrong in AviSynth. - Also add VapourSynth support. test2 2020/01/08 - Fixed output and new parameter "exactsamples" test1 2020/01/07 - Initial release

Archived Downloads

Version Download Mirror
test7 BestAudioSource-test7.7z
test6 BestAudioSource-test6.7z
test5 BestAudioSource-test5.7z
test4 bestaudiosource-test4.7z
test3 bestaudiosource-test3.7z bestaudiosource-test3.7z

External Links

  • GitHub - Source code repository.

Back to External Filters

Personal tools