Recherche avancée

Médias (1)

Mot : - Tags -/punk

Autres articles (108)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

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

Sur d’autres sites (12196)

  • FFMPEG add text frames to the start of video

    22 janvier 2021, par Ryan

    I have some videos either in mp4 or webm format, and I'd like to use ffmpeg to add 4 seconds to the start of each video to display some text in the center with no sound.

    



    Some other requirements :

    



      

    • try to avoid re-encoding the video
    • 


    • need to maintain the quality (resolution, bitrate, etc)
    • 


    • (optional) to make the text fade in/out
    • 


    



    I am new to ffmpeg and any help will be appreciated.

    



    thanks in advance

    



    Example ffprobe information for mp4 below :

    



    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
  Metadata:
    major_brand : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf55.33.100
  Duration: 00:00:03.84, start: 0.042667, bitrate: 1117 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 1021 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
Metadata:
  handler_name    : VideoHandler
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 140 kb/s (default)
Metadata:
  handler_name    : SoundHandler


    



    Example webm

    



    Input #0, matroska,webm, from 'input.webm':
  Metadata:
  encoder         : Lavf55.33.100
 Duration: 00:00:03.80, start: 0.000000, bitrate: 1060 kb/s
   Stream #0:0(eng): Video: vp8, yuv420p, 1280x720, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)
   Stream #0:1(eng): Audio: vorbis, 48000 Hz, stereo, fltp (default)


    



    Screenshot from joined.mp4

    



    Screenshot for step 3 console

    


  • airplay-js no start streaming

    24 août 2015, par Mikel David Carozzi Sanchez

    I’m writing a local file streaming over airplay protocol with subtitle support, to do that I’m using ffmpeg and the process works really fine, but the main problem is when I try to start streaming after burning the subtitle, the airplay doesn’t work, but when I comment the lines that do the burning works fine. What am I doing wrong ? Here is the code.

    var fileSource = './source.mp4';
    var subtitleSource = './source.srt';

    var http = require('http'),
    fs = require('fs'),
    util = require('util'),
    OS = require('os'),
    spawn = require('child_process').spawn,
    airplay = require('airplay-js');

    var browser = airplay.createBrowser();

    var tmpDir = OS.tmpdir();
    var tmpFile = tmpDir + '/localTV.mp4';

    var sourceSize;
    var tmpFileSize;

    function init(){
    console.log('Starting LocalTV');
    console.log('Burning Subtitle into ' + fileSource);

    var stat = fs.statSync(fileSource);
    sourceSize = stat.size;

    fs.exists(tmpFile, function(exists){
       if(exists) fs.unlink(tmpFile)
    });

    var ffmpeg = spawn('./ffmpeg', [
       '-i', fileSource,
       '-sub_charenc', 'CP1252',
       '-i', subtitleSource,
       '-map', '0:v',
       '-map', '0:a',
       '-c', 'copy',
       '-map', '1',
       '-c:s:0', 'mov_text',
       '-metadata:s:s:0', 'language=esp',
       tmpFile
    ]);

    ffmpeg.stderr.pipe(process.stdout);

    ffmpeg.on('close', function(code){
       if(code == 0){
           console.log('Burning subtitle finished');
           initServer();
       }
    })

    ffmpeg.on('error', function(error){
       console.log(error, 'ffmpeg error');
    });

    //  initServer();

    return false;  
    }

    function initServer(){

    http.createServer(function (req, res) {

       var path = tmpFile;
       var stat = fs.statSync(path);
       var total = stat.size;

       if (req.headers['range']) {
           var range = req.headers.range;
           var parts = range.replace(/bytes=/, "").split("-");
           var partialstart = parts[0];
           var partialend = parts[1];

           var start = parseInt(partialstart, 10);
           var end = partialend ? parseInt(partialend, 10) : total-1;
           var chunksize = (end-start)+1;

           var file = fs.createReadStream(path, {start: start, end: end});
           res.writeHead(206, { 'Content-Range': 'bytes ' + start + '-' + end + '/' + total, 'Accept-Ranges': 'bytes', 'Content-Length': chunksize, 'Content-Type': 'video/mp4' });
           file.pipe(res);

         }else{        

           res.writeHead(200, { 'Content-Length': total, 'Content-Type': 'video/mp4' });
           fs.createReadStream(path).pipe(res);
       }

    }).listen(1337, '192.168.0.100', function(){
       console.log('HTTP Server Started');
       startStream();
    });

    return false;      
    }

    function startStream(){
    console.log('Streaming to AppleTV');

    var stat = fs.statSync(tmpFile);
    tmpFileSize = stat.size;    

    //  if(tmpFileSize >= sourceSize){
       browser.on('deviceOn', function(device) {
           device.play('http://192.168.0.100:1337', 0, function(status){
               console.info(status, 'Playing video');
           });
       });

       browser.on('error', function(err){
           console.log(err, 'Error airplay');
       })

       browser.start();
    //  }else{
    //      console.log('Temp file minor size that source, something is wrong');
    //  }

    return false;      
    }

    init();
  • avfilter/af_afade : fix start of fade out

    8 octobre 2015, par Justin Greer
    avfilter/af_afade : fix start of fade out
    

    Fixes #4919

    • [DH] libavfilter/af_afade.c