
Recherche avancée
Autres articles (97)
-
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...) -
Prérequis à l’installation
31 janvier 2010, parPréambule
Cet article n’a pas pour but de détailler les installations de ces logiciels mais plutôt de donner des informations sur leur configuration spécifique.
Avant toute chose SPIPMotion tout comme MediaSPIP est fait pour tourner sur des distributions Linux de type Debian ou dérivées (Ubuntu...). Les documentations de ce site se réfèrent donc à ces distributions. Il est également possible de l’utiliser sur d’autres distributions Linux mais aucune garantie de bon fonctionnement n’est possible.
Il (...)
Sur d’autres sites (9385)
-
ffmpeg hardware encoding and/or decoding when using v360 and crop filters ? [closed]
25 août 2024, par EricI'm using ffmpeg to dewarp a fisheye camera. It works great but is doing 100% of the work on the CPU.


ffmpeg \
 -hide_banner \
 -v error \
 -allowed_media_types video \
 -fflags nobuffer \
 -flags low_delay \
 -timeout 5000000 \
 -user_agent go2rtc/ffmpeg \
 -rtsp_flags prefer_tcp \
 -i my_camera_stream \
 -vf v360=fisheye:output=dfisheye:ih_fov=180:iv_fov=180:pitch=90,crop=in_w:in_h/2:0:in_h/2 \
 -c:v libx264 \
 -g 50 \
 -profile:v high \
 -level:v 4.1 \
 -preset:v superfast \
 -tune:v zerolatency \
 -pix_fmt:v yuv420p \
 -an \
 -user_agent ffmpeg/go2rtc \
 -rtsp_transport tcp \
 -f rtsp rtsp://127.0.0.1:8554/my_hash



I'm trying to see if any of the decode / encode work can be offloaded to hardware via vaapi but not having much luck.


My attempt at enabling hwaccel is failing


ffmpeg \
 -hide_banner \
 -v error \
 -allowed_media_types video \
 -fflags nobuffer \
 -flags low_delay \
 -timeout 5000000 \
 -threads 2 \
 -hwaccel vaapi \
 -hwaccel_flags allow_profile_mismatch \
 -hwaccel_device /dev/dri/renderD128 \
 -hwaccel_output_format vaapi \
 -rtsp_flags prefer_tcp \
 -i rtsps://my_camera_stream \
 -vf v360=fisheye:output=dfisheye:ih_fov=180:iv_fov=180:pitch=90,crop=in_w:in_h/2:0:in_h/2:,scale_vaapi=in_w:in_h \
 -c:v h264_vaapi \
 -g 50 \
 -profile:v high \
 -level:v 4.1 \
 -preset:v superfast \
 -tune:v zerolatency \
 -pix_fmt:v yuv420p \
 -an \
 -user_agent ffmpeg/go2rtc \
 -rtsp_transport tcp \
 -f rtsp rtsp://127.0.0.1:8554/my_hash



With an error stating :


Impossible to convert between the formats supported by the filter 'Parsed_crop_1' and the filter 'auto_scale_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0



- 

- Is it even possible to make use of vaapi hardware support anywhere in the ffmpeg pipeline when using v360 and crop filters ?
- If so what am I doing wrong.






-
avcodec : add D3D12VA hardware HEVC encoder
22 août 2023, par Tong Wuavcodec : add D3D12VA hardware HEVC encoder
This implementation is based on D3D12 Video Encoding Spec :
https://microsoft.github.io/DirectX-Specs/d3d/D3D12VideoEncoding.htmlSample command line for transcoding :
ffmpeg.exe -hwaccel d3d12va -hwaccel_output_format d3d12 -i input.mp4c:v hevc_d3d12va output.mp4
Signed-off-by : Tong Wu <tong1.wu@intel.com>
-
ffmpeg : filter_complex and hardware decoder
23 juin 2017, par HettHow can use hardware decoder with
filter_complex
?ffmpeg -v error -hwaccel cuvid -c:v h264_cuvid -i video.mp4 -filter_complex "[0:v]trim=1079:1089,fade=in:st=1079:d=1,fade=out:st=1088:d=1,setpts=PTS-STARTPTS[v0];[0:a]atrim=1079:1089,afade=in:st=1079:d=1,afade=out:st=1088:d=1,asetpts=PTS-STARTPTS[a0];[0:v]trim=1799:1819,fade=in:st=1799:d=1,fade=out:st=1818:d=1,setpts=PTS-STARTPTS[v1];[0:a]atrim=1799:1819,afade=in:st=1799:d=1,afade=out:st=1818:d=1,asetpts=PTS-STARTPTS[a1];[v0][a0][v1][a1]concat=n=2:v=1:a=1[out]" -map "[out]" -y -vcodec nvenc_h264 -strict -2 -acodec aac -crf 23 -f mp4 -preset:v slow -movflags faststart /dev/null
out :
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
title :
encoder : Lavf57.56.100
comment :
Duration: 00:24:20.49, start: 0.000000, bitrate: 8194 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 7996 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
Metadata:
handler_name : SoundHandler
Codec AVOption crf (Select the quality for constant quality mode) specified for output file #0 (/dev/null) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
Stream mapping:
Stream #0:0 (h264_cuvid) -> trim
Stream #0:0 (h264_cuvid) -> trim
Stream #0:1 (aac) -> atrim
Stream #0:1 (aac) -> atrim
concat:out:a0 -> Stream #0:0 (aac)
concat:out:v0 -> Stream #0:1 (nvenc_h264)
Press [q] to stop, [?] for help
Impossible to convert between the formats supported by the filter 'Parsed_trim_0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0
Conversion failed!If I remove
-c:v h264_cuvid
then it work fine, but very slow...