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
La commande pour configurer OpenCV sans CUDA est
cmake -DWITH_CUDA=OFF -DCMAKE_BUILD_TYPE=Release -DOPENCV_EXTRA_MODULES_PATH=/usr/local/linux/multimedia/opencv_contrib-4.12.0/modules/ -DWITH_OPENGL=ON -DOPENCV_ENABLE_NONFREE=ON -DTesseract_INCLUDE_DIR=/usr/include/tesseract -DOPENCV_GENERATE_PKGCONFIG=YES -DWITH_QT=ON -DOpenGL_GL_PREFERENCE=LEGACY ..
Pour une GPU Nvidia
j'ai désactivé momentanément les options d'accélération
matérielle avec CUDA, vu que je rencontre quelques difficultés
à la compilation. On
pourra rajouter les options -DWITH_VA=ON
-DWITH_VA_INTEL=ON
pour une GPU intel. Pour le chemin des
contribs opencv, il faudra l'adapter
bien sûr à votre configuration
voilà le résultat
-- General configuration for OpenCV 4.12.0
=====================================
-- Version
control:
unknown
--
-- Extra modules:
-- Location
(extra):
/usr/local/linux/multimedia/opencv_contrib-4.12.0/modules
-- Version control
(extra): unknown
--
-- Platform:
--
Timestamp:
2025-11-11T13:32:32Z
--
Host:
Linux 6.12.57-desktop-1.mga10 x86_64
--
CMake:
4.1.2
-- CMake
generator:
Unix Makefiles
-- CMake build
tool:
/usr/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 (9
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:
/usr/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-prototypes
-Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith
-Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override
-Wno-delete-non-virtual-dtor
-Wno-unnamed-type-template-args -Wno-comment
-Wimplicit-fallthrough=3 -Wno-strict-overflow
-fdiagnostics-show-option -pthread -fomit-frame-pointer
-ffunction-sections -fdata-sections -msse3
-fvisibility=hidden -fvisibility-inlines-hidden -lcblas
-O3 -DNDEBUG -DNDEBUG
-- C++ flags
(Debug):
-fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor
-Waddress -Wsequence-point -Wformat -Wformat-security
-Wmissing-declarations -Wmissing-prototypes
-Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith
-Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override
-Wno-delete-non-virtual-dtor
-Wno-unnamed-type-template-args -Wno-comment
-Wimplicit-fallthrough=3 -Wno-strict-overflow
-fdiagnostics-show-option -pthread -fomit-frame-pointer
-ffunction-sections -fdata-sections -msse3
-fvisibility=hidden -fvisibility-inlines-hidden -lcblas
-g -O0 -DDEBUG -D_DEBUG
-- C
Compiler:
/usr/bin/cc
-- C flags
(Release):
-fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor
-Waddress -Wsequence-point -Wformat -Wformat-security
-Wmissing-declarations -Wmissing-prototypes
-Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith
-Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override
-Wno-delete-non-virtual-dtor
-Wno-unnamed-type-template-args -Wno-comment
-Wimplicit-fallthrough=3 -Wno-strict-overflow
-fdiagnostics-show-option -pthread -fomit-frame-pointer
-ffunction-sections -fdata-sections -msse3
-fvisibility=hidden -fvisibility-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-prototypes
-Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith
-Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override
-Wno-delete-non-virtual-dtor
-Wno-unnamed-type-template-args -Wno-comment
-Wimplicit-fallthrough=3 -Wno-strict-overflow
-fdiagnostics-show-option -pthread -fomit-frame-pointer
-ffunction-sections -fdata-sections -msse3
-fvisibility=hidden -fvisibility-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/lib
-- 3rdparty dependencies:
--
-- OpenCV modules:
-- To be
built:
alphamat aruco bgsegm bioinspired calib3d ccalib core
cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters
cudaimgproc cudalegacy cudaobjdetect 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 intensity_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.50)
--
TIFF:
/usr/lib64/libtiff.so (ver 42 / 4.7.1)
-- JPEG
2000:
OpenJPEG (ver 2.5.3)
--
OpenEXR:
OpenEXR::OpenEXR (ver 3.4.3)
--
GIF:
YES
--
HDR:
YES
--
SUNRASTER:
YES
--
PXM:
YES
--
PFM:
YES
--
-- Video I/O:
--
FFMPEG:
YES
--
avcodec:
YES (62.11.100)
--
avformat:
YES (62.3.100)
--
avutil:
YES (60.8.100)
--
swscale:
YES (9.1.100)
--
avresample:
NO
--
GStreamer:
YES (1.26.7)
--
v4l/v4l2:
YES (linux/videodev2.h)
--
-- Parallel
framework:
pthreads
--
--
Trace:
YES (with Intel ITT(3.25.4))
--
-- Other third-party libraries:
-- Intel
IPP:
2022.1.0 [2022.1.0]
--
at:
/usr/local/linux/multimedia/opencv-4.12.0/build/3rdparty/ippicv/ippicv_lnx/icv
-- Intel IPP
IW:
sources (2022.1.0)
--
at:
/usr/local/linux/multimedia/opencv-4.12.0/build/3rdparty/ippicv/ippicv_lnx/iw
--
VA:
YES
--
Lapack:
YES (/usr/lib64/liblapack.so /usr/lib64/libblas.so)
--
Eigen:
YES (ver 5.0.0)
-- Custom
HAL:
YES (ipp (ver 0.0.1))
--
Protobuf:
build (3.19.1)
--
Flatbuffers:
builtin/3rdparty (23.5.9)
--
-- NVIDIA
CUDA:
YES (ver 12.9, 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.12.0/3rdparty/include/opencl/1.2
-- Link
libraries:
Dynamic load
--
-- Python 3:
--
Interpreter:
/usr/bin/python3 (ver 3.13.7)
--
Libraries:
/usr/lib64/libpython3.13.so (ver 3.13.7)
-- 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):
/usr/bin/python3
--
--
Java:
--
ant:
/bin/ant (ver 1.10.15)
--
Java:
NO
--
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 (5.9s)
-- Generating done (1.1s)
-- Build files have been written to:
/usr/local/linux/multimedia/opencv-4.12.0/build
si jamais il ne trouve pas la bonne version d'Eigen
Eigen:
YES (ver ..)
il faudra modifier le fichier
cmake/OpenCVFindLibsPerf.cmake ainsi
if(HAVE_EIGEN)
if(DEFINED
EIGEN3_WORLD_VERSION) # CMake module
set(EIGEN_WORLD_VERSION ${EIGEN3_WORLD_VERSION})
set(EIGEN_MAJOR_VERSION ${EIGEN3_MAJOR_VERSION})
set(EIGEN_MINOR_VERSION ${EIGEN3_MINOR_VERSION})
elseif(DEFINED
Eigen3_VERSION_MAJOR)
set(EIGEN_WORLD_VERSION ${Eigen3_VERSION_MAJOR})
set(EIGEN_MAJOR_VERSION ${Eigen3_VERSION_MINOR})
set(EIGEN_MINOR_VERSION ${Eigen3_VERSION_PATCH})
else() # Eigen config
file
set(EIGEN_WORLD_VERSION ${EIGEN3_VERSION_MAJOR})
set(EIGEN_MAJOR_VERSION ${EIGEN3_VERSION_MINOR})
set(EIGEN_MINOR_VERSION ${EIGEN3_VERSION_PATCH})
endif()
on tape ensuite make, mais pour l'instant je bute sur
des erreurs à des problèmes de compatibilité entre CUDA et gcc
15.X
/usr/include/c++/15/type_traits(554): error: type name is
not allowed
: public
__bool_constant<__is_pointer(_Tp)>
^
/usr/include/c++/15/type_traits(554): error: identifier
"__is_pointer" is undefined
: public
__bool_constant<__is_pointer(_Tp)>
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.0.tar.gz
cela donne le répertoire frei0r-2.5.0 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
à 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-libnpp --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-libnpp --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 tape make puis
en tant que root make install
on retape configure avec
toutes ses options. Pour l'erreur suivante
ERROR: failed checking for nvcc.
En fait c'est un problème de compatibilité entre nvcc et gcc qui va générer toute une suite d'erreurs visibles dans le fichier ffbuild/config.log qui vont ressembler à ça
/usr/include/c++/15/x86_64-mageia-linux/bits/c++config.h(2803): error: user-defined literal operator not found
On peut toujours désactiver les fonctions autour de nvcc en retapant configure et en supprimant les options --enable-cuda-nvcc --nvcc=nvcc
Mais la page https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#host-compiler-support-policy nous indique que ce n'est pas compatible au delà de gcc 14, hors un gcc -v me donne
gcc version 15.2.0 (Mageia 15.2.0-1.mga10)
j'ai dû installer le package compat-cuda-gcc13, j'ai
ensuite renommer /bin/nvcc en /bin/nvccgood et
j'ai recréé un script bash exécutable /bin/nvcc qui
contient
#!/bin/bash
/bin/nvccgood -ccbin /bin/gcc-13 $@
On retape ./configure avec les options ci-dessus et c'est
reparti pour un tour.
Si OpenCV n'est pas bien reconnu il faudra taper préalablement
export CFLAGS="-I/usr/local/include/opencv4"/****************************************************************************************\
*
C++
11
*
\****************************************************************************************/
#ifndef CV_CXX11
/*# if __cplusplus >= 201103L || (defined(_MSC_VER)
&& _MSC_VER >= 1800)
# define CV_CXX11 1
# endif
#else
# if CV_CXX11 == 0
# undef CV_CXX11
# endif
#endif
#ifndef CV_CXX11
# error "OpenCV 4.x+ requires enabled C++11 support"*/
#endif
#define CV_CXX_MOVE_SEMANTICS 1
#define CV_CXX_MOVE(x) std::move(x)
#define CV_CXX_STD_ARRAY 1
//#include <array>
#ifndef CV_OVERRIDE
# define CV_OVERRIDE override
#endif
#ifndef CV_FINAL
# define CV_FINAL final
#endifmake -
on tape 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] |