Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (49)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (5509)

  • How to stream Audio/Video using Node.js express streaming with ffmpeg and flowplayer usage ??

    30 septembre 2014, par iknowv

    I want to create node server which streams media file to public using express module in chunks

    Server.js ( This is nodejs server which works for me but without chunks )

               var express = require('express');
               var app = express();

               var http = require('http');
               var fs = require('fs');
               var path = require('path');
               var ext = /[\w\d_-]+\.[\w\d]+$/;

               ffmpeg_path = "ffmpeg\\";
               app.get('/player', function(req, res){
               res.writeHead(200, {'Content-Type': 'text/html'});
               fs.createReadStream('video.html').pipe(res);
               });

               app.get('/audio', function(req, res){

               myParam = [];
               myParam.push("-i","","-f","mp3","pipe:1");
               myParam[1] = 'media\\example_aac.m4a';
               var child_process = require("child_process");
               ffmpeg = child_process.spawn(ffmpeg_path + 'ffmpeg.exe',myParam);  
               ffmpeg.stderr.on('data', function(data)
               {
                   console.log('ffmpeg .error=' + data.toString());
               });
                res.writeHead(200, {
                  'Content-Type': 'audio/mp3'
                });
               ffmpeg.stdout.pipe(res);
               });


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

               myParam = [];
               myParam.push("-i","","-f","flv","pipe:1");
               myParam[1] = 'media\\example_video.wmv';
               var child_process = require("child_process");
               ffmpeg = child_process.spawn(ffmpeg_path + 'ffmpeg.exe',myParam);  
               ffmpeg.stderr.on('data', function(data)
               {
                   console.log('ffmpeg .error=' + data.toString());
               });
               /*ffmpeg.stdout.on('data', function(data)
               {
               //var buff = new Buffer(data).toString();
               //res.send(buff);
               });*/
               res.writeHead(200, {
                  'Content-Type': 'video/flv'
                });
               ffmpeg.stdout.pipe(res);
               });

               app.listen(3000);

    =================================================

    video.html

                    <code class="echappe-js">&lt;script src=&quot;http://releases.flowplayer.org/js/flowplayer-3.2.13.min.js&quot;&gt;&lt;/script&gt;
                
    Audio Player
    Video Player
    &lt;script type=&quot;text/javascript&quot;&gt;<br />
               $f(&quot;player&quot;, &quot;http://releases.flowplayer.org/swf/flowplayer-3.2.18.swf&quot;, {<br />
               clip: {<br />
                  autoPlay: false,<br />
                  url: &quot;http://localhost:3000/audio&quot;<br />
               },<br />
                plugins: {<br />
                   controls: {<br />
                       fullscreen: false,<br />
                       height: 30,<br />
                       autoHide: false<br />
                   }<br />
               }<br />
    <br />
               });<br />
               &lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;<br />
               flowplayer(&quot;videoplayer&quot;, &quot;http://localhost/flowplayer/flowplayer.commercial-3.2.2.swf&quot;, {<br />
                   clip: {<br />
                       autoPlay: false,<br />
                       autoBuffering: false,<br />
                       scaling: 'fit',<br />
                       url: 'http://localhost:3000/video',<br />
                       captionUrl: ''<br />
                       },<br />
                       plugins: {<br />
                   controls: {<br />
                       fullscreen: false,<br />
                       height: 30,<br />
                       autoHide: false<br />
                   }<br />
               }<br />
                   }<br />
               );<br />
               &lt;/script&gt;
  • Adding watermark bitmap over video in android : 4.3's MediaMuxer or ffmpeg

    7 avril 2017, par Alin

    Here is my scenario :

    • Download an avi movie from the web
    • Open a bitmap resource
    • Overlay this bitmap at the bottom of the movie on all frames in the background
    • Save the video on extarnal storage
    • The video length is 15 seconds usually

    Is this possible to achieve using MediaMuxer ? Any info on the matter is gladly received

    I’ve been looking to http://bigflake.com/mediacodec/#DecodeEditEncodeTest (Thanks @fadden) and it says there :

    "Decoding the frame and copying it into a ByteBuffer with
    glReadPixels() takes about 8ms on the Nexus 5, easily fast enough to
    keep pace with 30fps input, but the additional steps required to save
    it to disk as a PNG are expensive (about half a second)"

    So having almost 1 sec/frame is not acceptable. From what I am thinking one way would be to save each frame as PNG, open it, add the bitmap overlay on it and then save it. However this would take an enormous time to accomplish.

    I wonder if there is a way to do things like this :

    1. Open video file from external storage
    2. Start decoding it
    3. Each decoded frame will be altered with the bitmap overlay in memory
    4. The frame is sent to an encoder.

    On iOS I saw that there a way to take the original audio + original video + an image and add them in a container and then just encode the whole thing...

    Should I switch to ffmpeg ? How stable and compatible is ffmpeg ? Am I risking compatibility issues with android 4.0+ devices ? Is there a way to use ffmpeg to acomplish this ? I am new to this domain and still doing research.


    Years later edit :
    Years have passed since the question and ffmpeg isn’t really easy to add to a commercial software in terms of license. How did this evolved ? Newer versions of android are more capable on this with the default sdk ?

  • FFmpeg LGPL licence and embedded codecs [on hold]

    13 septembre 2016, par codetemplar

    I want to use FFmpeg in commercial software using its LGPL licence without enabling the GPL add-on. However, the libavformat library allows decoding for a lot of codecs straight out of the box. These are third party codecs so probably won’t be the same LGPL licence. Are these embedded codecs ok to use in my application to keep it LGPL compliant ?

    Thanks