Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (71)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (4761)

  • Download a stream via ffmpeg in Node.js

    16 juillet 2018, par loretoparisi

    I’m using ffmpeg to download an audio stream in Node.js. I use child_process for that :

    var downloadStream = function(uri,opath) {
       var self=this;

       // defaults
       var loglevel= self.logger.isDebug() ? 'debug' : 'warning';
       return new Promise((resolve, reject) => {
         const args = [
           '-y',
           '-loglevel', loglevel,
           '-v', 'quiet',
           '-i', uri,
           opath
         ];
         const opts = {
           cwd: self._options.tempDir
         };
         cp.spawn('ffmpeg', args, opts)
           .on('message', msg => self.logger.info(msg))
           .on('error', reject)
           .on('close', resolve)
           .on('exit', function (code, signal) {
             console.log('child process exited with ' +
                         `code ${code} and signal ${signal}`);
                         resolve(code);
           });
       });
     }//downloadStream

    What happens is that the close event is called before the file has been written to the disk. I have also registered the exit that is called with the close. While executing the command in bash I get the stream saved in the opath as expected. Which event listener shall I register for that ?

  • arm : properly mark external symbol call

    14 mai 2011, par Martin Aumüller

    arm : properly mark external symbol call

  • arm : properly mark external symbol call

    14 mai 2011, par Martin Aumüller

    arm : properly mark external symbol call