Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (85)

  • Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur

    8 février 2011, par

    La visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
    Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
    Configuration de la boite multimédia
    Dès (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

Sur d’autres sites (5952)

  • How can I change the length of my ffmpeg video ? The concatenation is not working

    24 janvier 2024, par Luke

    I am trying to use the ffmpeg library whereby I take three images, and make a 9 second video of them. However, it is just showing the first video for three seconds, then finishing. What in my code do I need to change ? The code uses AWS Lambda to store the files in temporary storage. I've logged everything before, and it all seems to be working. I have a feeling it is this line of code that is not working : .outputOptions(["-c:v libx264", "-t 12", "-pix_fmt yuv420p", "-vf scale=1280:720", "-r 1"]) combined with the concatenation process.

    


    async function processImages(imageStreams) {
  for (let i = 0; i < imageStreams.length; i++) {
    await processSingleImage(imageStreams[i], `/tmp/temp_video_${i}.mp4`, i);
  }
  await concatenateVideos(imageStreams.length);
}


async function processSingleImage(imageStream, outputPath, index) {
  return new Promise((resolve, reject) => {
    const command = ffmpeg(imageStream);
    command
      .outputOptions(["-c:v libx264", "-t 12", "-pix_fmt yuv420p", "-vf scale=1280:720", "-r 1"])
      .on("end", () => {
        resolve();
      })
      .on("error", (err) => {
        console.error(`Error during processing of image ${index}:`, err);
        reject(err);
      })
      .saveToFile(outputPath);
  });
}

async function concatenateVideos(numberOfVideos) {
  const fileList = "/tmp/file_list.txt";
  let fileContent = "";
  for (let i = 0; i < numberOfVideos; i++) {
    fileContent += `file '/tmp/temp_video_${i}.mp4'\n`;
  }

  await fs.writeFile(fileList, fileContent);

  return new Promise((resolve, reject) => {
    ffmpeg()
      .input(fileList)
      .inputOptions(["-f concat", "-safe 0"])
      .outputOptions(["-c copy"])
      .saveToFile("/tmp/output.mp4");
  });
}


    


  • Convert audio to video ffmpeg with a gif as the background loop the and keep the audio length

    21 janvier 2018, par akiva

    I used this to combine a JPG and MP3 into a video :

    ffmpeg -loop 1 -i 1.jpg -i song.mp3 -strict -2 -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -shortest out.mp4

    I’m trying to change the .jpg to a .gif, but the gif should loop to the MP3 length

  • aviocat : Check the argv array length before reading element i+1

    16 janvier 2014, par Martin Storsjö
    aviocat : Check the argv array length before reading element i+1
    

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] tools/aviocat.c