ffmpeg-build-script icon indicating copy to clipboard operation
ffmpeg-build-script copied to clipboard

Using ffmpeg on Ubuntu 20.04 from script built on 22.04 gives error

Open abrar71 opened this issue 3 years ago • 1 comments
trafficstars

The static builds where built on Ubuntu 22.04 (latest) with the command and commit 15ef520

./build-ffmpeg --build --enable-gpl-and-non-free --full-static

.ts file used sample_960x400_ocean_with_audio.ts.zip

Running FFmpeg on Ubuntu 20.04 or older version gives the following error:

ffmpeg -i sample_960x400_ocean_with_audio.ts

ffmpeg version v1.38 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
  configuration: --enable-nonfree --enable-gpl --enable-openssl --enable-libdav1d --enable-libsvtav1 --enable-librav1e --enable-libx264 --enable-libx265 --enable-libvpx --enable-libxvid --enable-libvidstab --enable-libaom --enable-libzimg --enable-lv2 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libtheora --enable-libfdk-aac --enable-libwebp --enable-libsrt --enable-amf --disable-debug --disable-doc --disable-shared --enable-pthreads --enable-static --enable-small --enable-version3 --extra-cflags='-I/app/ffmpeg-build-script/workspace/include -I/app/ffmpeg-build-script/workspace/include/lilv-0' --extra-ldexeflags=-static --extra-ldflags=-L/app/ffmpeg-build-script/workspace/lib --extra-libs='-ldl -lpthread -lm -lz' --pkgconfigdir=/app/ffmpeg-build-script/workspace/lib/pkgconfig --pkg-config-flags=--static --prefix=/app/ffmpeg-build-script/workspace --extra-version=
  libavutil      57. 17.100 / 57. 17.100
  libavcodec     59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  4.100 / 59.  4.100
  libavfilter     8. 24.100 /  8. 24.100
  libswscale      6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
  libpostproc    56.  3.100 / 56.  3.100
ffmpeg: dl-call-libc-early-init.c:37: _dl_call_libc_early_init: Assertion `sym != NULL' failed.
Aborted (core dumped)

abrar71 avatar Aug 05 '22 20:08 abrar71

What does your ffmpeg-build-script/packages/FFmpeg-release-5.0/ffbuild/config.log say?

I think this might be relevant:

/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: /home/liam/ffmpeg-build-script/workspace/lib/libx265.a(api.cpp.o): in function `x265_12bit::x265_api_get_199(int)':
api.cpp:(.text+0x1fa3): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

hut8 avatar Aug 17 '22 22:08 hut8