Recherche avancée

Médias (91)

Autres articles (106)

  • Soumettre bugs et patchs

    10 avril 2011

    Un logiciel n’est malheureusement jamais parfait...
    Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
    Si vous pensez avoir résolu vous même le bug (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (9778)

  • Realtime video conversion using nodejs and ffmpeg

    2 février 2015, par LadislavM

    I’m trying to create very simple server-side video conversion using ffmpeg and nodejs.
    So far, I have 2 UDP servers, one for converting video input and second one for listening for converted video and passing it to websocket.

    I’ve created one UDP server, where stream comes, converts the video input by calling ffmpeg. Then the second UDP server get the converted video and pass it to the websocket server to stream video to browser.

    The problem is probably with input into the ffmpeg. The error I get is

    _stream_readable.js:476
     dest.on('unpipe', onunpipe);
          ^
    TypeError: Object

    The code looks like this :

    // Websocket Server
    var socketServer = new (require('ws').Server)({port: 8081});
    socketServer.on('connection', function(socket) {
       socket.on('close', function(code, message){
           console.log( 'Disconnected WebSocket ('+socketServer.clients.length+' total)' );
       });
    });

    socketServer.broadcast = function(data, opts) {
       for( var i in this.clients ) {
           this.clients[i].send(data, opts);
       }
    };

    // UDP Server
    var udpServer = require("dgram").createSocket("udp4");

    udpServer.on("message", function(msg, rinfo) {
       socketServer.broadcast(msg, {binary:true});
       console.log("server got: " + msg + " from " + rinfo.address + ":" + rinfo.port);
    });

    udpServer.on("listening", function() {
       var address = udpServer.address();
       console.log("server listening " + address.address + ":" + address.port);
    });
    udpServer.bind(8082);

    // UDP Server for stream conversion
    var udpServer2 = require("dgram").createSocket("udp4");

    udpServer2.on("message", function(msg, rinfo) {
       // **********  THIS IS WHERE ERROR OCCURS **************
       var ffmpeg = require('child_process')
               .spawn('ffmpeg',['-f','video4linux2','-i','-','-f','mpeg1video','udp://127.0.0.1:8082']);
       ffmpeg.stdin.pipe(msg);
    });

    udpServer2.on("listening", function() {
       var address = udpServer2.address();
       console.log("server listening " + address.address + ":" + address.port);
    });
    udpServer2.bind(8083);
  • FFmpeg synthesizes multiple videos, the final result is only sound, no picture display

    6 juillet 2023, par Halifax

    1、I first converted mp4 to ts:

    


    -i MyVideo.mp4 -vcodec copy -acodec aac -b:v 10000k MyVideo.ts


    


    2、Then scale the ts and fill the empty space:

    


    -i MyVideo.ts -vf pad=width=iw:height=ih:x=-1:y=0:color='White' -b:v 10000k MyVideo_transform.ts


    


    3、Finally use concat to merge into mp4 files:

    


    -i "concat:MyVideo_transform1.ts|MyVideo_transform2.ts" -acodec copy -vcodec copy -absf aac_adtstoasc -b:v 10000k $outputFilePath"


    


    Finally use concat to merge into mp4 files。

    


    I hope that the final merged result can see the video picture。

    


  • avconv : split printing the final statistics into a separate function

    17 mars 2014, par Anton Khirnov
    avconv : split printing the final statistics into a separate function
    
    • [DBH] avconv.c