Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (111)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accé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 (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (12930)

  • Record specific window using ffmpeg

    5 décembre 2022, par Ahmed A. Mansour

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

    


  • 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 ?