
Recherche avancée
Médias (1)
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (111)
-
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 -
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.
Sur d’autres sites (9768)
-
Loop through images, detect if contains color, put in subfolder
16 avril 2022, par SamoI have two kinds of images in my folder : One is all black, the other one is black with yellow (#f8fa27). I am trying to put all the images with yellow colour in a subfolder. But I don't know how this is applicable.


I would like to implement this with ImageMagick or FFMPEG. If possible, shell is redundant and I would like the loop via CMD. If you happen to know of another option that also works, that's no problem either.


I've read about https://imagemagick.org/script/fx.php but I don't know how to apply it with my poor skills.


Edit for now I managed to fix it with python (shitty code but it works)


import cv2
import os
import glob

#check if extension is png
for filename in glob.glob("*.png"):
 #return to folder where all images are saved
 os.chdir('C:/Users/.../.../images')
 #make image black and white
 image = cv2.imread(filename, 0)
 #if image is fully black
 if cv2.countNonZero(image) == 0:
 print ("Black image, skipped")
 else:
 #colored image
 print ("Colored image")
 #restore true colors (rgb in my case, check wiki)
 image = cv2.imread(filename, cv2.COLOR_BGR2RGB)
 #folder to save colored images
 os.chdir(os.getcwd()+"/yellow")
 #save image to subfolder
 cv2.imwrite(filename,image)



Thank you :) !


-
Record specific window using ffmpeg
5 décembre 2022, par Ahmed A. MansourI have been trying the below code (which I found on other similiar problem on this site here : How to record a specific window using ffmpeg But it gives me black video and the same video is not playable by windows media player (it works on vlc but with black video..)


ffmpeg -f gdigrab -framerate 30 -i title="german.avi - VLC media player" -b:v 3M germ.flv



Video example :
Weird thumbnail by WMP which shows it can't play it
Black screen as described, but it opens with black video in VLC


I tried the other suggestions, but this one sometimes (less than 40% of the time) works.
I also noticed it doesn't show the window main title, which is a bit confusing, as it causes the mouse cursor to appear a little down where it should be.


-
How to add background image for text with text size on a video in FFmpeg ?
24 octobre 2019, par manwteinIs there way to add a background image under the text on the video in FFmpeg ?
I can add black background using ’box’, but i need to add some certain image. I tried to use ’drawtext’ on a image and then overlayed it on the video, but i don’t know text’s width and height for scaling the image.
"-i",
"D:/AndroidProjects/Movies/VideoSamples/VideoShort1.mp4",
"-i",
"D:/AndroidProjects/Movies/ImageSamples/SampleImage.jpeg",
"-filter_complex",
"[0:v]drawtext=text='Example':fontcolor=#DB7093:fontsize=120:box=1:boxcolor=black@0.8:boxborderw=5:x='(w/2) - (tw/2)':y='h - ((h/2) - (th/2))",
"-s",
"1280x720",
"-y",
"D:/AndroidProjects/Movies/FFmpegSampleShort0.mp4"I expect to get video with some image background under my text instead black color.