Recherche avancée

Médias (91)

Autres articles (107)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

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

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

Sur d’autres sites (8050)

  • "Error opening filters !" when using fluent-ffmpeg with Node

    3 février 2015, par doremi

    I’m trying to get a basic example of html5 video streaming working in an express node app, but I keep running into ffmpeg errors that I’m unsure of how to resolve.

    The input file/stream is the sample.mp4 located here.

    Complete example :

    var ffmpeg = require('fluent-ffmpeg');
    var express    = require('express');
    var fs         = require('fs');
    var sampleApp  = express();
    var videoApp   = express();

    var SAMPLE_SERVER_PORT = 3000;
    var VIDEO_SERVER_PORT  = 5000;

    sampleApp.get('/:video', function (req, res) {
     var videoURL = 'http://localhost:' + VIDEO_SERVER_PORT + '/' + req.params.video;
     return res.end('<video controls="controls" src=" + videoURL +"></video>');
    });

    videoApp.get('/:video', function(req, res) {

     res.statusCode = 200;
     res.setHeader('content-type','video/mp4');

     var stream = fs.createReadStream('./samples/' + req.params.video);

     var proc = ffmpeg(stream)

       .format('mp4')
       .size('320x?')
       .videoBitrate('512k')
       .videoCodec('libx264')
       .fps(24)
       .audioBitrate('96k')
       .audioCodec('aac')
       .audioFrequency(22050)
       .audioChannels(2)

       .on('error', function(err) {
         console.log('an error happened: ' + err.message);
       })

       .pipe(res, { end:true });
    });

    var server = sampleApp.listen(SAMPLE_SERVER_PORT, function () {
     console.log('Example app listening at http://%s:%s', server.address().address, SAMPLE_SERVER_PORT);
    });


    var videoServer = videoApp.listen(VIDEO_SERVER_PORT, function () {
     console.log('Video Server listening at http://%s:%s', server.address().address, VIDEO_SERVER_PORT);
    });

    The error (via console) :

    an error happened: ffmpeg exited with code 1: Error opening filters!

    ffmpeg configuration :

    ./configure  --prefix=/usr/local --enable-gpl --enable-nonfree --enable-libass \                                                                        
    --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus \
    --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-libfaac --enable-libfdk-aac

    Any input would be greatly appreciated.

  • PHP unable to move uploaded file

    11 mars 2015, par Markjose

    I have been trying to create an upload.php script however the condition doesn’t seem to work and PHP can not move the uploaded file to the folder upload.

    Apache2 log output below

    PHP Warning:  move_uploaded_file(): The second argument to copy() function cannot be a directory in /var/www/html/upload.php on line 18, referer: http://192.168.0.110/stream.php

    PHP Warning:  move_uploaded_file(): Unable to move '/tmp/phpC34Agu' to '/var/www/html/upload/' in /var/www/html/upload.php on line 18, referer: http://192.168.0.110/stream.php

    Upload.php code

      &lt;?php
    $target_path = "/var/www/html/upload/";
    $target = $target_path . basename($_FILES['uploadedfile']['name'][0] );
       if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'] [0], $target_path))
        {
       echo "The file ". basename( $_FILES['uploadefile']['name'] [0]). " has been uploaded";
      }
       else {
    echo "Sorry, there was a problem uploading your file.";
        }
      ?>

    I would also like php to execute this ffmpeg command directly afterwards, but i’m unsure where to insert it.

    FFMPEG command

    ffmpeg -re -i uploadedfile.name -vcodec copy -f mpegts udp://239.1.1.1:5000

    Thanks for all your help.

    Kind Regards,

    Mark Couto

  • using uploaded filename for ffmpeg input in php script

    12 mars 2015, par Markjose

    I am looking for a solution to pull the filename recently uploaded and into this ffmpeg syntax

       shell_exec("ffmpeg -re -i ( Uploaded filename) -vcodec copy -acodec copy -f mpegts udp://239.1.1.1:5000");

    The above syntax works fine if I replace "(uploaded filename)" with a .ts video file.
    I have had a look around but there is nothing which fits this description.

    my upload.php script

    if(isset($_FILES['uploadedfile']) &amp;&amp; !empty($_FILES['uploadedfile'])){
     $target_path = "upload/";
     $target = $target_path . basename($_FILES['uploadedfile']['name']);
     }
     if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'] , $target))
     {
      $_SESSION['upload_success'] = "File successfully uploaded.";

      shell_exec("ffmpeg -re -i /var/www/html/upload/x265manual.ts -vcodec copy -acodec copy -f mpegts udp://239.1.1.1:5000");  

    This works fine for playing back x265manual.ts after file upload, but i would like the system to obtain the file name from the uploaded filename.

    Is this possible ?
    Would it be easier for me to create a new php file for the ffmpeg syntax ?

    Thanks

    Mark