Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (63)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

Sur d’autres sites (6157)

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


    


  • Inserting an image inside a video every few frames using ffmpeg

    31 juillet 2023, par Erez Hochman

    Can I use FFMPEG to insert an image every 20 frames in a video ? 
I'm trying to create a subliminal message experiment and I thought it would be an easy way to make it but I can't find anything online.

    



    I tried to make something myself and created a script that :
    
1.splits a file into audio and video files
    
2.splits the video into frames
    
3.overwrites every 20th image in the sequence with the message image
    
4.re-encoding the video
    
5.concatenating it with the original audio

    



    this works but it's way more disk space consuming to be comfortable, is there a better way to do this ?
    
any advice or thought would be happily welcome.

    


  • ffmpeg hundreds of videos- to-image as shell script in keyboard maestro

    28 juillet 2023, par Leopardi

    First I would like to say that I use MacOS, I am new using ffmpeg and keyboard maestro and have no little to none experience in coding. But I think I did learned a bit is the past few weeks trying to solve the problem I will ask now. Believe me I tried searching for answers online and did a lot of trial and error before coming here to ask my question.
so here is what I am trying to do :

    


    I have a folder (/Users/Documents/clips) with 450 short AVI clips (foto1.avi, foto2.avi...., foto450.avi) from which I would like to extract all frames from. I know how to extract all frames from 1 clip and copy them to an existing directory :

    


    *ffmpeg -i /Users/Documents/clips/foto1.avi /Users/Documents/Frames/Foto1/frame%06d.png *

    


    With their command all frames from the clip Foto1.avi (frame000001.png, frame000002.png...., frame000132.png) are copied to the folder /Foto1.

    


    With keyboard Maestro I created 450 folders named afters the 450 .avi clips.

    


    Is there a way to write a ffmpeg command that will extract the frames of all 450 .avi clips to the folder with the same name as the file ?

    


    I was hoping there would be a way of seeing variables in this kind of way :

    


    ffmpeg -i /Users/Documents/clips/foto%.avi /Users/Documents/Frames/Foto%/frame%06d.png

    


    I really appreciate any help. Thank you !

    


    I tried searching for answers in forums, ffmpeg database. And since I have almost no knowledge on coding sometimes is hard to decipher and understand the meaning of the code.