Recherche avancée

Médias (91)

Autres articles (104)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (12787)

  • Why does ffmpeg.exe started from Windows batch file close immediately without waiting for user input ?

    12 juin 2017, par user2566350

    I searched google for an hour but I could not find anything to fix my issue. I found only "similar" fixes for problems I’m not having.

    I am opening ffmpeg.exe from a batch file that only has ffmpeg.exe with no arguments in it and it doesn’t work even though it did few hours ago.

    If I open command line from the folder and enter ffmpeg.exe it works because it’s not closing ffmpeg but waits for my input which is exactly how the batch file worked before.

    What could be the issue ?

    I have not changed the batch file or ffmpeg one or their locations.

    Running on Windows 7 x64 if that matters.

    Edit : File name is start ffmpeg.bat. It’s content is only ffmpeg.exe which used to work. I also tried start ffmpeg.exe and ffmpeg and changed the filename to 1.bat and 1.cmd but neither worked.

    Edit2 : Sorry i can’t explain myself better my english isn’t very good, however I will try to explain using these images :

    This is what i get if i run CMD and write ffmpeg.exe
    This is what i get if i run CMD from the desktop and enter ffmpeg.exe

    This is what I get when i run the batch file (after i added pause)
    This is what I get when i run the batch file (after i added pause)
    Batch contents : 1st line=ffmpeg.exe, 2nd line=pause.

    As you can see without the pause ffmpeg will terminate and not remain on the screen like the in first image.

    I tried renaming the file and I tried to run it as admin but neither worked, Any suggestion why is it suddenly not running as it did yesterday ?

  • Splitting more then once with a library

    12 mai 2017, par Fearhunter

    I am doing a research for split video’s in four files for example. I was looking at this repository on github.

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

    It’s a very nice repo how to split a video. My question is : how can I split more files then only one cut ? When I split for the second time it will overwrite the previous one. Here is the open source code of the splitting :

    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();
       }
     });
    }

    I have installed FFMPEG also to do this.

    Kind regards

  • Where can I get 16-bit video sequences ? [on hold]

    9 mai 2017, par govind

    I understand that I can create 16-bit videos from 8-bit ones, but I want to work on actual 16-bit data (for a class project) and not just the bit-shifted pixel values. I just want to extract and work on the 16-bit Luma component from the video.

    https://media.xiph.org/ has 16-bit raw contents but the file size is 500GB. I would like to limit my downloads to 1-2 GB.
    The footnote at https://media.xiph.org/video/derf/ says "These were converted from 16-bit linear RGB to Y’CbCr", can I get the source from which these conversion took place.

    I could create my own content with some custom pattern but that’s not an option since I want to work on natural-looking imagery.

    I do understand that regular monitors can only display 8-bit. I also understand that it’s not a typical StackOverflow question, but I have already spent 2 hours online searching for it. Any links will be appreciated. Thanks in advance.