Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gstreamer shared libraries not found; Ubuntu #213

Open
dizzy321 opened this issue Jan 12, 2023 · 2 comments
Open

Gstreamer shared libraries not found; Ubuntu #213

dizzy321 opened this issue Jan 12, 2023 · 2 comments

Comments

@dizzy321
Copy link

Hello,
I have the same recurring problem on my old laptop and newly built computer.
I tried different distros, all ubuntu based, the newest normal, studio and mate.
I tried the code example from here

https://processing.org/reference/libraries/video/Movie.html

replacing the file name with a test video which is in the sketchbook folder of my processing file.
the video library for processing 4 is installed.
the processing console tells me

can't load library mp3lame with -Djna.library.path= ~ /sketchbook/libraries/video/library/linux-amd64. Last error:java.lang.UnsatisfiedLinkError: Unable to load library 'mp3lame':
~ /sketchbook/libraries/video/library/linux-amd64/libmp3lame.so: file too short
Native library (linux-x86-64/libmp3lame.so) not found in resource path

and the same for

libnice
libopenh264

Further down I get

(Processing core video:8190): GStreamer-WARNING **: 17:29:36.473: Failed to load plugin ' ~ /sketchbook/libraries/video/library/linux-amd64/gstreamer-1.0/libgstopenjpeg.so': libopenjp2.so.2: cannot open shared object file: No such file or directory

and the same for

libgstaes.so': libcrypto.so.1.1
libgstdtls.so': libcrypto.so.1.1

then this

0:00:00.551363611 �[31m 8190�[00m 0x7fd080e95d50 �[31;01mERROR �[00m �[00m openh264dec gstopenh264dec.cpp:461:openh264dec_element_init:�[00m Incorrect library version loaded, expecting OpenH264 version:2.1.1.2005
0:00:00.551375126 �[31m 8190�[00m 0x7fd080e95d50 �[31;01mERROR �[00m �[00m openh264enc gstopenh264enc.cpp:1067:openh264enc_element_init:�[00m Incorrect library version loaded, expecting OpenH264 version:2.1.1.2005

I can see all these files in the folder of the video library AND in the root library folder. I have checked if the libraries are installed correctly and up to date through the terminal and synaptic and reinstalled them.
As mentioned I have this issue independent of the computer and distro.

My guess is Processing gets confused, because Ubuntu seems to come with the Gstreamer Libraries already installed.
I have no clue what is happening, I couldn't find anything on the web, but my computational knowledge is very limited.

I am new to github, so if my formatting is confusing I apologize.
Any help or idea would be much appreciated,
thank you!
best regards

@codeanticode
Copy link
Member

codeanticode commented Jan 16, 2023

@dizzy321 you could try removing the Gstreamer libraries that come bundled with the video library, this should forces it to use default GStreamer libs installed in Ubuntu.

@dizzy321
Copy link
Author

hi sorry for not answering. i needed to get away from it for a while. i tried that, but it does not work. the error message changes but it still has a gstreamer issue. i switched to praxislive and there everything regarding video seems to be working. which is confusing to me because it also uses the gstreamer and processing.core as far as I can tell.
would building the video library from source make a difference?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants