Recherche avancée

Médias (0)

Mot : - Tags -/organisation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (91)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Les sons

    15 mai 2013, par

Sur d’autres sites (6060)

  • FFMPEG spawn promise not resolving

    24 décembre 2020, par fitzmode

    I have a problem where running ffmpeg with spawn using the event listener API for close or exit events works fine but when I try to convert spawn into a Promise it does not resolve.

    


    I'm

    


    This works fine

    


     const ls = spawn(ffmpeg_static.path,`-i movie.mov movie.mp4`.split(" ");

    //Listen for processing close
  ls.on("close", (code) => {
        console.log(`child process exited with code ${code}`);
        
     });



    


    function pspawn(args) {
 
  // *** Return the promise
  return new Promise(function (resolve, reject) {
 
    const process = spawn(ffmpeg_static.path, args);
//Listen for close and resolve.
    process.on("close", function (code) {
    
      resolve("Complete");
    });
    process.on("error", function (err) {
       // *** Process creation failed
       reject(err);
    });
  });
}

... 

async function run () {
await pspawn(['-i', 'movie.mov','movie.mp4'])
}


    


    I might be missing something simple but can't seem to figure out what it is.

    


  • Grab frame without downloading whole file ?

    12 janvier 2012, par Writecoder

    Is this possible using php + ffmpeg ?

    ffmpeg-php has the ability to :

    Ability to grab frames from movie files and return them as images that
    can be manipulated using PHP's built-in image functions. This is great
    for automatically creating thumbnails for movie files.

    I just don't want to download the whole file before doing so.
    So lets say i want to grab a frame @ 10% of the movie :

    First lets get the size of remote file :

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_HEADER, true);
    curl_setopt($ch, CURLOPT_NOBODY, true);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt($ch, CURLOPT_URL, $url); //specify the url
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
    $head = curl_exec($ch);

    $size = curl_getinfo($ch,CURLINFO_CONTENT_LENGTH_DOWNLOAD);

    Then it's quite easy to download only 10% of the .flv or .mov file using curl.

    But the framegrab trick using ffmpeg-php probably won't work because the file probably is corrupted ?

    Any other ideas ?

  • ffmpeg conversion for apple tv

    24 janvier 2013, par Sam

    I have one particular movie file that is giving me grief while I am trying to convert my movie library to be able to be viewed on my Apple TV. I have been using iFlicks to convert all of my files and have only had one issue. The original of this particular movie file plays fine but after it has been converted the video freezes after a few minutes but the audio keeps playing. I tried using ffmpeg to convert the file but now the file is very choppy. The first time it is played the video will be choppy, the next time the audio will be choppy... but it plays fine in VLC for some reason. So I was thinking that maybe I have chosen the wrong codecs to suit Quicktime/Apple TV. Below is the command I used for ffmpeg. Have I chosen the right codecs and actually written the command correctly ? (I haven't really used ffmpeg before...)

    ffmpeg -i input.avi -vcodec libx264 -acodec libfaac output.m4v