Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (16)

  • Les statuts des instances de mutualisation

    13 mars 2010, par

    Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
    Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)

  • L’espace de configuration de MediaSPIP

    29 novembre 2010, par

    L’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
    Il permet de configurer finement votre site.
    La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (4120)

  • Loop through images, detect if contains color, put in subfolder

    16 avril 2022, par Samo

    I 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 webuster

    I’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 OneWorld

    I 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