Recherche avancée

Médias (1)

Mot : - Tags -/publicité

Autres articles (81)

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

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

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

Sur d’autres sites (5856)

  • Revision 35243 : suivre [35095]

    16 février 2010, par brunobergot@… — Log

    suivre [35095]

  • Revision 36037 : s’assurer que la class ffmpeg_movie est disponible sinon cela ne sert pas ...

    9 mars 2010, par kent1@… — Log

    s’assurer que la class ffmpeg_movie est disponible sinon cela ne sert pas à grand chose

  • Gracefully closing FFMPEG child processes from node

    10 juin 2019, par Gordon

    I am trying to record numerous audio feeds using ffmpeg. Node downloads a config file with the stream URLS (HLS M3U8 playlists), parses it and starts the appropriate number of ffmpeg instances. When I go to shut them down, nothing happens and I have to kill them with task manager, resulting in corrupt files. When I am debugging and hit control-c within a minute or two of starting the program, it works without issue. When I need to record more than 5-10 minutes that I have problems.

    I found this related question from 2013, and adapted it to fit my multiple stream situation.

    The recorder processes are started with the following code (inside the http request callback) :

    config.audio_config.forEach((channel,i)=>{
    self.liveChannels++;

    console.log(`   ${channel.number}`);
    self.Channels[i] = spawn('ffmpeg', ['-i', `${channel.base_url + channel.stream_ios}`,  '-c:v', 'none', '-c:a', 'copy', `Output\\${config.folder}\\${channel.number}.m4a`]);
    self.Channels[i].stdin.setEncoding('utf8');
    self.Channels[i].chNum = channel.number;

    self.Channels[i].on('exit',(code,sig)=>{
    console.log(`   Channel ${channel.number} recorder closed.`);
    self.liveChannels--;
    if(self.liveChannels === 0){
       process.exit();
    }
    });
    });
    console.log('Press Ctl-C to start Shutdown');

    My shutdown function (triggered by SIGINT to main process) is :

    function shutdown() {
       self.Channels.forEach((chan)=>{
           chan.stdin.write('q');
           chan.stdin.end(); //I have tried both with and without this line and chan.stdin.end('q')
       });

    }

    UPDATE :
    Switching to an AAC container file (simply changed the extension on the output) removed the need for a graceful FFMPEG exit. I still would like to know why sending ’q’ to stdin only kills the FFMPEG process for the first 10 minutes.