Skip to content

ffmpeg segfaults with avisynthplus (.avs) input

Description:

ffmpeg segfaults after encoding when the input is an AvisynthPlus (.avs) file. The output is created without issue, but ffmpeg throws a segfault.

Additional info:

A patch is available and used in the aur package ffmpeg-full. This patch fixes the issue on my system.

https://aur.archlinux.org/cgit/aur.git/plain/050-ffmpeg-fix-segfault-with-avisynthplus.patch?h=ffmpeg-full

Please consider integrating this patch in the archlinux ffmpeg package.

The upstream bugreport has not been touched since 2022. https://trac.ffmpeg.org/ticket/9832

Steps to reproduce:

  1. Install avisynthplus

  2. Create a minimal Avisynth script input.avs containing the following:

    Version()

  3. Try to open it with ffmpeg:

    ffmpeg -i input.avs -f null -

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information