(My Linux Desktop): Linux 5.4.0-91-generic #102-Ubuntu SMP x86_64 Kernel: 5.4.0-91-generic x86_64 bits: 64 Desktop: MATE 1.24.0 Distro: Linux Mint 20.2 Uma make sure you have also have libunistring-dev and libnuma-dev installed before git'ing x265_git. (on a fresh build those should be in the ff*.txt scripts) mv -v ~/ffmpeg_sources/x265_git/build/linux/multilib.sh multilib_ORIG.sh cp -v full/path/to/your/multilib.sh ~/ffmpeg_sources/x265_git/build/linux/ -> I'm not sure what you mean about needing to use the "-static flag" here.? <- ############################################################################################3 (output of running ./mulilib.sh) ... ... ... [100%] Linking CXX executable x265 /usr/bin/ld: ./libx265_main10.a(api.cpp.o): in function `x265_10bit::x265_api_get_203(int)': api.cpp:(.text+0x2157): undefined reference to `dlopen' /usr/bin/ld: api.cpp:(.text+0x216b): undefined reference to `dlsym' /usr/bin/ld: api.cpp:(.text+0x21c5): undefined reference to `dlopen' /usr/bin/ld: ./libx265_main10.a(api.cpp.o): in function `x265_10bit::x265_api_query(int, int, int*)': api.cpp:(.text+0x2276): undefined reference to `dlopen' /usr/bin/ld: api.cpp:(.text+0x228e): undefined reference to `dlsym' /usr/bin/ld: api.cpp:(.text+0x231d): undefined reference to `dlopen' /usr/bin/ld: ./libx265_main12.a(api.cpp.o): in function `x265_12bit::x265_api_get_203(int)': api.cpp:(.text+0x2157): undefined reference to `dlopen' /usr/bin/ld: api.cpp:(.text+0x216b): undefined reference to `dlsym' /usr/bin/ld: api.cpp:(.text+0x21c5): undefined reference to `dlopen' /usr/bin/ld: ./libx265_main12.a(api.cpp.o): in function `x265_12bit::x265_api_query(int, int, int*)': api.cpp:(.text+0x2295): undefined reference to `dlopen' /usr/bin/ld: api.cpp:(.text+0x22ad): undefined reference to `dlsym' /usr/bin/ld: api.cpp:(.text+0x238d): undefined reference to `dlopen' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/cli.dir/build.make:235: x265] Error 1 make[1]: *** [CMakeFiles/Makefile2:121: CMakeFiles/cli.dir/all] Error 2 make: *** [Makefile:130: all] Error 2 [ 63%] Built target common [ 84%] Built target encoder [ 86%] Built target x265-static [ 87%] Linking CXX executable x265 [100%] Built target cli Install the project... -- Install configuration: "Release" -- Installing: /home/duh/ffmpeg_build/lib/libx265.a -- Installing: /home/duh/ffmpeg_build/include/x265.h -- Installing: /home/duh/ffmpeg_build/include/x265_config.h -- Installing: /home/duh/ffmpeg_build/lib/pkgconfig/x265.pc -- Installing: /home/duh/ffmpeg_build/bin/x265 ################################################### ldd -v ~/ffmpeg_build/bin/x265 linux-vdso.so.1 (0x00007fff5d003000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9a5f130000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9a5f128000) libnuma.so.1 => /usr/lib/x86_64-linux-gnu/libnuma.so.1 (0x00007f9a5f118000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f9a5ef30000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9a5ede0000) libmvec.so.1 => /lib/x86_64-linux-gnu/libmvec.so.1 (0x00007f9a5edb0000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9a5ebb8000) /lib64/ld-linux-x86-64.so.2 (0x00007f9a60438000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f9a5eb98000) Version information: /home/duh/ffmpeg_build/bin/x265: libdl.so.2 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libdl.so.2 libmvec.so.1 (GLIBC_2.22) => /lib/x86_64-linux-gnu/libmvec.so.1 libnuma.so.1 (libnuma_1.1) => /usr/lib/x86_64-linux-gnu/libnuma.so.1 libnuma.so.1 (libnuma_1.2) => /usr/lib/x86_64-linux-gnu/libnuma.so.1 libm.so.6 (GLIBC_2.29) => /lib/x86_64-linux-gnu/libm.so.6 libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6 libstdc++.so.6 (GLIBCXX_3.4.9) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so.6 (CXXABI_1.3) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so.6 (GLIBCXX_3.4) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libpthread.so.0 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libpthread.so.0 libpthread.so.0 (GLIBC_2.3.2) => /lib/x86_64-linux-gnu/libpthread.so.0 libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.14) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.3.4) => /lib/x86_64-linux-gnu/libc.so.6 /lib/x86_64-linux-gnu/libpthread.so.0: ld-linux-x86-64.so.2 (GLIBC_2.2.5) => /lib64/ld-linux-x86-64.so.2 ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2 libc.so.6 (GLIBC_2.7) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.14) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.3.2) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_PRIVATE) => /lib/x86_64-linux-gnu/libc.so.6 /lib/x86_64-linux-gnu/libdl.so.2: ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2 libc.so.6 (GLIBC_PRIVATE) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6 /usr/lib/x86_64-linux-gnu/libnuma.so.1: ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2 libc.so.6 (GLIBC_2.3) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.14) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.8) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.3.4) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6 /usr/lib/x86_64-linux-gnu/libstdc++.so.6: libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6 ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2 libgcc_s.so.1 (GCC_4.2.0) => /lib/x86_64-linux-gnu/libgcc_s.so.1 libgcc_s.so.1 (GCC_3.4) => /lib/x86_64-linux-gnu/libgcc_s.so.1 libgcc_s.so.1 (GCC_3.3) => /lib/x86_64-linux-gnu/libgcc_s.so.1 libgcc_s.so.1 (GCC_3.0) => /lib/x86_64-linux-gnu/libgcc_s.so.1 libc.so.6 (GLIBC_2.14) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.6) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.18) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.16) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.3) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.3.4) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.17) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.3.2) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6 /lib/x86_64-linux-gnu/libm.so.6: ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2 libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_PRIVATE) => /lib/x86_64-linux-gnu/libc.so.6 /lib/x86_64-linux-gnu/libmvec.so.1: libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6 ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2 libm.so.6 (GLIBC_2.29) => /lib/x86_64-linux-gnu/libm.so.6 libm.so.6 (GLIBC_2.27) => /lib/x86_64-linux-gnu/libm.so.6 libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6 /lib/x86_64-linux-gnu/libc.so.6: ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2 ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2 /lib/x86_64-linux-gnu/libgcc_s.so.1: libc.so.6 (GLIBC_2.14) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6 ################################################################################### ~/ffmpeg_build/bin/x265 --version x265 [info]: HEVC encoder version 3.5+20-17839cc0d x265 [info]: build info [Linux][GCC 9.3.0][64 bit] 8bit+10bit+12bit x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX XOP FMA4 FMA3 BMI1 ------------------ VERSUS ----------------- (my distro's x265 binary) /usr/bin/x265 --version x265 [info]: HEVC encoder version 3.2.1+1-b5c86a64bbbe x265 [info]: build info [Linux][GCC 9.3.0][64 bit] 8bit+10bit+12bit x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX XOP FMA4 FMA3 BMI1 ############################ ~/bin/ffmpeg -h encoder=libx265 ffmpeg version N-105259-g4b053b8db1 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04) configuration: --prefix=/home/duh/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/duh/ffmpeg_build/include --extra-ldflags=-L/home/duh/ffmpeg_build/lib --extra-libs='-lpthread -lm' --ld=g++ --bindir=/home/duh/bin --enable-gpl --enable-gnutls --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree libavutil 57. 18.100 / 57. 18.100 libavcodec 59. 20.100 / 59. 20.100 libavformat 59. 17.100 / 59. 17.100 libavdevice 59. 5.100 / 59. 5.100 libavfilter 8. 25.100 / 8. 25.100 libswscale 6. 5.100 / 6. 5.100 libswresample 4. 4.100 / 4. 4.100 libpostproc 56. 4.100 / 56. 4.100 Encoder libx265 [libx265 H.265 / HEVC]: General capabilities: dr1 delay threads Threading capabilities: other Supported pixel formats: yuv420p yuvj420p yuv422p yuvj422p yuv444p yuvj444p gbrp yuv420p10le yuv422p10le yuv444p10le gbrp10le yuv420p12le yuv422p12le yuv444p12le gbrp12le gray gray10le gray12le libx265 AVOptions: -crf E..V....... set the x265 crf (from -1 to FLT_MAX) (default -1) -qp E..V....... set the x265 qp (from -1 to INT_MAX) (default -1) -forced-idr E..V....... if forcing keyframes, force them as IDR frames (default false) -preset E..V....... set the x265 preset -tune E..V....... set the x265 tune parameter -profile E..V....... set the x265 profile -udu_sei E..V....... Use user data unregistered SEI if available (default false) ############################################################ A quick silly test: ~/bin/ffmpeg -> Sample 1080p/h264 8-bit video file encoded to hevc/x265 (10-bit)Main ~/bin/ffmpeg -i TextInMotion-VideoSample-1080p.mp4 -map 0:0 -c:v libx265 -pix_fmt yuv420p10le -crf 26 TextInMotion-VideoSample-1080p.mkv ... Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'TextInMotion-VideoSample-1080p.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf58.20.100 Duration: 00:00:30.02, start: 0.000000, bitrate: 4165 kb/s Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 4116 kb/s, 25 fps, 25 tbr, 12800 tbn (default) Metadata: handler_name : Apple Video Media Handler vendor_id : [0][0][0][0] timecode : 00:00:00:00 ... ------------------------- ~/bin/ffmpeg -i TextInMotion-VideoSample-1080p.mkv ... Input #0, matroska,webm, from 'TextInMotion-VideoSample-1080p.mkv': Metadata: COMPATIBLE_BRANDS: isomiso2avc1mp41 MAJOR_BRAND : isom MINOR_VERSION : 512 ENCODER : Lavf59.17.100 Duration: 00:00:30.00, start: 0.000000, bitrate: 2300 kb/s Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn (default) Metadata: HANDLER_NAME : Apple Video Media Handler VENDOR_ID : [0][0][0][0] TIMECODE : 00:00:00:00 ENCODER : Lavc59.20.100 libx265 DURATION : 00:00:30.000000000 #######################################################################