
Recherche avancée
Autres articles (77)
-
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 à (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (8804)
-
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 :) !


-
Replace frames in an AVI with Java
12 juillet 2018, par webusterI’m recording some screencasts and my crap recorder (Camtasia) recorded 2000 videos with a brief black flash (2-3 frames) at, or near the beginning of each.
I’m looking for a way to automate the replacement of the black frames inside each video with FFmpeg, and I can currently detect which frames are black.
The problem I have is now : How can I replace frame number X with the content of frame number X-1 in an AVI video ? Not looking to shorten the video, but just to replace a frame in-place.
Here’s what I have so far :
FFmpegFrameGrabber g = new FFmpegFrameGrabber("res/video.avi");
g.start();
FFmpegFrameRecorder recorder = new FFmpegFrameRecorder(new FileOutputStream(new File("res/video_out.avi")), g.getImageWidth(), g.getImageHeight(), 2);
recorder.setFormat("avi");
recorder.setPixelFormat(AV_PIX_FMT_YUV420P);
recorder.setFrameRate(30);
recorder.setVideoCodec(AV_CODEC_ID_H264);
recorder.setVideoQuality(10);
recorder.setSampleFormat(AV_SAMPLE_FMT_FLTP);
recorder.setSampleRate(48000);
recorder.setAudioCodec(AV_CODEC_ID_AAC);
recorder.setAudioQuality(10);
g.setFrameNumber(1);
recorder.setFrameNumber(2);
recorder.record(g.grab());
g.close();
recorder.close();
recorder.release();And I’m getting a video back with empty frames (not even black), so I might be messing something here.
Anyone with experience with FFmpeg ?
-
Is there a way to convert a VP9 webm video into CIELAB colourspace in FFMPEG to improve alpha compositing
18 août 2022, par OneWorldI was wondering if there is an option / command to convert a webm VP9 video into CIELAB colour space in FFMPEG ?


I did a search for CIELAB colour space in FFMPEG and couldn't find anything.


I want to reduce the appearance of black edges by pushing into CIELAB space before doing the overlay / alpha compositing. See this post here :-


moviepy black border around png when compositing into an MP4


How can I do that in FFMPEG ?


Any help would be much appreciated.


Kind regards