Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

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

Autres articles (34)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Utilisation et configuration du script

    19 janvier 2011, par

    Informations spécifiques à la distribution Debian
    Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
    Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
    Récupération du script
    Le script d’installation peut être récupéré de deux manières différentes.
    Via svn en utilisant la commande pour récupérer le code source à jour :
    svn co (...)

  • Installation en mode standalone

    4 février 2011, par

    L’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
    [mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
    Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)

Sur d’autres sites (2663)

  • How to stream video from Node.js

    7 mai 2014, par Sunrising

    i am trying to request a video stored on server and receive a stream of data to show in a html tag

    From the client i request the streaming of a particular file i know exists in my server

    Then in node i use this :

    function streamvideo(response, request) {

    // here i simply read from the response the path and the name of the file i want
    var queryparts = url.parse(request.url, true).query;
    var path = queryparts.query;

    var path = 'tmp/' + path
       , stat = fs.statSync(path)
       , total = stat.size;

    var origin = (request.headers.origin || "*");

    // still not sure it is correct to manage range this way but it works
    // if i request a range....
    if (request.headers['range']) {
       var range = request.headers.range
           , parts = range.replace(/bytes=/, "").split("-")
           , partialstart = parts[0]
           , partialend = parts[1]
           , start = parseInt(partialstart, 10)
           , end = partialend ? parseInt(partialend, 10) : total - 1
           , chunksize = (end - start) + 1;

       console.log('RANGE: ' + start + ' - ' + end + ' = ' + chunksize + "\n")

       response.writeHead(
           206
           , {
               'Access-Control-Allow-Credentials': true,
               'Access-Control-Allow-Origin': origin,
               'Content-Range': 'bytes ' + start + '-' + end + '/' + total,
               'Accept-Ranges': 'bytes',
               'Content-Length': chunksize,
               'Content-Type': 'video/mp4'
           });

    } else {
    // if i request all the video
       console.log('ALL: ' + total);

       response.writeHead(
           200,
           {
               'Access-Control-Allow-Credentials': true,
               'Access-Control-Allow-Origin': origin,
               'Content-Length': total,
               'Content-Type': 'video/mp4'
           }
       );
    }

    // on-the-fly encoding
    var ffmpeg = child_process.spawn("ffmpeg",[
       "-i", path,             // path
       "-b:v" , "64k",         // bitrate to 64k
       "-bufsize", "64k",
       "pipe:1"               // Output to STDOUT
    ]);

    //pack-up everything and send back the response with the stream
    var file = fs.createReadStream(path);
    file.pipe(response);

    it may be not the best code ever but it works because i receive on the client a stream of something !
    BUT how can i verify this ? how can i actually ’see’ the video in the page ?

    now in the client page i have a tag like this :

    <div>
       <video class="mejs-wmp" width="320" height="240" src="test.mp4" type="video/mp4" controls="controls" preload="none"></video>
    </div>

    but i can only see a black screen in my player...

    Why ?

    Thanks !

    (feel free to correct any imprecision you see)

  • FFMPEG build error

    14 novembre 2012, par user1149520

    I've been trying to build a LGPL copy of ffmpeg and I have tried various different configure methods. I downloaded the latest source from the ffmpeg site and used the following simple configure

    ./configure --enable-memalign-hack --enable-pthreads --enable-shared --disable-static

    However every time I try to build it I only end up with "avdevice-53.dll" and the error message like this

    install: cannot stat &#39;libavdevice/avdevice.lib&#39; : No such file or directory
    make: *** [install-libavdevice-shared] Error 1

    What am I doing wrong ?

  • ffmpeg cannot install PHP extension module

    15 octobre 2015, par Hrishikesh Choudhari

    In the last step of installing FFmpeg-PHP, I had to type sudo make install.

    At this I get the following error,

    sudo make install
    Installing shared extensions:     /usr/lib/php5/20060613/
    cp: cannot stat `modules/*': No such file or directory
    make: *** [install-modules] Error 1

    Now my extension directory is at /usr/local/zend/lib/php_extensions

    How can I tell this to my machine ?