Recherche avancée

Médias (0)

Mot : - Tags -/formulaire

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

Autres articles (105)

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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

Sur d’autres sites (6032)

  • h264 : prevent two matching fields from being both a short/long ref combination

    28 novembre 2013, par Anton Khirnov
    h264 : prevent two matching fields from being both a short/long ref combination
    

    Fixes possible access to freed memory.

    Found-by : Mateusz "j00ru" Jurczyk and Gynvael Coldwind
    CC:libav-stable@libav.org

    • [DH] libavcodec/h264_refs.c
  • Anomalie #2292 : Header de la dist avec un nom de site un peu long

    28 février 2012, par Johan .

    Il est bien réglé ce ticket il semble (je ne peux pas le fermer).

  • Slice a long video with ffmpeg to little pieces in node js

    24 janvier 2018, par ler

    I have a very big video like 3 hours, and I want to slice it to little pieces of 20 minutes each.
    This is my initial code :

    var fs = require('fs');
    var spawn = require('child_process').spawn;
    var ffmpeg = spawn("ffmpeg", [
       '-i', './videos/long-video.mp4',
       '-codec:v', 'copy',
       '-codec:a', 'copy',
       '-f','mp4',
       '-map', '0', '-f', 'segment', '-segment_time', '1200', './videos/pieces/video_%04d.mp4'
     ]);

    What this code do is slice the video in pieces and save them to the location I provided, so you need to wait until the ffmpeg finish slicing the whole video.
    But what I’m looking for is a way to trigger a code when ever ffmpeg has made a new piece so I can insert the video name in database, something like this :

    var fs = require('fs');
    var spawn = require('child_process').spawn;
    var ffmpeg = spawn("ffmpeg", [
       '-i', './videos/long-video.mp4',
       '-codec:v', 'copy',
       '-codec:a', 'copy',
       '-f','mp4',
       '-map', '0', '-f', 'segment', '-segment_time', '1200',
       'pipe:1'
     ]);
    ffmpeg.stdout.on('data', function (data) {
       // store the video name in database
       console.log('new peice has been made' );
     });
    ffmpeg.stderr.on('data', function (data) {
       console.log('error' );
     });

    ffmpeg.stdout.on doesn’t exit I just made it to indicate what I’m looking for. What does exist is ffmpeg.stdout.pipe() ; but again I don’t know how to trigger a code whenever a new piece has been made.