
Recherche avancée
Autres articles (46)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)
Sur d’autres sites (7670)
-
ffmpeg custom compile options with hardware/software support
14 mars 2023, par CapitalmindMy last compile enabled nvidia/cuda but even though I included —enable-nonfree in the configure, I had issues encoding videos, with outputs like :


ffmpeg -hwaccel cuvid -c:v h264_cuvid -resize 1920x1080 -i Input.mkv -c:a copy -c:v h264_nvenc -preset slow -rc vbr_hq -cq 18 Output.mkv


Giving errors like :


ffmpeg -hwaccel cuvid -c:v h264_cuvid -resize 1920x1080 -i /media/zuultux/Video/Movies/Lawrence.of.Arabia.1962.UHD.BluRay.2160p.TrueHD.Atmos.7.1.HEVC.mkv -c:a copy -c:v h264_nvenc -preset slow -rc vbr_hq -cq 18 /media/zuultux/Video/Lawrence.of.Arabia.1962.UHD.BluRay.1080p.TrueHD.Atmos.7.1.HEVC.mkv



[hevc_cuvid @ 0x5624718179c0] Codec hevc_cuvid is not supported.
Stream mapping:
 Stream #0:0 -> #0:0 (hevc (hevc_cuvid) -> h264 (h264_nvenc))
 Stream #0:1 -> #0:1 (copy)



My actual configure reads :


./configure --enable-nonfree --enable-cuda-nvcc --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64



There a heaps of options on Githhub. Can anyone suggest how to include parameters that specifically :


- 

- Toggle enable AMD64/Nvidia or non-hardware processing
- All free and non-free codecs, but particularly VC9, H264/265
- Or basically enable as many features as possible !








Note I already have ubuntu-restricted-extras installed.


Configuration used compiled correctly but gave errors when using. Several media files selected to test. nvidia-smi command responds NVIDIA-SMI 470.161.03 Driver Version : 470.161.03 CUDA Version : 11.4



Edit


After fixing the problem I thought to share my results on Github. https://github.com/Capitalmind/makeffmpeg


-
why is this intel hardware accellerated transcoding in ffmpeg not working ?
1er avril 2016, par JabbI compiled ffmpeg with intel hardware accelleration, but I cannot transcode the simpsons 720p video from http://www.h264info.com/clips.html with success.
this is the error I get :
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
and this is the full output from ffmpeg. What could be wrong ?
root@ubuntu:/tmp# ffmpeg -i test.mp4 -vcodec h264_qsv out1.yuv
ffmpeg version N-79177-ga677121 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-libmfx
libavutil 55. 19.100 / 55. 19.100
libavcodec 57. 32.100 / 57. 32.100
libavformat 57. 29.101 / 57. 29.101
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 40.102 / 6. 40.102
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
creation_time : 2007-02-19 05:03:04
Duration: 00:02:17.30, start: 0.000000, bitrate: 4283 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x544, 4221 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
Metadata:
creation_time : 2007-02-19 05:03:04
handler_name : GPAC ISO Video Handler
Stream #0:1(und): Audio: aac (HE-AAC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 64 kb/s (default)
Metadata:
creation_time : 2007-02-19 05:03:08
handler_name : GPAC ISO Audio Handler
[h264_qsv @ 0x2f626a0] Error initializing an internal MFX session
Output #0, rawvideo, to 'out1.yuv':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
Stream #0:0(und): Video: h264, none, q=2-31, 128 kb/s, 23.98 fps (default)
Metadata:
creation_time : 2007-02-19 05:03:04
handler_name : GPAC ISO Video Handler
encoder : Lavc57.32.100 h264_qsv
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height -
LibAV cannot find hardware acceleration but ffmpeg does. compiled using vcpkg [closed]
28 novembre 2024, par CottonBudsI'm new to ffmpeg and I've been specifically using
libav
as a library for C++. I'm having troubles withlibav
not finding "qsv" as hardware acceleration even though I compiledffmpeg
with "qsv".

