Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (98)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • 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 (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (13649)

  • The other shoe drops

    13 octobre 2009

    Sure enough, Apple has announced iMovie 8.0.5 with support for the iFrame format. I win the prize !

  • Add support for building fuzzer tools for an individual demuxer

    10 octobre 2020, par Michael Niedermayer
    Add support for building fuzzer tools for an individual demuxer
    

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] Makefile
    • [DH] tools/Makefile
    • [DH] tools/target_dem_fuzzer.c
  • How to generate a GIF thumbnail from a video without saving individual frames to disk ?

    12 mars 2023, par Rabie Daddi

    I have a Node.js script that uses fluent-FFmpeg to generate a GIF thumbnail from a video for the first 4 seconds. Currently, the script saves individual frames as PNG images to disk, and then reads them back in to generate the GIF. However, this creates a lot of unnecessary I/O.

    &#xA;

    Is there a way to modify the script to generate the GIF directly from the video frames, without saving them to disk first ? Ideally, I would like to do this while still using FFmpeg for the processing.

    &#xA;

    Here's the current code for generating the frames and the GIF :

    &#xA;

    function generateFrames(videoUrl) {&#xA;  return new Promise((resolve, reject) => {&#xA;    ffmpeg(videoUrl)&#xA;      .setStartTime(0) // start at 0 seconds&#xA;      .setDuration(4) // cut 4 seconds&#xA;      .videoFilters(&#x27;scale=if(gte(iw\\,ih)\\,min(600\\,iw)\\,-2):if(lt(iw\\,ih)\\,min(600\\,ih)\\,-2)&#x27;)&#xA;      .fps(4)&#xA;      .output(&#x27;output/img%04d.png&#x27;) // output file pattern with %04d indicating a sequence number with four digits&#xA;      .on(&#x27;end&#x27;, () => {&#xA;        console.log(&#x27;GIF generated successfully!&#x27;);&#xA;        resolve()&#xA;      })&#xA;      .on(&#x27;error&#x27;, (err) => {&#xA;        console.log(&#x27;Error generating GIF: &#x27; &#x2B; err.message);&#xA;        reject()&#xA;      })&#xA;      .run();&#xA;  });&#xA;}&#xA;&#xA;function generateGif() {&#xA;  const inputPattern = &#x27;output/img%04d.png&#x27;;&#xA;  const outputFilename = &#x27;output/output2.gif&#x27;;&#xA;&#xA;  ffmpeg(inputPattern)&#xA;    .inputFPS(9)&#xA;    .output(outputFilename)&#xA;    .on(&#x27;error&#x27;, (err) => {&#xA;      console.log(&#x27;Error generating GIF: &#x27; &#x2B; err.message);&#xA;    })&#xA;    .run();&#xA;}&#xA;&#xA;&#xA;execute = async () => {&#xA;  await generateFrames(&#x27;video.mp4&#x27;)&#xA;  generateGif()&#xA;}&#xA;&#xA;execute()&#xA;

    &#xA;

    Any help or suggestions would be greatly appreciated. Thank you !

    &#xA;