Recherche avancée

Médias (91)

Autres articles (99)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

Sur d’autres sites (8974)

  • Revision 29926 : On branche spip_piwik

    17 juillet 2009, par kent1@… — Log

    On branche spip_piwik

  • JW Player can't play mp4 video downloaded from youtube

    20 janvier 2015, par kheya

    I have doenloaded am mp4 video using IE Realplayer plugin from youtube.
    https://www.youtube.com/watch?v=e3a80c5Ar3Y

    I have a test site on my local machine where I have HTML5 JW Player.

    I download the video and then play locally using realplay to see if it plays.
    I notice that not all mp4 downloads from youtube plays in Realplayer.
    The ones that play in Realplayer also play in JW Player on local website.
    But the mp4 files that don’t play in Realplayer also don’t play in JW player.

    This is the error I get in the player :
    the video playback was aborted due to a corruption problem or because the video used features your browser didnot support mylocalsite/xyz.mp4 undefined

    I tested IE, FF, Chrome. It works nowhere.

    Here is my jw player setup and html :

    <video src="mylocalsite/test.mp4" type="video/mp4" poster="mylocalsite/test.jpg" width="640" height="360"></video>

    player setup :

    var modes = '';
    var swfPath = '/content/jw/player.swf';
               if (navigator.userAgent.toLowerCase().match(/(android)/) || navigator.userAgent.toLowerCase().match(/(chrom)/)) {                
                   modes = [{ type: 'flash', src: swfPath }, { type: "html5"}];
               } else {
                   modes = [{ type: 'html5' }, { type: 'flash', src: swfPath }, { type: "download"}];
               }

    jwplayer('container').setup({                
                   'flashplayer': swfPath,                
                   'width': '640',
                   'height': '360',
                   'provider': 'video',
                   'modes': modes,                
               });

    Here is the details info about the file returned by ffmpeg :

    ffmpeg version 1.1.4 Copyright (c) 2000-2013 the FFmpeg developers
     built on Jul 31 2013 02:49:36 with gcc 4.6.2 (GCC)
     configuration: --prefix=/c/Users/Administrator/ffmpeg --extra-cflags=-I/c/User
    s/Administrator/ffmpeg/include --extra-ldflags=-L/c/Users/Administrator/ffmpeg/l
    ib --cpu=i686 --enable-gpl --enable-libfdk-aac --enable-libx264 --enable-nonfree

     libavutil      52. 13.100 / 52. 13.100
     libavcodec     54. 86.100 / 54. 86.100
     libavformat    54. 59.106 / 54. 59.106
     libavdevice    54.  3.102 / 54.  3.102
     libavfilter     3. 32.100 /  3. 32.100
     libswscale      2.  1.103 /  2.  1.103
     libswresample   0. 17.102 /  0. 17.102
     libpostproc    52.  2.100 / 52.  2.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\videos\woh.mp4':
     Metadata:
       major_brand     : dash
       minor_version   : 0
       compatible_brands: iso6avc1mp41
       creation_time   : 2013-09-08 23:34:28
     Duration: 00:03:50.96, start: 0.000000, bitrate: 189 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 480x360,
    187 kb/s, 25 tbr, 90k tbn, 50 tbc
       Metadata:
         creation_time   : 2013-09-08 23:34:28
         handler_name    : VideoHandler

    What can be causing this issue ?

  • Why is the audio recording on Chrome missing duration

    16 août 2019, par Ivan Sedelkin

    I’m sending some user created audio to a server which later passes it to googles speech to text api for transcription. Everything works perfectly on firefox but when I try it on Chrome it doesn’t work. I then installed FFmpeg to check if the metadata somehow changed for the file on chrome and noticed that the duration on the file is tagged "N/A". This does not happen on firefox.

    This is the audio recorded from Chrome

    Input #0, matroska,webm, from 'PATH_TO_FILE':
     Metadata:
       encoder         : Chrome
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0(eng): Audio: opus, 48000 Hz, mono, fltp (default)

    This is the audio recorded from Firefox

    Input #0, ogg, from 'PATH_TO_FILE':
     Duration: 00:00:01.26, start: 0.000000, bitrate: 53 kb/s
       Stream #0:0: Audio: opus, 48000 Hz, mono, fltp
       Metadata:
         ENCODER         : Mozilla68.0

    The audio itself is recorded using the mediarecorder-api where the blob is later converted to base64-url and sent to my server.

    This is the code that I use to record the audio :

    navigator.mediaDevices
       .getUserMedia(
         // constraints - only audio needed for this app
         {
           audio: true
         }
       )

       // Success callback
       .then(function(stream) {
         console.log(navigator.mediaDevices.getSupportedConstraints());
         var mediaRecorder = new MediaRecorder(stream, { sampleRate: 44100 });
         var chunks = [];
         $(".rec-button")
           .mousedown(function() {
             console.log("rec start");
             $(".rec-button i").addClass("recStart");
             mediaRecorder.start();
             console.log(mediaRecorder.state);
             console.log("recorder started");
           })
           .mouseup(function() {
             console.log("rec end");
             $(".rec-button i").removeClass("recStart");
             mediaRecorder.stop();
             mediaRecorder.ondataavailable = function(e) {
               chunks.push(e.data);
               var blob = new Blob(chunks, { type: "audio/ogg; codecs=opus" });
               var player = document.getElementById("player");
               player.src = URL.createObjectURL(blob);
               chunks = [];
               var reader = new window.FileReader();
               reader.readAsDataURL(blob);
               reader.onloadend = function() {
                 var base64 = reader.result;
                 var audioArr = {
                   audio: base64
                 };
                 $.ajax({
                   url: "http://localhost:4242/api/1.0/post",
                   type: "POST",
                   contentType: "application/json",
                   dataType: "json",
                   data: JSON.stringify(audioArr),
                   success: function(response) {
                     console.log(response);
                   },
                   error: function(err) {
                     console.log(err);
                   }
                 });
               };
               console.log(mediaRecorder.state);
               console.log("recorder stopped");
             };
           });
       })

       // Error callback
       .catch(function(err) {
         console.log("The following getUserMedia error occured: " + err);
       });

    My goal is that the audio file recorded from chrome has a duration so that the google api can transcribe it. If you guys have any way of overcoming this problem I would be grateful