Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (111)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En 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 à (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (7784)

  • Understanding ffmpeg -benchmark results

    6 septembre 2022, par Ivy Growing

    Adding -benchmark flag to ffmpeg command resutls with addition of following 2 lines in the shell output :

    


    bench: utime=10.125s stime=4.234s rtime=5.606s
bench: maxrss=110080kB


    


    The maxrss serves to indicate the maximum RAM used during the ffmpeg execution. The utime, stime, rtime indicate accordingly :

    


      

    • user time ;
    • 


    • system time ;
    • 


    • real time.
    • 


    


    I tried to understand the meaning of these times from the source code and failed. Please, help.

    


      

    1. Which of these times indicate how much time was human waiting while the ffpmeg was processing the video ?
    2. 


    3. Can this time be seen directly or it's a combination/calculation of these 3 parameters ?
    4. 


    5. How it can be for certain videos utime > rtime and for others utime < rtime ?
    6. 


    


  • Issues grabbing frames from an mp4 video using ffmpeg on java

    31 mars 2015, par TamirW

    I am trying to grab a few frames from an mp4 video files using the ffmpeg library (java). Code snippet below.
    The issues I’m facing are :

    • In some (but not all) the videos I’m testing, I am getting the following warning when grabbing the frames : [swscaler @ 0x7fa642a53600] bad src image pointers
    • Sometimes, the frames I get are just blanks (black), sometimes they contain the last frame in the video (meaning that ALL the frames show the same image). Interestingly, when I’m not getting the above warning, the frames are just fine.

    Any clue or direction about how to debug/solve this issue would be greatly appreciated.

       FFmpegFrameGrabber g = new FFmpegFrameGrabber(video);
       List<bufferedimage> frames = new ArrayList<bufferedimage>();
       try {
           g.start();

           int i = 1, noOfFrames = g.getLengthInFrames();
           long FR = Math.round(g.getFrameRate());

           while (i &lt; noOfFrames) {
               g.setFrameNumber(i);
               IplImage img = g.grab();
               BufferedImage bimg = img.getBufferedImage();
               frames.add(bimg);

               i += FR;
           }
    </bufferedimage></bufferedimage>
  • Use palette when using FFMpeg overlay

    16 avril 2017, par nbrogi

    I’m trying to add an overlay to an animated GIF with FFMpeg.

    It works, but the quality is pretty dismal. Basically, I’m unable to use the palette that I generate, and that leads to a lot of dither. The main GIF (meaning, not the overlay) is also very low resolution.

    I would also like to apply opacity to the watermark (and at one point that worked, too), but that’s a plus.

    This is what I have :

    ffmpeg -v error -i image.gif -vf 'palettegen' palette.png -y;
    ffmpeg -v error -i image.gif -i watermark.gif -i palette.png -filter_complex '[1:v]scale=80:30, [0:v]overlay=(main_w-overlay_w) - main_h/30:(main_h-overlay_h) - main_h/30, paletteuse' -an image-watermark.gif -y

    At one point I was able to use the palette for the main GIF, so its quality improved. However, the watermark looked pretty bad. It’s pretty obvious that I have to do the overlay, and then the palette, so that the palette include the colors present in the watermark. However, I have no idea how to do that.

    Can someone point me in the right direction ?