Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (56)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

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

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (6775)

  • ffmpeg thumbnails : Every 2 seconds, generated at 0, 1, 3, 5 seconds

    30 janvier 2014, par Jim Miller

    I'm using ffmpeg to generate thumbnails from a piece of .mov video. I want to get thumbnails every two seconds, and so, copying almost directly from https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video, I'm doing :

    ffmpeg -i test.mov -f image2 -vf fps=fps=1/2 thumb%04d.jpg

    This works, and gives me thumbnails, but they correspond to the images from the video at 0, 1, 3, 5, ... seconds. I was expecting 0, 2, 4, 6, ... seconds ; I'm not sure why there's an initial one second gap between thumbnails before it settles into making them every two seconds.

    Is there a way to get them to come out at 0, 2, 4, 6... seconds, or is this just "how it works" ? Thanks !

  • full m3u8 clip isn't getting generated from m3u8 file

    12 janvier 2021, par Alan
    
const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
const ffmpeg = require('fluent-ffmpeg');
const process = require('process');


const args = process.argv.slice(2);
if (args.length !== 4) {
    console.error('Incorrect number of arguments');
    process.exit(1);
  }
const startTime = args[0];
const timeDuration = args[1];
const inputFile = args[2];
const outputFile=args[3];

ffmpeg.setFfmpegPath(ffmpegPath);

ffmpeg(inputFile)
  .setStartTime(startTime)
  .setDuration(timeDuration)
  .output(outputFile)
  .on('end', function(err) {
    if(!err) { console.log('conversion Done') }
  })
  .on('error', function(err){
    console.log('error: ', err)
  }).run();




    


    


    here is my index.js file
I am running this command on the terminal to generate a clip from the m3u8 file
node index.js 00:00:10 46 ./path/sample.m3u8  ./path/output.m3u8 
The main problem is that it is not creating a clip for more than 13 seconds. For example, the above command should generate a 46s clip but it is going near 13 seconds. So I don't get what's wrong with that. Any clip less than 13 is perfectly fine.
Is there any way to fix that ?

    


    


  • full m3u8 clip isn't getting generated from m3u8 file by node.js

    13 janvier 2021, par Alan

    index.js

    


    const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
const ffmpeg = require('fluent-ffmpeg');
const process = require('process');

const args = process.argv.slice(2);
if (args.length !== 4) {
  console.error('Incorrect number of arguments');
  process.exit(1);
}

const startTime = args[0];
const timeDuration = args[1];
const inputFile = args[2];
const outputFile=args[3];

ffmpeg.setFfmpegPath(ffmpegPath);

ffmpeg(inputFile)
  .setStartTime(startTime)
  .setDuration(timeDuration)
  .output(outputFile)
  .on('end', function(err) {
    if(!err) { 
      console.log('conversion Done') 
    }
  })
  .on('error', function(err){
    console.log('error: ', err)
  }).run();


    


    I am running this command on the terminal to generate a clip from the m3u8 file
node index.js 00:00:10 46 ./path/sample.m3u8 ./path/output.m3u8

    


    The main problem is that it is not creating a clip for more than 13 seconds. For example, the above command should generate a 46s clip but it is going near 13 seconds. So I don't get what is the issue. Any clip less than 13 works perfectly fine. Is there any way to fix that ?

    


    Here is a link to the m3u8 file https://mp4.to/downloads/0cb552cd749c4cf4b