Advanced search

Medias (1)

Tag: - Tags -/Rennes

Other articles (46)

  • Les formats acceptés

    28 January 2010, by

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Ajouter notes et légendes aux images

    7 February 2011, by

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Websites made ​​with MediaSPIP

    2 May 2011, by

    This page lists some websites based on MediaSPIP.

On other websites (9050)

  • Evolution #2633: Pouvoir modifier _DIR_RESTREINT_ABS

    10 July 2015, by jluc -

    Bon yen a quelques un en trop (commentaires ou pas dans la dist) mais le gros est dans le core et la dist.

  • Splitting video file more then once

    18 May 2017, by Fearhunter

    I’m experimenting with this github repo for cutting video’s.

    https://github.com/vdaubry/html5-video-splitter

    This is the code of video-splitter.js

    var childProcess = require("child_process");
    childProcess.spawn = require('cross-spawn');

       var http = require('http');
       var path = require("path");
       var fs = require("fs");
       var exec = require('child_process').exec;

       http.createServer(function (req, res) {
         if (req.method === 'OPTIONS') {
             console.log('!OPTIONS');
             var headers = {};
             headers["Access-Control-Allow-Origin"] = "*";
             headers["Access-Control-Allow-Methods"] = "POST, GET, PUT, DELETE, OPTIONS";
             headers["Access-Control-Allow-Credentials"] = false;
             headers["Access-Control-Max-Age"] = '86400';
             headers["Access-Control-Allow-Headers"] = "X-reqed-With, X-HTTP-Method-Override, Content-Type, Accept";
             res.writeHead(200, headers);
             res.end();
         }
         else if (req.method == 'POST') {
           var body = '';
           req.on('data', function (data) {
               body += data;
           });
           req.on('end', function () {
               var data = JSON.parse(body);
               var localPath = __dirname;
               var inputFilePath = localPath+"/videos/"+data.inputFilePath;
               var outputFilePath = localPath+"/videos/output-"+data.inputFilePath
               var start = data.begin;
               var end = data.end;


               var command = "ffmpeg -y -ss "+start+" -t "+(end-start)+" -i "+inputFilePath+" -vcodec copy -acodec copy "+outputFilePath;
               exec(command, function(error, stdout, stderr) {
                 var msg = ""
                 if(error) {
                   console.log(error);
                   msg = error.toString();
                   res.writeHead(500, {'Content-Type': 'text/plain'});
                 }
                 else {
                   console.log(stdout);
                   res.writeHead(200, {'Content-Type': 'text/plain'});
                 }
                 res.end(msg);
               });
           });
         }
         else if (req.method == 'GET') {
           var filename = "index.html";
           if(req.url != "/") {
             filename = req.url
           }

           var ext = path.extname(filename);
           var localPath = __dirname;
           var validExtensions = {
             ".html" : "text/html",      
             ".js": "application/javascript",
             ".css": "text/css",
             ".txt": "text/plain",
             ".jpg": "image/jpeg",
             ".gif": "image/gif",
             ".png": "image/png",
             ".ico": "image/x-icon"
           };
           var mimeType = validExtensions[ext];

           if (mimeType) {
             localPath += "/interface/"+filename;
             fs.exists(localPath, function(exists) {
               if(exists) {
                 console.log("Serving file: " + localPath);
                 getFile(localPath, res, mimeType);
               } else {
                 console.log("File not found: " + localPath);
                 res.writeHead(404);
                 res.end();
               }
             });

           } else {
             console.log("Invalid file extension detected: " + ext)
           }
         }
       }).listen(1337, '127.0.0.1');
       console.log('Server running at http://127.0.0.1:1337/');

       function getFile(localPath, res, mimeType) {
         fs.readFile(localPath, function(err, contents) {
           if(!err) {
             res.setHeader("Content-Length", contents.length);
             res.setHeader("Content-Type", mimeType);
             res.statusCode = 200;
             res.end(contents);
           } else {
             res.writeHead(500);
             res.end();
           }
         });
       }

    He does exactly do the correct way for splitting the video. I am searching for a solution to cut more then only once. Because when I split again it overwrites the previous cut video. How can I change the code to split more then once?

    I have already FFMPEG installed and works correct.

    The output must be for example:

    output-1.mp4
    output-2.mp4
    output-3.mp4
    output-4.mp4
  • h264: straighten dimensions check ff_h264_decode_seq_parameter_set

    27 June 2016, by Benoit Fouet
    h264: straighten dimensions check ff_h264_decode_seq_parameter_set
    

    The MBS only flag was not taken into account when checking macroblock dimensions.
    Also removes the unneeded check in init_dimensions for slices.

    • [DH] libavcodec/h264_ps.c
    • [DH] libavcodec/h264_slice.c