box64 icon indicating copy to clipboard operation
box64 copied to clipboard

Libs errors when in game video

Open LonelyProgrammer-single opened this issue 7 months ago • 11 comments

Image

[31mBOX64][0m] Error initializing native libavutil.so.56 (last dlerror is libavutil.so.56: cannot open shared object file: No such file or directory)

[31mBOX64][0m] Error initializing native libavformat.so.58 (last dlerror is libavformat.so.58: cannot open shared object file: No such file or directory)

[31mBOX64][0m] Error initializing native libavcodec.so.58 (last dlerror is libavcodec.so.58: cannot open shared object file: No such file or directory)

I have these libraries, but newer versions. The ones that it says are stuck to Ubuntu 22.04, but I'm on 24.04. how do i fix that issue? Tried running a game and when it's movie playback time it crashes. I'm on Nintendo Switch Linux Ubuntu 24.04

LonelyProgrammer-single avatar Jun 13 '25 20:06 LonelyProgrammer-single

You are using the ffmpeg backend for playback on wine (instead of gstreamer) it seems. It needs those exact versions. Either find some aarch64 version of the libs (as they are wrapped), or grab some x86_64 build of them to emulate them.

ptitSeb avatar Jun 14 '25 05:06 ptitSeb

I tried adding aarch64 libs (like, single libs) and then it keeps asking for other libs while i add them. Could i do it more fast? Not adding lib by lib lol

Image

LonelyProgrammer-single avatar Jun 14 '25 06:06 LonelyProgrammer-single

I could try installing this? apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio

LonelyProgrammer-single avatar Jun 14 '25 06:06 LonelyProgrammer-single

As you said gstreamer

LonelyProgrammer-single avatar Jun 14 '25 06:06 LonelyProgrammer-single

I tried adding aarch64 libs (like, single libs) and then it keeps asking for other libs while i add them. Could i do it more fast? Not adding lib by lib lol

No, there is no faster way, it's one by one.

If you are using box64 built from sources, you can try to use you newer version to run the required libs by altering the source (I can guide you). If you are using pre-built stuffs, then install libs one by one (there should be like 5 libs max on ffmpeg)

ptitSeb avatar Jun 14 '25 06:06 ptitSeb

Hmm my box64 updates everyday, so is from source? So will you guide me or should i continue adding libs?

LonelyProgrammer-single avatar Jun 14 '25 06:06 LonelyProgrammer-single

By installing libs i mean i just copy them into usr/lib/aarch64-linux-gnu or smth like that and then use LD_LIBRABY_PATH

LonelyProgrammer-single avatar Jun 14 '25 06:06 LonelyProgrammer-single

Well i can install deb by ignoring dependencies tho

LonelyProgrammer-single avatar Jun 14 '25 06:06 LonelyProgrammer-single

Hmm my box64 updates everyday, so is from source? So will you guide me or should i continue adding libs?

No, what I mean is building yourself from source you change yourself. But that doesn't seems a good idea. Continue copying libs.

ptitSeb avatar Jun 14 '25 08:06 ptitSeb

Now after i did some stuff it just quits without those errors

Image

Also some info about video in this game

Image

LonelyProgrammer-single avatar Jun 14 '25 11:06 LonelyProgrammer-single

After installing mf (media foundation) it stopped crashing but it's just black screen when video is supposed to play

LonelyProgrammer-single avatar Jun 15 '25 14:06 LonelyProgrammer-single

安装 mf(媒体基础)后,它停止崩溃,但当应该播放视频时它只是黑屏

Has this problem been solved?

as14725836 avatar Aug 02 '25 02:08 as14725836