Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (53)

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

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (9577)

  • Setting HLS segment times

    16 février 2016, par James Townsend

    I am passing a processed video from openCV to ffmpeg via a pipe here is the code

    ./OpenCV & \
    tail -n +0 -f out.avi  | ffmpeg -i pipe:0  -hls_time 1 -hls_list_size 0 -hls_wrap 10 -hls_segment_filename '%03d.ts' stream.m3u8

    My issue is the output .ts files are not in a uniformed duration they change from file to file.

    These are mostly long say 60 seconds. This means the connecting client has to wait for the first stream to finish before the playlist file (.m3u8) file is created. Therefor in this example they are 60 seconds or so behind live video and if the next .ts file is larger the streaming stops until this is finished. If the client tries to play before the next .ts file is created they are played the first .ts file.

    The frame rate from openCV is 1 frame per second.

    tail changes the output file of openCV called (out.avi) to a stdout.

    Any help would be great.

  • Render current file name when creating animation from multiple files

    9 janvier 2018, par Geuis

    I’m rendering animations from a collection of png’s. I’d like to add the name of the file as a text overlay. I’ve got drawtext working with static text, but haven’t been able to find a way to access the file name being rendered.

    Current command :

    ffmpeg -framerate 2 -i layer-%d.png -i logo.png -filter_complex "[0:v]fps=30[img];[1:v][img]scale2ref=163:163[a][b];[b][a]overlay=(81):(main_h-163-81)[vid];[vid]drawtext=text='TEXT':x=100:y=100:fontfile=font/SourceSansPro-Regular.otf:fontsize=30:fontcolor=white" -preset ultrafast -movflags +faststart -vcodec libx264 -crf 23 -pix_fmt yuv420p output.mp4

    Is there something I can put in the 'TEXT' area to get the file name ?

  • How to render animation using Javascript ?

    30 novembre 2018, par user9964622

    I have created animation using tweenjs and createjs libraries createjs and tweenjs, createjs now, I’d like to convert these animations to video files (MPEG4, or other, doesn’t matter) or how can I render it in the backend using nodejs ?

    Here is the solution I have tried so far using ffmpeg server

    test4.js

    (function () {
       "use strict";

       var framesPerSecond = 60;
       var numFrames = 20; //framesPerSecond * 60 * 2;
       var thickness = 100;
       var speed = 4;
       var frameNum = 0;

       var canvas = document.getElementById("c");
       var ctx = canvas.getContext("2d");
       canvas.width = 500;
       canvas.height = 500;

       var progressElem = document.getElementById("progress");
       var progressNode = document.createTextNode("");
       progressElem.appendChild(progressNode);

       function onProgress(progress) {
         progressNode.nodeValue = (progress * 100).toFixed(1) + "%";
       }

       function showVideoLink(url, size) {
         size = size ? (" [size: " + (size / 1024 / 1024).toFixed(1) + "meg]") : " [unknown size]";
         var a = document.createElement("a");
         a.href = url;
         var filename = url;
         var slashNdx = filename.lastIndexOf("/");
         if (slashNdx >= 0) {
           filename = filename.substr(slashNdx + 1);
         }
         a.download = filename;
         a.appendChild(document.createTextNode(url + size));
         document.body.appendChild(a);
       }

       var capturer = new CCapture( {
         format: 'ffmpegserver',
         //workersPath: "3rdparty/",
         //format: 'gif',
         verbose: false,
         framerate: framesPerSecond,
         onProgress: onProgress,
         //extension: ".mp4",
         //codec: "libx264",
       } );
       capturer.start();

       function render() {

         var stage = new createjs.Stage("c");
         var circle = new createjs.Shape();
         circle.graphics.beginFill("Crimson").drawCircle(0, 0, 50);
         circle.x = 100;
         circle.y = 100;
         stage.addChild(circle);
         createjs.Tween.get(circle, {loop: true})
           .to({x: 400}, 1000, createjs.Ease.getPowInOut(4))
           .to({alpha: 0, y: 75}, 500, createjs.Ease.getPowInOut(2))
           .to({alpha: 0, y: 125}, 100)
           .to({alpha: 1, y: 100}, 500, createjs.Ease.getPowInOut(2))
           .to({x: 100}, 800, createjs.Ease.getPowInOut(2));
         createjs.Ticker.setFPS(60);
         createjs.Ticker.addEventListener("tick", stage);
         capturer.capture(canvas);

         ++frameNum;
         if (frameNum === numFrames) {
           capturer.stop();
           capturer.save(showVideoLink);
         } else {
           requestAnimationFrame(render);
         }
       }
       requestAnimationFrame(render);
     }());

    here is html test4.html

     
       
     
     
       <canvas></canvas>
       <div>-</div>
     
     <code class="echappe-js">&lt;script src=&quot;http://localhost:8081/ffmpegserver/CCapture.js&quot;&gt;&lt;/script&gt;

    &lt;script src=&quot;http://localhost:8081/ffmpegserver/ffmpegserver.js&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;https://code.createjs.com/1.0.0/createjs.min.js&quot;&gt;&lt;/script&gt;
    &lt;script src='http://stackoverflow.com/feeds/tag/test4.js'&gt;&lt;/script&gt;

    when I run my app, it renders very quickly and when I download the converted mp4 file it contains zero MB.

    for reference, u can test by just cloning this repo ffmpeg server repository and add the above files to the public folder

    What am I doing wrong in my code ???