1

Topic: [Info] Avisynth under wine (on Debian based systems)

Since this might be interesting for others here's a quick-start to setup avisynth with wine on Debian based systems:

  1. if your system is Ubuntu base, add the ppa of the wine team
    sudo add-apt-repository ppa:ubuntu-wine/ppa
    sudo apt-get update

  2. install wine and 7zip

  3. sudo apt-get install wine p7zip-full

  4. create wine base configuration
    winecfg
    close the window that opened

  5. download and extract all the avisynth related tools (avsViewer, avsInfo, avs2yuv) and a bunch of avisynth dlls

    • make temp folder
      mkdir avisynth

    • change directory

    • cd avisynth

    • download the most of the tools
      wget PATH_TO_LATEST_AVISYNTH-EXTENSION_FROM_DOWNLOAD_PAGE

    • extract the tools
      p7zip -d avisynthExtension.7z

    • change directory

    • cd avisynthPlugins

    • download avs2yuv
      wget http://akuvian.org/src/avisynth/avs2yuv/avs2yuv.exe

  6. move the tools into the wine environment
    mv * ~/.wine/drive_c/windows/system32/ on 32bit systems
    and
    mv * ~/.wine/drive_c/windows/syswow64/ on 64bit systems

  7. change directory
    cd ..

  8. delete empty folder
    rm -rf avisynthPlugins/

  9. move the tools into the wine environment
    mv * ~/.wine/drive_c/windows/system32/ on 32bit systems
    and
    mv * ~/.wine/drive_c/windows/syswow64/ on 64bit systems

  10. change directory
    cd ..

  11. delete empty folder
    rm -rf avisynth

-> Setting up the base-enviroment and avisynth is finished now. big_smile

Now we create a basic test script:

echo "version()" > ~/Desktop/test.avs

preview it:

wine avsViewer ~/Desktop/test.avs

and encode it using x264 (assuming it is installed)

wine avs2yuv ~/Desktop/test.avs -o - | x264 --crf 18 --demuxer y4m --fps 25 --output ~/Desktop/test.264 -

Cu Selur