
Recherche avancée
Autres articles (110)
-
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 (...) -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras. -
Que fait exactement ce script ?
18 janvier 2011, parCe script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
Installation de dépendances de MediaSPIP
Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)
Sur d’autres sites (5028)
-
OpenCL YUV420P black pixel
30 avril 2021, par Albert TinonI'm working on an FFmpeg OpenCL filter for converting GoPro Max .360 files in Google EAC projected files.
For doing that I need to "stack" the 2 input streams to a twice height output.
It is working very well at a realtime speed. (The working code is in comment)


For going further I need to replace some pixels with some specific colors.
I wrote some macros for making RGB->YUV conversion. But I get only some green or pink pixel (only grey is OK).
this is my test code (with stacking in comment)


#define Y(R,G,B) 0.299 * R + 0.587 * G + 0.114 * B
#define U(R,G,B) -0.147 * R - 0.289 * G + 0.436 * B
#define V(R,G,B) 0.615 * R - 0.515 * G - 0.100 * B
#define YUV(R,G,B) (float4)(Y(R,G,B),U(R,G,B),V(R,G,B),0)

__kernel void gopromax_stack(__write_only image2d_t dst,
 __read_only image2d_t gopromax_front,
 __read_only image2d_t gopromax_rear)
{
 const sampler_t sampler = (CLK_NORMALIZED_COORDS_FALSE |
 CLK_FILTER_NEAREST);
 
 float4 val;
 int2 dst_size = get_image_dim(dst);
 int2 loc = (int2)(get_global_id(0), get_global_id(1));
 int split_loc = dst_size.y/2;

 if (loc.y < split_loc)
 {
 // working code for stacking
 // val = read_imagef(gopromax_front, sampler, (int2)(loc.x, loc.y));

 // testing to put grey (working)
 val = YUV(0.5f,0.5f,0.5f);
 }
 else
 {
 // working code for stacking
 // val = read_imagef(gopromax_rear, sampler, (int2)(loc.x, loc.y-split_loc));

 // testing to put black (gives green !)
 val = YUV(0,0,0);
 }

 if ((loc.xcode>


I tried many think I cannot succeed to generate black or anything except grey.
What did I make wrong ?
I supposed that my pixels are YUV because I specified yuv420p as the format in my filter :


-filter_complex '[0:0]format=yuv420p,hwupload[a] , [0:4]format=yuv420p,hwupload[b], [a][b]gopromax_opencl, hwdownload,format=yuv420p'



The source streams are in hevc / nv12.


Thanks all for your help.


-
imgutils : add function to clear an image to black
22 juillet 2017, par wm4imgutils : add function to clear an image to black
Black isn't always just memset(ptr, 0, size). Limited YUV in particular
requires relatively non-obvious values, and filling a frame with
repeating 0 bytes is disallowed in some contexts. With component sizes
larger than 8 or packed YUV, this can become relatively complicated. So
having a generic function for this seems helpful.In order to handle the complex cases in a generic way without destroying
performance, this code attempts to compute a black pixel, and then uses
that value to clear the image data quickly by using a function like
memset.Common cases like yuv410p10 or rgba can't be handled with a simple
memset, so there is some code to fill memory with 2/4/8 byte patterns.
For the remaining cases, a generic slow fallback is used.Signed-off-by : Anton Khirnov <anton@khirnov.net>
Merged from Libav commit 45df7adc1d9b7.
-
Watermarking script from the given image
26 mars 2018, par MarasmiusGood day, I recently found a script for drawing a watermark on the video (link to the script - https://github.com/ham-grey/QRWatermark ), the script generates a watermark for the given text, but I would like the watermark to be taken from beforehand the generated picture, is it possible ?
Alas, I am far from programming, but I must begin to understand, at least, the basics.