Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (51)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

Sur d’autres sites (8420)

  • 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