
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (17)
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
Participer à sa documentation
10 avril 2011La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
Pour ce faire, vous pouvez vous inscrire sur (...)
Sur d’autres sites (3211)
-
Introducing the Matomo Connector for Looker Studio (Formerly Google Data Studio)
26 janvier 2024, par Erin — Community -
Correct syntax for using ffmpeg CUDA to crop and scale videos [closed]
9 septembre 2024, par StuartMy NVIDIA and FFMPEG configuration is as follows :


Linux TestBox1 6.8.0-41-generic #41-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 2 20:41:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux


NVIDIA-Linux-x86_64-560.31.02


ffmpeg version git-2024-08-19-507c2a577
encoders:
 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)
decoders:
 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)
filters:
 ... bilateral_cuda V->V GPU accelerated bilateral filter
 T.. bwdif_cuda V->V Deinterlace CUDA frames
 ... chromakey_cuda V->V GPU accelerated chromakey filter
 ... colorspace_cuda V->V CUDA accelerated video color converter
 ..C crop V->V Crop the input video.
 T.C cropdetect V->V Auto-detect crop size.
 ... hwupload_cuda V->V Upload a system memory frame to a CUDA device.
 ... overlay_cuda VV->V Overlay one video on top of another using CUDA
 ... scale_cuda V->V GPU accelerated video resizer
 ... scale_npp V->V NVIDIA Performance Primitives video scaling and format conversion
 ... scale2ref_npp VV->VV NVIDIA Performance Primitives video scaling and format conversion to the given reference.
 ... sharpen_npp V->V NVIDIA Performance Primitives video sharpening filter.
 ... thumbnail_cuda V->V Select the most representative frame in a given sequence of consecutive frames.
 ... transpose_npp V->V NVIDIA Performance Primitives video transpose
 T.. yadif_cuda V->V Deinterlace CUDA frames



I would like to be able to use CUDA to crop and scale videos but I cannot find the correct syntax.
My efforts usually work in terms of the scale but not the crop, here is an example of the type of problems I have been having :


The source file in this example is a short mpeg2 video (960x540 with black bars top and bottom). The command is currently run from a bash script.


ffmpeg -y -hwaccel cuda -hwaccel_output_format cuda -c:v mpeg2_cuvid -crop 960x408x0x66 -i $1 -vf scale_npp=1280x544 -c:a copy -c:v h264_nvenc -b:v 2M -preset slow $2



This is throwing the following error :


[mpeg2_cuvid @ 0x5e6d9deb56c0] cuvid decode callback error
[vist#0:0/mpeg2video @ 0x5e6d9de85b40] [dec:mpeg2_cuvid @ 0x5e6d9de7b7c0] Decoding error: Generic error in an external library



Have I a problem with my ffmpeg build, should the list of filters include something like crop_cuda or crop_npp or have I just got the wrong syntax to perform everything on the GPU (is it even possible).


-
ffmpeg drawtext Arabic fonts doesn't render correctly [closed]
11 février 2024, par Mahmoud Abdellatiefwhat i'm trying to achieve :
loop an image into a video and overlay Arabic Text from the Qur'an on it including the text diacritical mark, using a custom font.


example of the text to be rendered :


بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ



the font used :
https://fonts.qurancomplex.gov.sa/wp02/wp-content/uploads/2024/01/UthmanicHafs_v22.zip


font's unicode module :


Unicode Module 
 
The Research and Development Unit in the Computer Department at King Fahd Glorious Qur’an Printing Complex relied on the unicode system unicode to create (Hafs) font in the Uthmanic Script, because this system is followed globally among computer and systems manufacturing companies in the world.

Unicode organization is a global code group that is used to define all codes and letters used in most of the world's languages and gathered in one code to facilitate the presentation and delivery on information despite of the language used. This global coding uses 1 to 4 bytes (byte = 8 bits) to encode letters, and so far only a third of the number available in Unicode organization to encode the letters of these languages.

Taking into account Hafs font with the Uthmanic Script, which was built entirely on the unicode system. We can explore the basic letters that were formed according to the following figure:

Whereas the font was developed starting from code (0600 ) to code (066FF ) Taking into account there are several encoded letters that haven't been used at all so it was replaces with the code []. The displayed copy above is the one that is been developed from the basic Arabic coding (0600-06FF) which was updated by Unicode organization in 2009.



expected result :
exported video with correctly rendered text using the given font.


actual result :
the text rendered contains only the diacritical marks ( which are the accents on top of the letters ) without the actual letters.



what i tried :
this is my test command which exports just an image for faster results :


Ffmpeg -loop 1 -i "image-2.jpg" -vf "drawtext=text='بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ':fontsize=124:fontcolor=white:fontfile='UthmanicHafsV22.ttf':x=(w-text_w)/2:y=(h-text_h)/2" -frames:v 1 "output.png"



- 

- tried adding ft_load_flags , almost tried all of them
- tried text_shaping=1 , with no success
- tried textfile instead of text
- tried changing the font, any font i try with it always have different problems, either some squares instead of the diacritical mark










p.s im having same results on both latest ffmpeg compiled by myself on macos terminal with all required libraries enabled , and also on flutter ffmpeg kit full gpl