Log in

View Full Version : Using Avisynth on Linux


MysteryX
15th May 2022, 05:34
There has been a lot of progress in adding Linux support to Avisynth. Most of the plugins are in the AUR, making it easy to install on Arch-based systems.

Now... is there any editor available at all???

I guess someone would have to fork avspmod to add Linux support.

For playback, I can use MPV or ffplay... except 2 tiny tiny problems. Using Avisynth+ 3.7.2-1

Using the script

ColorBars()

1) No video output, window stays blank. Not the most graceful termination either when I close the window. It remains blank in MPV too.

Input #0, avisynth, from 'Test.avs':KB vq= 0KB sq= 0B f=0/0
Duration: 01:00:00.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 640x480, 29.97 fps, 29.97 tbr, 29.97 tbn
Stream #0:1: Audio: pcm_f32le, 48000 Hz, 2 channels, flt, 3072 kb/s
fish: Job 1, 'ffplay Test.avs' terminated by signal SIGSEGV (Address boundary error)

ColorBars("")

2) No error message. This just crashes with no video playback whatsoever.

[avisynth @ 0x7f5108000c80] Cannot load file '/usr/lib/avisynth/libimageseq.so'. Reason: libIL.so.1: cannot open shared object file: No such file or directory
(Test.avs, line 1)
Test.avs: Unknown error occurred

I guess Avisynth support for Linux isn't quite ready?

real.finder
15th May 2022, 11:12
Now... is there any editor available at all???

I guess someone would have to fork avspmod to add Linux support.
see here https://forum.doom9.org/showthread.php?p=1932680#post1932680

qyot27
15th May 2022, 11:58
Using the script

ColorBars()

1) No video output, window stays blank. Not the most graceful termination either when I close the window. It remains blank in MPV too.

Input #0, avisynth, from 'Test.avs':KB vq= 0KB sq= 0B f=0/0
Duration: 01:00:00.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 640x480, 29.97 fps, 29.97 tbr, 29.97 tbn
Stream #0:1: Audio: pcm_f32le, 48000 Hz, 2 channels, flt, 3072 kb/s
fish: Job 1, 'ffplay Test.avs' terminated by signal SIGSEGV (Address boundary error)
This happens in Windows too. It's just the alpha channel. RemoveAlphaPlane(), converting to a non-alpha format, or dialing up the transparency of the alpha layer reveals the content underneath. That's purely a libavformat/codec/util thing.

ColorBars("")

2) No error message. This just crashes with no video playback whatsoever.
Throws an error here on Ubuntu 22.04:
[avisynth @ 0x563ff1148700] Script error: Invalid arguments to function 'ColorBars'.
(test.avs, line 1)
test.avs: Unknown error occurred

The effect of which would also occur on Windows, I'm sure.

[avisynth @ 0x7f5108000c80] Cannot load file '/usr/lib/avisynth/libimageseq.so'. Reason: libIL.so.1: cannot open shared object file: No such file or directory
(Test.avs, line 1)
Test.avs: Unknown error occurred
Arch has DevIL marked as optional (https://archlinux.org/packages/community/x86_64/avisynthplus/) (which it is when building AviSynth+, where lacking it will skip building ImageSeq, but using ImageSeq requires it to be present). Because it's marked as optional, IIRC it won't automatically install it when installing the avisynthplus package. So just install devil.

MysteryX
15th May 2022, 16:56
By installing Devil, and using RemoveAlphaPlane, it now displays, and ffplay shows error messages.

MPV still crashes instead of showing errors.

In terms of editors... still nothing then? So I'm limited to Kate and ffplay?

btw I thought Avisynth plugins were in the AUR, but looking again, they aren't.