tar xvfz libao-1.2.0.tar.gz
Cela donne le répertoire libao-1.2.0. On veillera à ce que les packages lib64x11-devel, lib64alsa2-devel et pulseaudio-devel soient installés, on tape maintenant successivement
./configure
make
Puis en tant que root
make install
Dans le fichier /etc/ld.so.conf on rajoutera les lignes suivantes (si ce n'est déjà fait)
/usr/local/lib
/usr/local/lib/ao/plugins-4
On tape alors
ldconfig
Passons à libogg, on décompresse l'archive en tapant
tar xvfz libogg-1.3.5.tar.gz
Cela donne le répertoire libogg-1.3.5 dans lequel on tape successivement
./configure
make
Puis en tant que root
make install
Passons à libvorbis, on décompresse l'archive en tapant
tar xvf libvorbis-1.3.7.tar.xz
Cela donne le répertoire libvorbis-1.3.7 dans lequel on tape successivement
./configure
make
puis en tant que root
make install
ldconfig
tar xvfz lame-3.100.tar.gz
Cela donne le répertoire lame-3.100 dans lequel on tape successivement./configure
make
Puis en tant que root
make install
mkdir build
cd build/
cmake ..
make
La bibliothèque FAAC fournit des encodeurs MPEG-4 and MPEG-2 AAC. Le site officiel est https://github.com/knik0/faac on y récupère l'archive qu'on décompresse en tapant
tar xvfz faac-faac-1.31.1.tar.gzCette bibliothèque intègre une implémentation du codec audio AAC (Advanced Audio Coding). Le site officiel est http://sourceforge.net/projects/opencore-amr/files/vo-aacenc/ on y récupère l'archive qu'on décompresse en tapant
tar xvfz vo-aacenc-0.1.3.tar.gzmake install
La bibliothèque Rubber band est nécessaire pour certains effets audio qu'on utilise notamment l'effet pitch compensation de kdenlive. Le site officiel est https://breakfastquay.com/rubberband/ on installera d'abord le package lib64vamp-plugin-sdk-devel et on décompresse l'archive en tapant :
tar xvfj rubberband-4.0.0.tar.bz2
cela va donner le répertoire rubberband-4.0.0 dans lequel on va taper :
meson build && ninja -C build
et en tant que root
ninja -C build/ install
ldconfig
tar xvfz xvidcore-1.3.7.tar.gz
Cela donne le répertoire xvidcore. On veillera à ce
que le package nasm soit
installé. Au niveau de xvidcore/build/generic on tape
./configure
Puis
make
Puis en tant que root
make install
j'ai eu cette erreur là
ln: impossible de créer le lien
symbolique « /usr/local/lib/libxvidcore.so.4 »: Le
fichier existe
Makefile:144: recipe for target
'install' failed
j'ai donc dû supprimer les liens existants
unlink /usr/local/lib/libxvidcore.so.4
unlink /usr/local/lib/libxvidcore.so
et relancer make install, il faut taper ensuite ldconfig
./configure --enable-pic
** System Configuration
Install prefix: /usr/local
Source path: /usr/local/linux/multimedia/gpac-2.4.0
C compiler: gcc
C++ compiler: g++
make: make
CPU: x86_64
Big Endian: no
** GPAC 2.4 rev Core Configuration **
Static Modules: no
debug version: no
GProf enabled: no
Memory tracking enabled: no
Sanitizer enabled: no
Fixed-Point Version: no
IPV6 Support: yes
QuickJS Support: yes (with qjs-libc)
** Detected libraries **
zlib: system (pkgconfig)
OpenGL support: yes
OpenSSL support: system (pkgconfig)
nghttp2: system (pkgconfig)
OSS Audio: yes
ALSA Audio: yes
Jack Audio: yes
Pulse Audio: yes
DirectFB: no
X11: yes (path: /usr/X11R6)
X11 Shared Memory support: yes
X11 XVideo support: yes
SDL: yes
DVB for Linux: yes
FreeType: system (pkgconfig)
JPEG: system (pkgconfig)
OpenJPEG: system (pkgconfig)
PNG: system (pkgconfig)
MAD: system
FAAD: system (pkgconfig)
XVID: system
FFMPEG: system (pkgconfig) - VVC supported
LZMA: yes
Xiph OGG: system (pkgconfig)
Platinum UPnP: no
Xiph Vorbis: system (pkgconfig)
Xiph Theora: system (pkgconfig)
A52 (AC3): system
OpenSVCDecoder: no
OpenHEVCDecoder: no
Freenect: no
Creating config.mak
Check config.log for detection failures
Done - type 'make help' for make info, 'make' to build
make
si vous rencontrez cette erreur
filters/ff_avf.c:725:34: erreur: « AVFrame » n'a pas
de membre nommé « interlaced_frame »
725
|
if (frame->interlaced_frame)
il faudra récupérer la dernière version en développement en tapant successivement
git clone https://github.com/gpac/gpac.git
cd gpac
./configure
./configure --enable-pic
voilà le résultat
** System Configuration
Install prefix: /usr/local
Source path: /usr/local/linux/multimedia/gpac
C compiler: gcc
C++ compiler: g++
make: make
CPU: x86_64
Big Endian: no
** GPAC 2.5-DEV rev1992-gbc49c3047-master Core Configuration **
Unit Tests: no ('make unit_tests')
Static Modules: no
max stack size: 32768
debug version: no
GProf enabled: no
Memory tracking enabled: no
Sanitizer enabled: no
Fixed-Point Version: no
IPV6 Support: yes
QuickJS Support: yes (with qjs-libc)
** Detected libraries **
zlib: system (pkgconfig)
OpenGL support: yes
OpenSSL support: system (pkgconfig)
nghttp2: system (pkgconfig)
ngtcp2: no
nghttp3: no
OSS Audio: system
ALSA Audio: system
Jack Audio: system
Pulse Audio: system (pkgconfig)
DirectFB: no
X11: yes (path: /usr/X11R6)
X11 Shared Memory support: yes
X11 XVideo support: yes
SDL: yes
DVB for Linux: system
FreeType: system (pkgconfig)
JPEG: system (pkgconfig)
OpenJPEG: system (pkgconfig)
PNG: system (pkgconfig)
MAD: system (pkgconfig)
FAAD: system (pkgconfig)
XVID: system
libcaption: no
MpeghDecoder: no
libcaca: system (pkgconfig)
libcurl: system
FFmpeg: system (pkgconfig) - "VVC " supported
LZMA: yes
Xiph Vorbis: system (pkgconfig)
Xiph Theora: system (pkgconfig)
A52 (AC3): system
OpenSVCDecoder: no
OpenHEVCDecoder: no
Platinum UPnP: no
Freenect: no
Creating config.mak
Check config.log for detection failures
Done - type 'make help' for make info, 'make' to build
on tape ensuite make
puis make install
cela donne le répertoire x264-master dans lequel on tape
./configure --enable-pic --enable-sharedil faudra sans doute installer préalablement yasm. A noter que les options --enable-pic --enable-shared sont utiles pour les configurations 64bits pour compiler ffmpeg.
on revient à libx264 et on peut taper maintenant la commande configure avec les options décrites plus haut et voilà le résultat
You can run 'make' or 'make fprofiled' now.
platform: X86_64
byte order: little-endian
system: LINUX
cli:
yes
libx264: internal
shared: yes
static: no
bashcompletion: yes
asm:
yes
interlaced: yes
avs:
yes
lavf:
yes
ffms:
no
mp4:
gpac
gpl:
yes
thread: posix
opencl: yes
filters: resize crop
select_every
lto:
no
debug: no
gprof: no
strip: no
PIC:
yes
bit depth: all
chroma format: all
You can run 'make' or 'make fprofiled' now.
make
puis en tant que root
make install
voilà le résultat
-- General configuration for OpenCV 4.13.0
=====================================
-- Version control:
unknown
--
-- Extra modules:
-- Location (extra):
/usr/local/linux/multimedia/opencv_contrib-4.13.0/modules
-- Version control (extra):
unknown
--
-- Platform:
-- Timestamp:
2026-01-18T11:12:01Z
-- Host:
Linux
6.18.5-desktop-1.mga10 x86_64
-- CMake:
4.1.3
-- CMake generator:
Unix
Makefiles
-- CMake build tool:
/bin/gmake
-- Configuration:
Release
-- Algorithm Hint:
ALGO_HINT_ACCURATE
--
-- CPU/HW features:
-- Baseline:
SSE
SSE2 SSE3
-- requested:
SSE3
-- Dispatched code generation:
SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
-- SSE4_1 (19
files): +
SSSE3 SSE4_1
-- SSE4_2 (2
files):
+
SSSE3 SSE4_1 POPCNT SSE4_2
-- AVX (10 files):
+
SSSE3 SSE4_1 POPCNT SSE4_2 AVX
-- FP16 (1 files):
+
SSSE3 SSE4_1 POPCNT SSE4_2 AVX FP16
-- AVX2 (39 files):
+
SSSE3 SSE4_1 POPCNT SSE4_2 AVX FP16 AVX2 FMA3
-- AVX512_SKX (10
files): + SSSE3 SSE4_1 POPCNT SSE4_2
AVX FP16 AVX2 FMA3 AVX_512F AVX512_COMMON AVX512_SKX
--
-- C/C++:
-- Built as dynamic libs?:
YES
-- C++ standard:
11
-- C++ Compiler:
/bin/c++
(ver 15.2.0)
-- C++ flags (Release):
-fsigned-char
-W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress
-Wsequence-point -Wformat -Wformat-security
-Wmissing-declarations -Wmissing-prot
otypes -Wstrict-prototypes -Wundef -Winit-self
-Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized
-Wsuggest-override -Wno-delete-non-virtual-dtor
-Wno-unnamed-type-template-args -W
no-comment -Wimplicit-fallthrough=3
-Wno-strict-overflow -fdiagnostics-show-option -pthread
-fomit-frame-pointer -ffunction-sections -fdata-sections
-msse3 -fvisibility=hidden -fvisi
bility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
-- C++ flags (Debug):
-fsigned-char
-W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress
-Wsequence-point -Wformat -Wformat-security
-Wmissing-declarations -Wmissing-prot
otypes -Wstrict-prototypes -Wundef -Winit-self
-Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized
-Wsuggest-override -Wno-delete-non-virtual-dtor
-Wno-unnamed-type-template-args -W
no-comment -Wimplicit-fallthrough=3
-Wno-strict-overflow -fdiagnostics-show-option -pthread
-fomit-frame-pointer -ffunction-sections -fdata-sections
-msse3 -fvisibility=hidden -fvisi
bility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
-- C Compiler:
/bin/cc
-- C flags (Release):
-fsigned-char
-W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress
-Wsequence-point -Wformat -Wformat-security
-Wmissing-declarations -Wmissing-prot
otypes -Wstrict-prototypes -Wundef -Winit-self
-Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized
-Wsuggest-override -Wno-delete-non-virtual-dtor
-Wno-unnamed-type-template-args -W
no-comment -Wimplicit-fallthrough=3
-Wno-strict-overflow -fdiagnostics-show-option -pthread
-fomit-frame-pointer -ffunction-sections -fdata-sections
-msse3 -fvisibility=hidden -fvisi
bility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
-- C flags (Debug):
-fsigned-char
-W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress
-Wsequence-point -Wformat -Wformat-security
-Wmissing-declarations -Wmissing-prot
otypes -Wstrict-prototypes -Wundef -Winit-self
-Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized
-Wsuggest-override -Wno-delete-non-virtual-dtor
-Wno-unnamed-type-template-args -W
no-comment -Wimplicit-fallthrough=3
-Wno-strict-overflow -fdiagnostics-show-option -pthread
-fomit-frame-pointer -ffunction-sections -fdata-sections
-msse3 -fvisibility=hidden -fvisi
bility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
-- Linker flags (Release):
-Wl,--exclude-libs,libippicv.a
-Wl,--exclude-libs,libippiw.a -Wl,--gc-sections
-Wl,--as-needed -Wl,--no-undefined
-- Linker flags (Debug):
-Wl,--exclude-libs,libippicv.a
-Wl,--exclude-libs,libippiw.a -Wl,--gc-sections
-Wl,--as-needed -Wl,--no-undefined
-- ccache:
NO
-- Precompiled headers:
NO
-- Extra dependencies:
m
pthread cudart_static dl rt nppc nppial nppicc nppidei nppif
nppig nppim nppist nppisu nppitc npps cublas cudnn cufft
-L/usr/lib64 -L/usr/local/l
ib
-- 3rdparty dependencies:
--
-- OpenCV modules:
-- To be built:
alphamat
aruco bgsegm bioinspired calib3d ccalib core cudaarithm
cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc
cudalegacy cudaobjdete
ct cudaoptflow cudastereo cudawarping cudev cvv
datasets dnn dnn_objdetect dnn_superres dpm face features2d
flann freetype fuzzy gapi hdf hfs highgui img_hash imgcodecs
imgproc intens
ity_transform java line_descriptor mcc ml objdetect
optflow phase_unwrapping photo plot python3 quality rapid
reg rgbd saliency shape signal stereo stitching
structured_light superres
surface_matching text tracking ts video videoio
videostab wechat_qrcode xfeatures2d ximgproc xobjdetect
xphoto
-- Disabled:
world
-- Disabled by dependency:
-
-- Unavailable:
cannops
fastcv julia matlab ovis python2 sfm viz
-- Applications:
tests
perf_tests apps
-- Documentation:
NO
-- Non-free algorithms:
YES
--
-- GUI:
QT6
-- QT:
YES
(ver 6.10.0 )
-- QT OpenGL
support: YES
(Qt6::OpenGL )
-- GTK+:
YES
(ver 3.24.51)
-- OpenGL support:
YES
(/usr/lib64/libGL.so /usr/lib64/libGLU.so)
-- VTK support:
NO
--
-- Media I/O:
-- ZLib:
/usr/lib64/libz.so
(ver 1.3.1)
-- JPEG:
/usr/lib64/libjpeg.so
(ver 80)
-- WEBP:
/usr/lib64/libwebp.so
(ver decoder: 0x0210, encoder: 0x0210, demux: 0x0107)
-- AVIF:
avif
(ver 1.3.0)
-- PNG:
/usr/lib64/libpng.so
(ver 1.6.53)
-- TIFF:
/usr/lib64/libtiff.so
(ver 42 / 4.7.1)
-- JPEG 2000:
OpenJPEG
(ver 2.5.4)
-- OpenEXR:
OpenEXR::OpenEXR
(ver 3.4.4)
-- GIF:
YES
-- HDR:
YES
-- SUNRASTER:
YES
-- PXM:
YES
-- PFM:
YES
--
-- Video I/O:
-- FFMPEG:
YES
-- avcodec:
YES
(62.23.102)
-- avformat:
YES
(62.8.102)
-- avutil:
YES
(60.23.100)
-- swscale:
YES
(9.3.100)
-- avdevice:
YES
(62.2.100)
-- GStreamer:
YES
(1.26.10)
-- v4l/v4l2:
YES
(linux/videodev2.h)
-- Orbbec:
YES
--
-- Parallel framework:
pthreads
--
-- Trace:
YES
(with Intel ITT(3.25.4))
--
-- Other third-party libraries:
-- Intel IPP:
2022.2.0
[2022.2.0]
--
at:
/usr/local/linux/multimedia/opencv-4.13.0/build/3rdparty/ippicv/ippicv_lnx/icv
-- Intel IPP IW:
sources
(2022.2.0)
--
at:
/usr/local/linux/multimedia/opencv-4.13.0/build/3rdparty/ippicv/ippicv_lnx/iw
-- VA:
YES
-- Lapack:
YES
(/usr/lib64/liblapack.so /usr/lib64/libblas.so)
-- Eigen:
YES
(ver 5.0.1)
-- Custom HAL:
YES
(ipp (ver 0.0.1))
-- Protobuf:
build
(3.19.1)
-- Flatbuffers:
builtin/3rdparty
(25.9.23)
--
-- NVIDIA CUDA:
YES
(ver 13.1, CUFFT CUBLAS NVCUVID NVCUVENC)
-- NVIDIA GPU arch:
75
-- NVIDIA PTX archs:
--
-- cuDNN:
YES
(ver 9.9.0)
--
-- OpenCL:
YES
(INTELVA)
-- Include path:
/usr/local/linux/multimedia/opencv-4.13.0/3rdparty/include/opencl/1.2
-- Link libraries:
Dynamic
load
--
-- Python 3:
-- Interpreter:
/bin/python3
(ver 3.13.11)
-- Libraries:
/usr/lib64/libpython3.13.so
(ver 3.13.11)
-- Limited API:
NO
-- numpy:
/usr/lib64/python3.13/site-packages/numpy/_core/include
(ver 2.1.3)
-- install path:
lib/python3.13/site-packages/cv2/python-3.13
--
-- Python (for build):
/bin/python3
--
-- Java:
-- ant:
/bin/ant
(ver 1.10.15)
-- Java:
YES
(ver 21.0.9)
-- JNI:
/usr/lib/jvm/java/include
/usr/lib/jvm/java/include/linux /usr/lib/jvm/java/include
-- Java wrappers:
YES
(ANT)
-- Java tests:
YES
--
-- Install to:
/usr/local
--
-----------------------------------------------------------------
--
-- Configuring done (38.0s)
-- Generating done (1.2s)
-- Build files have been written to:
/usr/local/linux/multimedia/opencv-4.13.0/build
on tape ensuite make, mais pour l'instant je bute sur
des erreurs à des problèmes de compatibilité entre CUDA et gcc
15.X
hal_internal.cpp:(.text._Z14lapack_gemm32fPKfmS0_mfS0_mfPfmiiii+0x1d9) :
référence indéfinie vers « cblas_sgemm »
/bin/ld :
CMakeFiles/opencv_core.dir/src/hal_internal.cpp.o :
dans la fonction « lapack_gemm64f(double const*,
unsigned long, double const*, unsigned long, double, double
const*, unsi
gned long, double, double*, unsigned long, int, int,
int, int) » :
puis en tant que root
Maintenant on va récupérer la bibliothèque frei0r qui fournit une API vidéo qui est utile pour les effets vidéo pour les logiciels de montage vidéo, le site officiel est https://frei0r.dyne.org/. On installera préalablement le package lib64gavl-devel. On décompresse la dernière version en tapant
tar xvfz frei0r-2.5.1.tar.gz
cela donne le répertoire frei0r-2.5.1 dans lequel on tape successivement
mkdir build
cd build
cmake ..
on tape ensuite
make
Puis en tant que root
make install
on rajoutera dans le fichier /etc/ld.so.conf la ligne
/usr/local/lib64/frei0r-1
et on tape ldconfig
attention j'ai dû créer le lien suivant pour que mlt retrouve les plugins frei0r
ln -s /usr/local/lib64/frei0r-1
/usr/local/lib/frei0r-1
https://bitbucket.org/leo_sutic/bigsh0t
git clone https://bitbucket.org/leo_sutic/bigsh0t.git
bigsh0t/
mkdir build
cd build
cmake ..
make -j5
cd bigsh0t-2.6-linux/lib/frei0r-1
cp * /usr/local/lib/frei0r-1
à noter les options -DCUDA_SDK_ROOT_DIR=/usr/share/nvidia-cuda-toolkit/ -DCUDA_TOOLKIT_ROOT_DIR=/usr/share/nvidia-cuda-toolkit/ -DEIGEN_TEST_CUDA=on sont pour les possesseurs de GPU nvidia, puis en tant que root
make installon revient dans le répertoire movit et on tape
./configure
on tape ensuite
make./configure --enable-shared --enable-gpl --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-nonfree --enable-frei0r --enable-libpulse --enable-version3 --enable-opengl --enable-opencl --disable-stripping --enable-libgsm --enable-libvpx --enable-chromaprint --enable-avfilter --enable-librubberband --enable-libopencv --enable-libass --enable-pic --enable-libvidstab --enable-vdpau --enable-cuda-nvcc --nvcc=nvcc --enable-cuvid --enable-ffnvcodec
On installera préalablement les packages lib64gsm-devel,
lib64schroedinger-devel, lib64vpx-devel, lib64vdpau-devel, lib64sdl2.0-devel et lib64opencl-devel
A noter les options --enable-cuda-nvcc
--nvcc=nvcc --enable-cuvid --enable-ffnvcodec pour les possesseurs de
GPU nvidia qui risquent de générer l'erreur suivante
ERROR: cuda requested, but not
all dependencies are satisfied: ffnvcodec
on va récupérer la dépendance manquante en tapant
git clone
https://git.videolan.org/git/ffmpeg/nv-codec-headers.git
dans le répertoire nv-codec-headers
On retape configure avec
toutes ses options, puis make puis en tant que root
make install
ldconfig
On obtient la liste des formats supportés par ffmpeg en tapant
ffmpeg -formats
Pour voir si les accélérations matérielles sont bien en place si vous avez une NVIDIA, vous avez la liste des encoders en tapant
ffmpeg -hide_banner -encoders | grep nvenc
voilà le résultat
V....D
av1_nvenc
NVIDIA NVENC av1 encoder (codec av1)
V....D
h264_nvenc
NVIDIA NVENC H.264 encoder (codec h264)
V....D
hevc_nvenc
NVIDIA NVENC hevc encoder (codec hevc)
et
ffmpeg -hide_banner -decoders | grep cuvid
donnera
V.....
av1_cuvid
Nvidia CUVID AV1 decoder (codec av1)
V.....
h264_cuvid
Nvidia CUVID H264 decoder (codec h264)
V.....
hevc_cuvid
Nvidia CUVID HEVC decoder (codec hevc)
V.....
mjpeg_cuvid
Nvidia CUVID MJPEG decoder (codec mjpeg)
V.....
mpeg1_cuvid
Nvidia CUVID MPEG1VIDEO decoder (codec mpeg1video)
V.....
mpeg2_cuvid
Nvidia CUVID MPEG2VIDEO decoder (codec mpeg2video)
V.....
mpeg4_cuvid
Nvidia CUVID MPEG4 decoder (codec mpeg4)
V.....
vc1_cuvid
Nvidia CUVID VC1 decoder (codec vc1)
V.....
vp8_cuvid
Nvidia CUVID VP8 decoder (codec vp8)
V.....
vp9_cuvid
Nvidia CUVID VP9 decoder (codec vp9)
la liste des méthodes d'accélération matérielle est
obtenue en tapant
ffmpeg -hide_banner -hwaccels
voilà le résultat
Hardware acceleration methods:
vdpau
cuda
vaapi
drm
opencl
vulkan
| [Retour page d'accueil FUNIX] |