Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (111)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (12830)

  • Generating Video from Downloaded Images Using Fluent-FFmpeg : Issue with Multiple Image Inputs

    11 août 2023, par Pratham Bhagat

    I am having trouble creating Video from multiple images using fluent-ffmpeg in node.js.

    


    Here, I am getting the images from rquest body and downloading them in **temp **directory

    


       const imageUrls = req.body.imageUrls;
   const timeInBetween = parseFloat(req.query.time_in_between) || 1.0;

const tempDir = path.join(
      context.executionContext.functionDirectory,
      "temp"
    );

const downloadedImages = await Promise.all(
      imageUrls.map(async (imageUrl, index) => {
        try {
          const response = await axios.get(imageUrl, {
            responseType: "arraybuffer",
          });
          const imageName = `image_${index + 1}.png`;
          const imagePath = path.join(tempDir, imageName);
          await fs.writeFile(imagePath, response.data);
          return imagePath;
        } catch (error) {
          context.log(`Error downloading ${imageUrl}: ${error.message}`);
          return null;
        }
      })
    );


    


    I want to combine these images that are in downloadedImages array and create a video

    


    const outputVideoPath = path.join(tempDir, "output.mp4");

    let ffmpegCommand = ffmpeg();

    for (let i = 0; i < downloadedImages.length; i++) {
      context.log(downloadedImages.length);
      ffmpegCommand
        .input(downloadedImages[i])

        .inputOptions(["-framerate", `1/${timeInBetween}`])
        .inputFormat("image2")
        .videoCodec("libx264")
        .outputOptions(["-pix_fmt", "yuv420p"]);
    }

    ffmpegCommand
      .output(outputVideoPath)
      .on("end", () => {
        context.log("Video generation successful.");
        context.res = {
          status: 200,
          body: "Video generation and cleanup successful.",
        };
      })
      .on("error", (err) => {
        context.log.error("Error generating video:", err.message);
        context.res = {
          status: 500,
          body: "Error generating video: " + err.message,
        };
      })
      .run();


    


    By running it and giving value of "time_in_between" as 2 I get video of 2 seconds with a single image.

    


      

    • Utilized Fluent-FFmpeg library to generate a video from a list of downloaded images.
    • 


    • Expected the video to include all images, each displayed for a specified duration.
    • 


    • Tried mapping through the image paths and using chained inputs for each image.
    • 


    • Expected the video to have a sequence of images displayed.
    • 


    • Observed that the generated video only contained the first image and was of 0 seconds duration.
    • 


    


  • avcodec : Implement mpeg4 nvdec hwaccel

    16 novembre 2017, par Philip Langdale
    avcodec : Implement mpeg4 nvdec hwaccel
    

    This was predictably nightmarish, given how ridiculous mpeg4 is.
    I had to stare at the cuvid parser output for a long time to work
    out what each field was supposed to be, and even then, I still don't
    fully understand some of them. Particularly :

    vop_coded : If I'm reading the decoder correctly, this flag will always
    be 1 as the decoder will not pass the hwaccel any frame
    where it is not 1.
    divx_flags : There's obviously no documentation on what the possible
    flags are. I simply observed that this is '0' for a
    normal bitstream and '5' for packed b-frames.
    gmc_enabled : I had a number of guesses as to what this mapped to.
    I picked the condition I did based on when the cuvid
    parser was setting flag.

    Also note that as with the vdpau hwaccel, the decoder needs to
    consume the entire frame and not the slice.

    • [DH] Changelog
    • [DH] configure
    • [DH] libavcodec/Makefile
    • [DH] libavcodec/allcodecs.c
    • [DH] libavcodec/h263dec.c
    • [DH] libavcodec/nvdec.c
    • [DH] libavcodec/nvdec_mpeg4.c
    • [DH] libavcodec/version.h
  • Analytics for the Internet of Things : collecting all your things’ data with Piwik to stay in control ?

    25 novembre 2015, par Matthieu Aubry — About

    At Piwik and Piwik PRO, our mission is to create the leading free and open source analytics platform, and supporting global organisations and communities to keep full control over their data.

    Our broad mission started 8 years ago and we focused at first helping people to liberate their website analytics data, then liberate their mobile app analytics data. But it is clear that there is much more than Web + Mobile : data is everywhere and a lot more data is being generated by software, people and their activities, robots, sensors…

    I’d like to share an interesting article which highlights one of the growing trends of technology : the rise of the Internet Of Things : 6 Ways Analytics And The Internet Of Things Will Transform Business.

    Here is an extract :

    The tech industry is no stranger to change, but the data derived from the IoT is taking disruption to a new level.

    At IBM’s Insight conference last month, Bob Picciano, senior vice president of IBM Analytics, talked about the rise of the “cognitive business”, or an enterprise that engages with analytics to improve its customer relations, business processes, and decision-making capabilities.

    There are dueling predictions over how ubiquitous the Internet of Things will be, but most indicate that the marketplace will host between 50 and 75 billion connected objects by 2020, signaling novel challenges for hardware manufacturing and development. Software engineers, likewise, may need to completely revamp programs to better exploit the influx of data, while innovators need to wrestle with the changes wrought by analytics.

    IBM’s Insight event unfolded in light of this wave of disruption. The lineup of corporate presenters converged on the same message : Analytics is for everyone, and your viability in the marketplace depends on it.

    […]

    IBM’s Insight 2015 conference sounded off on the most important trends in data usage and management. It also served a wake-up call for developers, engineers, and tech leaders. As the Internet of Things alters the landscape of analytics, hardware design needs to change, software development requires novel approaches, and tech management must become more agile in order to realize data’s greatest benefits.

    So far there are 1 million websites using Piwik… but what if there could be 10 or 50 million things (sensors, devices) being measured by Piwik ?

    Together we will be creating the best open source and generic analytics platform, that is engineered to last, and designed to help humanity keep control and gain Freedom.

    We aim for Piwik to be the ideal platform to measure the Internet Of Things.

    We’re still at the beginning of this journey and it will take the best of all of us to get there.

    See you on the way !

    PS : if you’d like to get involved with Piwik, we would be glad to welcome you !