
Recherche avancée
Autres articles (60)
-
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (6624)
-
ffmpeg convert white color to alpha
11 janvier 2021, par tonyHello i took a picture with my camera :a drawing of a square frame on a white paper ; i'm trying to convert the white to transparent and keep the black color frame.


So i started making 1 palette with only 2 colors to make the colors uniform and 1 palette to add the transparency


ffmpeg -f lavfi -i "color=color=white:100x100" -f lavfi -i "color=color=black:100x100" -filter_complex "[0][1]hstack" -frames:v 1 blackwhite.png`
ffmpeg -i blackwhite.png -filter_complex "[0]split[a][b];[a]palettegen[pal1];[b]palettegen=reserve_transparent=on:transparency_color=white[pal2]" -map [pal1] palette1.png -map [pal2] palette2.png



then i mapped the image png of the frame to convert the white to transparent and overlayed the result to a red background


ffmpeg -i image.png -i palette1.png -i palette2.png -i background.png -filter_complex "[0:v][1:v]paletteuse=dither=bayer[a],[a]split[a1][a2];[a1][2:v]paletteuse=alpha_threshold=128[c];[3:v][c]overlay[d]" -map [a2] -c:v png out.png -map [d] -c:v png out1.png



the png mapped to the first palette (as a test) comes as it should be, pure black and white,the second comes with no transparency at all and covers the background
what am i doing wrong ?


-
avfilter/vf_ocr : add white space to whitelist
18 mars 2021, par Dominic Mayersavfilter/vf_ocr : add white space to whitelist
Fixes #9151. The current version of libavfilter/vf_ocr.c does not have white
space in the default whitelist. But it is recommanded to include white
space. See https://github.com/tesseract-ocr/tesseract/issues/2923Signed-off-by : Marton Balint <cus@passwd.hu>
-
ffmpeg - adding white background to complex png command
5 août 2022, par Uriel RomanoI have a complex concatenation of commands working perfectly :


ffmpeg -r 24 -i "D:\batches\S3025C-SV_"%%03d.png -vf "scale=out_color_matrix=bt709,eq=gamma=1:saturation=1,fps=25, crop=trunc(iw/2)*2:trunc(ih/2)*2" -color_primaries bt709 -color_trc bt709 -colorspace bt709 "D:\batches\S3025C-SV.mp4"


Now I need to add a white background to this mp4 render, as ffmpeg is using a black one by default. I've found the following command here :


-filter_complex "[0:v] setpts=PTS-STARTPTS [graphs]; [1:v][graphs] overlay=shortest=1 [out]" -map "[out]"


How could I combine this operation into the first one ? I've tried a couple of different syntaxes but couldn't get it to work.


Thanks for your help !