Recherche avancée

Médias (1)

Mot : - Tags -/karaoke

Autres articles (89)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (8185)

  • exec function not working as expected

    6 mars 2016, par Albert

    I am running a shell function from php to convert a video file to flash once it is uploaded. The exec function is like this :

    exec("ffmpeg -i " . WWW_ROOT . "files" . DS . "videos" . DS . $id . $ext . " -ar 22050 -r 32 -f flv -s 640x480 " . WWW_ROOT . "files" . DS . "videos" . DS . $id . ".flv");

    // if I echo the string it returns:
    // ffmpeg -i /home/vceroot/public_html/example.com/test/intraweb/app/webroot/files/videos/516c1203-0484-417a-b047-5488c40293e9.mpg -ar 22050 -r 32 -f flv -s 640x480 /home/vceroot/public_html/example.com/test/intraweb/app/webroot/files/videos/516c1203-0484-417a-b047-5488c40293e9.flv
    // the locations are correct

    However, it does not convert the video.

    After it uploaded the file, it just goes back to the index action. There is no converted file although the uploaded file is there.

    My permissions on the folder is 755. And the folder owner is apache. I don’t know what else to do. Can anyone assist me ?

    UPDATE

    So I’ve changed my exec query a bit and echoed the output :

    exec("ffmpeg -i " . WWW_ROOT . "files" . DS . "videos" . DS . $id . $ext . " -ar 22050 -r 32 -f flv -s 640x480 " . WWW_ROOT . "files" . DS . "videos" . DS . $id . ".flv 2>&1", $output, $return);
    die(print_r($output));

    This returned the following error :

    Array ( [0] => sh: ffmpeg: command not found ) 1

    So I changed it a bit to this :

    exec("/usr/local/bin/ffmpeg -i " . WWW_ROOT . "files" . DS . "videos" . DS . $id . $ext . " -ar 22050 -r 32 -f flv -s 640x480 " . WWW_ROOT . "files" . DS . "videos" . DS . $id . ".flv 2>&1", $output, $return);
    die(print_r($output));

    And now it returns :

    Array ( [0] => /usr/local/bin/ffmpeg: error while loading shared libraries: libavdevice.so.55: cannot open shared object file: No such file or directory ) 1

    Where do I go from here ?

  • Node.JS : FFmpeg piped video encoding no thumbnail created

    12 avril 2013, par Sascha Heim

    I want to pipe the video during upload to ffmpeg for realtime thumbnail creation.
    All went fine but no thumbnail.jpg was created and the ffmpeg stderr hangs after the libraries version display.

    Updated : Ive updated my code but it also doesnt create a valid thumbnail.

    var formidable = require('formidable'),
           http = require('http'),
           sys = require('sys'),
           spawn = require('child_process').spawn;

    function spawnFfmpeg(exitCallback) {
       var args = ['-i', 'pipe:0', '-c:v', 'mjpeg', '-ss', '00:00:13', '-vframes', '1', '-s', '100x80', 'thumbnail.jpg']
       var ffmpeg = spawn('ffmpeg', args);
       console.log('Spawning ffmpeg ' + args.join(' '));

       ffmpeg.on('exit', exitCallback);
       ffmpeg.stderr.on('data', function(data) {
           console.log('grep stderr: ' + data);
       });
       return ffmpeg;
    }

    http.createServer(function(req, res) {
       if (req.url == '/' && req.method.toLowerCase() == 'get') {
           // show a file upload form
           res.writeHead(200, {'content-type': 'text/html'});
           res.end
                   (&#39;<form action="/upload" enctype="multipart/form-data" method="post">&#39;
                           + &#39;<input type="text" /><br />&#39;
                           + &#39;<input type="file" multiple="multiple" /><br />&#39;
                           + &#39;<input type="submit" value="Upload" />&#39;
                           + &#39;</form>&#39;
                           );
       } else if (req.url == &#39;/upload&#39; &amp;&amp; req.method.toLowerCase() == &#39;post&#39;) {
           // parse a file upload
           var form = new formidable.IncomingForm();
           form.maxFieldsSize = 29 * 1024 * 1024;
           // Handle each part of the multi-part post
           var ffmpeg = spawnFfmpeg(function(code) {
               console.log(&#39;child process exited with code &#39; + code);
               res.end();
           });

           var form = new formidable.IncomingForm();
           // Handle each part of the multi-part post
           form.onPart = function(part) {
               // Handle each data chunk as data streams in
               part.addListener(&#39;data&#39;, function(data) {
                   ffmpeg.stdout.pipe(res);
                   res.pipe(ffmpeg.stdin);
                   // Write each chunk to disk
                   //savedFile.write(data);
               });
           };

           // Do it
           form.parse(req);
           return;
       }
    }).listen(80, "127.0.0.1");

    process.on(&#39;uncaughtException&#39;, function(err) {
    });
  • Revision 71707 : Coup de phpdoc et de petit refactoring Un oubli du @package dans la ...

    6 avril 2013, par kent1@… — Log

    Coup de phpdoc et de petit refactoring
    Un oubli du @package dans la première action