ffmpeg.exe
is working normally and can see "qsv" but not my program that uses libav libraries.

I compiled it on Windows using vcpkg.


Here are some screenshots




Here
ffmpeg.exe
can see it
when I run this code

output :



it cant see it
Here is my
CMakeLists.txt
:

cmake_minimum_required (VERSION 3.12)

project ("ViewTether")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_TOOLCHAIN_FILE "C:/vcpkg/scripts/buildsystems/vcpkg.cmake")
set(QT_INSTALLATION_PATH "C:/Qt/6.8.0")

set(DEVICE_INSTALLER_64_PATH "${CMAKE_SOURCE_DIR}/thirdparty/usbmmidd_v2/deviceinstaller64.exe ")
add_definitions(-DDEVICE_INSTALLER_64_PATH=\"${DEVICE_INSTALLER_64_PATH}\")

# Include headers so that moc can be generated
# https://stackoverflow.com/questions/52413341/why-is-cmake-not-mocing-my-q-object-headers
file (GLOB_RECURSE SOURCES "./ViewTether/src/*.cpp" "./ViewTether/include/*.h" "./ViewTether/form/*.ui")
include_directories(./ViewTether/include)

set(CMAKE_PREFIX_PATH QT_INSTALLATION_PATH)
find_package(Qt6 REQUIRED COMPONENTS Core Widgets Network)
qt_standard_project_setup() 
 
add_executable(ViewTether ${SOURCES} "main.cpp" )

set(CMAKE_MODULE_PATH "C:/vcpkg/installed/x64-windows/share/ffmpeg" ${CMAKE_MODULE_PATH})
find_package(FFMPEG REQUIRED)
target_include_directories(ViewTether PRIVATE ${FFMPEG_INCLUDE_DIRS})
target_link_directories(ViewTether PRIVATE ${FFMPEG_LIBRARY_DIRS})
target_link_libraries(ViewTether PRIVATE ${FFMPEG_LIBRARIES})
message(${FFMPEG_LIBRARIES})

target_link_libraries(ViewTether PRIVATE Qt6::Core Qt6::Widgets Qt6::Network bcrypt mfplat mfuuid secur32)



I've been stuck here for weeks
I cant get hardware acceleration to run with my program


EDIT 1


$FFMPEG_LIBRARIES showed me this


optimizedC:/vcpkg/installed/x64-windows/lib/avfilter.libdebugC:/vcpkg/installed/x64-windows/debug/lib/avfilter.liboptimizedC:/vcpkg/installed/x64-windows/lib/avformat.libdebugC:/vcpkg/installed/x64-windows/debug/lib/avformat.liboptimizedC:/vcpkg/installed/x64-windows/lib/avcodec.libdebugC:/vcpkg/installed/x64-windows/debug/lib/avcodec.liboptimizedC:/vcpkg/installed/x64-windows/lib/swscale.libdebugC:/vcpkg/installed/x64-windows/debug/lib/swscale.liboptimizedC:/vcpkg/installed/x64-windows/lib/avutil.libdebugC:/vcpkg/installed/x64-windows/debug/lib/avutil.lib


I dont understand it well but it said on the vcpkg-cmake-wrapper.cmake


if(ON)
 find_package(PkgConfig )
 pkg_check_modules(libmfx IMPORTED_TARGET libmfx)
 list(APPEND FFMPEG_LIBRARIES PkgConfig::libmfx)
 if(vcpkg_no_avcodec_target AND TARGET FFmpeg::avcodec)
 target_link_libraries(FFmpeg::avcodec INTERFACE PkgConfig::libmfx)
 endif()
 if(vcpkg_no_avutil_target AND TARGET FFmpeg::avutil)
 target_link_libraries(FFmpeg::avutil INTERFACE PkgConfig::libmfx)
 endif()
endif()



So I'm assuming that if it found libmfx it should show on my FFMPEG_LIBRARIES