Recherche avancée

Médias (5)

Mot : - Tags -/open film making

Autres articles (49)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (8880)

  • Extract the first 2 minutes of video without re-encoding - ffmpeg

    8 juillet 2015, par Code_Ed_Student

    I am seeking a fast and efficient way of extracting the first two minutes of a video. Below script finds the nearest keyframe after 120 seconds. This keyframe searching is some what time consuming for large video files. If I disregard the keyframe and cut, I face the fact that the video maybe ruined. I have also tried forcing a keyframe but that involves re-encoding. What is the best and most efficient way to extract the first two minutes of a large video file ?

    #fetch nearest keyframe after two minutes
    ffprobe -select_streams v -show_frames -v quiet -i test.mp4 |
       awk -F= '
         /pict_type=/ { if (index($2, "I")) { i=1; } else { i=0; } }
         /pkt_pts_time/ { if (i && ($2 >= 120)) print $2; }  
       ' | head -n 1

    #cut video
    ffmpeg -i test.mp4 -ss 00:00:00 -t 00:02:00.15 -async 1 cut.mp4
  • PNaCl ffmpeg port crashes during startup

    15 avril 2016, par lavsprat

    I’m trying to run a PNaCl ffmpeg port and run some basic commands. Unfortunately I only managed to print this error in index.html :

    > NaCl module load failed : Nexe crashed during startup

    I got the pre-built port from here and my Chrome version is 43.0.2357.132.

    ffmpeg.nmf

    {
     "program": {
       "portable": {
         "pnacl-translate": {
           "url": "ffmpeg"
         }
       }
     }
    }

    ffmpeg file found in payload\bin path of the downloaded port package has no .pexe extension. I assume this is not a problem as long as nacl manifest doesn’t specify it either. Right ?

    index.html

     <code class="echappe-js">&lt;script type=&quot;text/javascript&quot; src='http://stackoverflow.com/feeds/tag/main.js'&gt;&lt;/script&gt;

    Status : LOADING

    &lt;script type=&quot;text/javascript&quot;&gt;<br />
         var listener = document.getElementById('listener');<br />
         listener.addEventListener('load', moduleLoadEventHandler, true);<br />
         listener.addEventListener('message', messageEventHandler, true);<br />
         listener.addEventListener('error', errorEventHandler, true);<br />
         listener.addEventListener('crash', crashEventHandler, true);<br />
       &lt;/script&gt;

    main.js

    var ffmpegModule = null;
    var logMessageArray = [];
    var kMaxLogMessageLength = 20;

    function domContentLoadEventHandler() {
       ffmpegModule = document.getElementById('ffmpeg');
    }

    function moduleLoadEventHandler() {
       ffmpegModule = document.getElementById('ffmpeg');
       setStatus('SUCCESS');
    }

    function messageEventHandler(eventArgs) {
       logMessage('Message received: ' + eventArgs.data);
    }

    function errorEventHandler(eventArgs) { //Function that prints the error
       setStatus('ERROR [' + ffmpegModule.lastError + ']');
    }

    function crashEventHandler() {
       if (ffmpegModule.exitStatus == -1) {
           setStatus('CRASHED');
       }
       else {
           setStatus('EXITED [' + ffmpegModule.exitStatus + ']');
       }
       if (typeof window.handleCrash !== 'undefined') {
           window.handleCrash(ffmpegModule.lastError);
       }
    }

    function setStatus(statusText) {
       var statusField = document.getElementById('statusField');
       statusField.innerHTML = statusText;
    }

    function logMessage(message) {
       logMessageArray.push(message);
       if (logMessageArray.length > kMaxLogMessageLength) {
           logMessageArray.shift();
       }
       document.getElementById('logs').textContent = logMessageArray.join('\n');
    }

    document.addEventListener("DOMContentLoaded", domContentLoadEventHandler);

    Makefile

    I also have this little makefile "stolen" from nacl_sdk tutorials.

    HTTPD_PY := python $(NACL_SDK_ROOT)/tools/httpd.py

    all: serve

    .PHONY: serve
    serve:
       $(HTTPD_PY) -C $(CURDIR) --no-dir-check
  • Anomalie #3497 (Fermé) : authentification spip avec #INSERT_HEAD en fin de page

    24 juillet 2015, par cedric -

    Je répète encore une fois. Il ne faut pas mettre #INSERT_HEAD en bas de page. Est-ce que son nom n’est pas assez explicite ? HEAD comme .
    Par ailleurs, la préconisation générale de mettre les JS en pied de page est obsolète. Il ne faut plus faire cela, c’est une erreur sur les navigateurs modernes.
    Alternativement on peut utiliser du chargement asynchrone comme proposé par http://www.yterium.net/jQl-an-asynchronous-jQuery-Loader et activable directement dans SPIP 3.1 en ajoutant
    define('_JS_ASYNC_LOAD',true);
    dans mes_options.php
    (en SPIP 3.0 il faut surcharger manuellement quelques fonctions pour le faire, mais cela fonctionne très bien en production sur plusieurs sites)