Av1an icon indicating copy to clipboard operation
Av1an copied to clipboard

Latest av1an.exe not compatible with ffmpeg6.0?

Open Equadex opened this issue 1 year ago • 8 comments

Starting av1an.exe leads to error loading avcodec-59.dll, avdevice-59.dll, avformat-59.dll, avutil-57.dll. All of these depencies are installed but with a version number incremented by one. I have ffmpeg 6.0 installed. Why is the binary asking for old version of libraries associated with ffmpeg?

Equadex avatar May 06 '23 00:05 Equadex

ffmpeg libraries are versioned based on their API compatibility -- substituting a higher or lower numbered one will probably cause a crash or corruption. It's some work to modify and validate for whatever changes, plus updating too quickly risks cutting off people who don't have the latest in their package manager yet. Please don't just throw random files in because they're "newer." You can have as many different ffmpeg versions installed as you like, to maintain compatibility with software packages (in fact, ffmpeg usually updates their older ones even after releasing new ones).

silverbacknet avatar May 06 '23 04:05 silverbacknet

I compile my ffmpeg shared weekly. The only file I have needed to add is avdevice-59.dll Otherwise running av1an just fails silently with no errors shown. Sounds like your ffmpeg has a mix and match of 5 and 6

menditsa avatar May 06 '23 09:05 menditsa

I've compiled ffmpeg n6.0 with mingw-w64-gcc. Compiling ffmpeg release/6.0 branch on my linux systems gives the same libraries. It seems possible to solve the problem by installing the libraries from ffmpeg 5 side by side but I don't see why this should be neccessary.

The documention states ffmpeg is required and commit message 0a3ffda suggest the application was updated to support ffmpeg 6.0. Is it possible to do a custom build targeting a newer version of ffmpeg libraries? How is the application integrated with ffmpeg?

Equadex avatar May 06 '23 15:05 Equadex

It is possible to build av1an targeting ffmpeg 6.0. It is not well documented, but you might want to set the environment variable FFMPEG_DIR to the directory where you have FFmpeg installed, especially if you have more than one ffmpeg version.

FreezyLemon avatar Aug 18 '23 12:08 FreezyLemon

Will there be a move to natively support v6? Only it has the latest versions of all the AV1 encoders on-board that I also need for other applications.

DesertCookie avatar Nov 16 '23 10:11 DesertCookie

Me, too. I have ffmpeg-5.0.1-full_build-shared installed, but starting av1an.exe leads to error loading avdevice-61.dll, avformat-61.dll, avcodec-61.dll, avutil-59.dll.

Windows Installation (Portable), I followed the instructions on the webpage to add the contents of the zip file to the Python 3.12 path and install the .whl file, move the VapourSynth.dll file to the ffmpeg bin directory.

explorer_HTlHFjOxFA

allrobot avatar Jun 21 '24 05:06 allrobot

Me, too. I have ffmpeg-5.0.1-full_build-shared installed, but starting av1an.exe leads to error loading avdevice-61.dll, avformat-61.dll, avcodec-61.dll, avutil-59.dll.

Windows Installation (Portable), I followed the instructions on the webpage to add the contents of the zip file to the Python 3.12 path and install the .whl file, move the VapourSynth.dll file to the ffmpeg bin directory.

you need ffmpeg 7

Uranite avatar Jun 21 '24 06:06 Uranite

you need ffmpeg 7

Thank you. It solved.

https://master-of-zen.github.io/Av1an/compiling.html#compiling-on-windows

The document needs to be updated; outdated content may mislead people.

allrobot avatar Jun 21 '24 06:06 allrobot