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

[ffmpeg]: Any plan to support alpine(musl libc)? #1306

Closed
yjqg6666 opened this issue Jan 8, 2023 · 3 comments
Closed

[ffmpeg]: Any plan to support alpine(musl libc)? #1306

yjqg6666 opened this issue Jan 8, 2023 · 3 comments

Comments

@yjqg6666
Copy link

yjqg6666 commented Jan 8, 2023

state the issue

Is there any plan to support org.bytedeco:ffmpeg on alpine? I have searched on the issues and haven't found any related one.

I have verified using the latest alpine(3.17.0) and ffmpeg jar.

how to produce the issue

$ docker pull alpine:3.17.0
$ docker run -it --rm --user 0  alpine:3.17.0
$ apk update && apk add ffmpeg openjdk11-jdk
$ mkdir /tmp/jar && wget https://repo1.maven.org/maven2/org/bytedeco/ffmpeg/5.1.2-1.5.8/ffmpeg-5.1.2-1.5.8-linux-x86_64.jar
$ jar xvf ffmpeg-5.1.2-1.5.8-linux-x86_64.jar
$cd org/bytedeco/ffmpeg/linux-x86_64/
$ chmod +x ffmpeg
$ ./ffmpeg

And ffmpeg got the error "/bin/sh: ./ffmpeg: not found".

$ ldd ./ffmpeg
   /lib64/ld-linux-x86-64.so.2 (0x7f4bd60f3000)
   libavdevice.so.59 => .//libavdevice.so.59 (0x7f4bd60dc000)
   libavfilter.so.8 => .//libavfilter.so.8 (0x7f4bd5a00000)
   libavformat.so.59 => .//libavformat.so.59 (0x7f4bd5000000)
   libavcodec.so.59 => .//libavcodec.so.59 (0x7f4bd3600000)
   libswresample.so.4 => .//libswresample.so.4 (0x7f4bd60bc000)
   libswscale.so.6 => .//libswscale.so.6 (0x7f4bd601c000)
   libavutil.so.57 => .//libavutil.so.57 (0x7f4bd3407000)
   libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f4bd60f3000)
   libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f4bd60f3000)
   libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f4bd60f3000)
   libxcb.so.1 => /usr/lib/libxcb.so.1 (0x7f4bd5ff6000)
   libxcb-shm.so.0 => /usr/lib/libxcb-shm.so.0 (0x7f4bd5ff1000)
   libxcb-shape.so.0 => /usr/lib/libxcb-shape.so.0 (0x7f4bd5fec000)
   libxcb-xfixes.so.0 => /usr/lib/libxcb-xfixes.so.0 (0x7f4bd5fe3000)
   libasound.so.2 => /usr/lib/libasound.so.2 (0x7f4bd4f14000)
   libva.so.1 => .//libva.so.1 (0x7f4bd3000000)
   libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f4bd2c00000)
   libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7f4bd60f3000)
   libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7f4bd5fc5000)
   libva-drm.so.1 => .//libva-drm.so.1 (0x7f4bd2800000)
   libXau.so.6 => /usr/lib/libXau.so.6 (0x7f4bd5fc0000)
   libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x7f4bd5fb8000)
   libdrm.so.2 => .//libdrm.so.2 (0x7f4bd2400000)
   libbsd.so.0 => /usr/lib/libbsd.so.0 (0x7f4bd5fa5000)
   libmd.so.0 => /usr/lib/libmd.so.0 (0x7f4bd5f99000)

Error relocating .//libavfilter.so.8: __finitef: symbol not found
Error relocating .//libavfilter.so.8: __isnan: symbol not found
Error relocating .//libavfilter.so.8: __isinff: symbol not found
Error relocating .//libavfilter.so.8: __finite: symbol not found
Error relocating .//libavfilter.so.8: __isnanf: symbol not found
Error relocating .//libavfilter.so.8: __isinf: symbol not found
Error relocating .//libavformat.so.59: __strdup: symbol not found
Error relocating .//libavformat.so.59: makecontext: symbol not found
Error relocating .//libavformat.so.59: setcontext: symbol not found
Error relocating .//libavformat.so.59: getcontext: symbol not found
Error relocating .//libavformat.so.59: __isnan: symbol not found
Error relocating .//libavformat.so.59: __finite: symbol not found
Error relocating .//libavformat.so.59: __isinf: symbol not found
Error relocating .//libavcodec.so.59: __finitef: symbol not found
Error relocating .//libavcodec.so.59: __isnan: symbol not found
Error relocating .//libavcodec.so.59: __isinff: symbol not found
Error relocating .//libavcodec.so.59: __finite: symbol not found
Error relocating .//libavcodec.so.59: __isnanf: symbol not found
Error relocating .//libswscale.so.6: __isnan: symbol not found
Error relocating .//libavutil.so.57: __isnan: symbol not found
Error relocating .//libavutil.so.57: __isinf: symbol not found
Error relocating .//libva.so.1: __snprintf_chk: symbol not found
Error relocating .//libva.so.1: __vfprintf_chk: symbol not found
Error relocating .//libva.so.1: __strtok_r: symbol not found
Error relocating .//libva.so.1: __strdup: symbol not found
Error relocating .//libva.so.1: __vsnprintf_chk: symbol not found
Error relocating .//libva.so.1: __fprintf_chk: symbol not found
Error relocating .//libva.so.1: __sprintf_chk: symbol not found
Error relocating .//libva-drm.so.1: __snprintf_chk: symbol not found
Error relocating .//libva-drm.so.1: __strdup: symbol not found
Error relocating .//libva-drm.so.1: __fprintf_chk: symbol not found
Error relocating .//libdrm.so.2: __snprintf_chk: symbol not found
Error relocating .//libdrm.so.2: __vfprintf_chk: symbol not found
Error relocating .//libdrm.so.2: __strdup: symbol not found
Error relocating .//libdrm.so.2: __strndup: symbol not found
Error relocating .//libdrm.so.2: __vasprintf_chk: symbol not found
Error relocating .//libdrm.so.2: __printf_chk: symbol not found
Error relocating .//libdrm.so.2: __fprintf_chk: symbol not found
Error relocating .//libdrm.so.2: __sprintf_chk: symbol not found

Since alpine uses musl libc instead of glibc. It's working on centos/debian docker containers. Is there plan to port it and add a new build support?

@yjqg6666 yjqg6666 changed the title Any plan to support ffmpeg on alpine(musl libc)? [ffmpeg]: Any plan to support alpine(musl libc)? Jan 8, 2023
@saudet
Copy link
Member

saudet commented Jan 12, 2023

I don't plan to do it myself, but contributions are welcome!

@yjqg6666
Copy link
Author

I don't plan to do it myself, but contributions are welcome!

OK. Thanks for the reply. We have switched the image to glibc-based distro for compatibility.

@saudet
Copy link
Member

saudet commented Jul 6, 2023

Duplicate of #1379

@saudet saudet marked this as a duplicate of #1379 Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants