Skip to content

video library not working on debian 12: "Unable to load library 'avresample'" and other error messages #221

Open
@joachimheintz

Description

@joachimheintz

i cannot use the video library at all.
this is my system (uname -a):
Linux debian12 6.1.0-12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.52-1 (2023-09-07) x86_64 GNU/Linux
and java --version reports:

openjdk 17.0.8 2023-07-18
OpenJDK Runtime Environment (build 17.0.8+7-Debian-1deb12u1)
OpenJDK 64-Bit Server VM (build 17.0.8+7-Debian-1deb12u1, mixed mode, sharing)

and this is what i did:

  1. downloaded processing 4-3 from https://github.com/processing/processing4/releases/download/processing-1293-4.3/processing-4.3-linux-x64.tgz, unpacked and ran.
  2. installed Video Library for Processing 4 via Sketch > Import Library > Manage Libraries.
  3. ran AsciiVideo from the Examples (File > Examples > Libraries > Video Library for Processing 4 > Capture > AsciiVideo)

the example does not run, reporting a link error for libavresample (and at the end an error about libsoup which i don't understand). i did some search and followed the advice in #214 to create a symlink. but this did not help.

none of the examples for the video library work. all fail with the error message below. otherwise processing works allright.

can't load library avresample (avresample|libavresample|libavresample-0) with -Djna.library.path=/home/jh/sketchbook/libraries/video/library/linux-amd64. Last error:java.lang.UnsatisfiedLinkError: Unable to load library 'avresample':
/home/jh/sketchbook/libraries/video/library/linux-amd64/libavresample.so: file too short
/home/jh/sketchbook/libraries/video/library/linux-amd64/libavresample.so: file too short
libavutil.so.56: cannot open shared object file: No such file or directory
Native library (linux-x86-64/libavresample.so) not found in resource path (/tmp/processing/AsciiVideo11439244291195431793temp:/home/jh/processing-4.3/core/library/core.jar:/home/jh/processing-4.3/core/library/gluegen-rt.jar:/home/jh/processing-4.3/core/library/jogl-all.jar:/home/jh/sketchbook/libraries/video/library/gst1-java-core-1.4.0.jar:/home/jh/sketchbook/libraries/video/library/jna.jar:/home/jh/sketchbook/libraries/video/library/video.jar)

(process:55555): libsoup-ERROR **: 18:49:04.110: libsoup3 symbols detected. Using libsoup2 and libsoup3 in the same process is not supported.
Could not run the sketch (Target VM failed to initialize).
For more information, read Help → Troubleshooting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions