1
submitted 1 year ago by gianni@lemmy.ml to c/av1@lemmy.ml

some of this information may be out of date

Guide to compiling Av1an on Windows.

Download vapoursynth r57 portable from https://github.com/vapoursynth/vapoursynth/releases it's a 7z file so you should have 7-zip installed

Get Msys2 from https://www.msys2.org/, click on "download the installer" & install it with everything

Close msys2

Open msys2 mingw x64

Commands

  • pacman -Syuu

this updates msys2 packages, write Y when needed and press enter, it will close the window when it finishes so open msys mingw x64 again

  • pacman -S cmake git nasm python3 mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake base-devel mingw-w64-x86_64-ffmpeg mingw-w64-x86_64-rust mingw-w64-x86_64-lld mingw-w64-x86_64-clang mingw-w64-x86_64-make

this will install necessary stuff

Open VapourSynth32-Portable-R57.7z and copy all the libraries from \sdk\lib64 to C:\msys64\mingw64\lib

this downloads the Av1an source

  • cd av1an

this will take the shell to the Av1an folder

This is optional but if you want a bit more of performance,(i'm talking a small bit) go in explorer to C:\msys64\home"your username"\Av1an and open Cargo.toml and edit it with your text editor of choice, i used notepad++ and in the [profile.release] section change lto = "thin" to lto = "fat", i also added opt-level = 3 but that may not be necessary

  • RUSTFLAGS="-C target-cpu=native" cargo build --release

#this compiles it with march native which gives a bit of performance

Profit, the executable should be created in C:\msys64\home"your username"\Av1an\target\release

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here
this post was submitted on 22 Jun 2023
1 points (100.0% liked)

AV1 Community

135 readers
5 users here now

All things relating to the AV1 video codec.

founded 1 year ago
MODERATORS