Recherche avancée

Médias (91)

Autres articles (44)

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (8375)

  • How to make mp4 from MediaStream in Chrome browser

    18 février 2017, par otiai10

    MediaRecorder.isTypeSupported('video/mp4') is false in Chrome. So I found MediaStreamRecorder https://github.com/streamproc/MediaStreamRecorder then I did

    var recorder = new MediaStreamRecorder(stream, {
     mimeType: 'video/mp4',
    });
    // also
    recorder.mimeType = 'video/mp4';

    But the output is webm as I checked with ffmpeg -i

    Input #0, matroska,webm, from '/Users/otiai10/Downloads/example.mp4':
     Metadata:
       encoder         : Chrome
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0(eng): Video: vp8, yuv420p, 640x480, SAR 1:1 DAR 4:3, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)

    The video is playable in Chrome but NOT on QuickTime Player, in evidence.

    Here are more details and (not !) working example of this problem.

    It was said muaz-khan/Ffmpeg.js can convert webm to mp4, but the file size matters.

    Is there any workaround to record and save as mp4 ?

  • Video created with ffmpeg does not playing in Windows media player

    14 janvier 2019, par Prince Tyagi

    Issue : Video is not playing with Windows Media Player while its successfully playing with VLC player, Google Chrome browser.

    Below are the details that I am using :
    1. npm "fluent-ffmpeg" version : "2.1.2" in node application.
    2. node version 8.11.3.
    3. FFmpeg version : 20161230-6993bb4 downloaded from http://ffmpeg.zeranoe.com/builds.
    4. Set path to ffmpeg.exe to in path on system environment.
    5. Here is the sample code.

    let command = new ffmpeg({ source: 'rtsp://192.168.2.198/cam0_1' }), fileName = 'abc.mp4';

    // Record video from camera.
    command.inputFPS(20)
     .duration(10)
     .on('start', function () {
       console.log('Recording started.', ('File: ' + fileName));
     })
     .on('end', function () {
       console.log('Recording completed.', ('File: ' + fileName));
     })
     .on('error', function (err, stdout, stderr) {
       console.log('An error occurs while recording.', ('File: ' + fileName), err.message, stdout, stderr);
     })
     .format('mp4')
     .save(fileName);
  • How to fix "corrupted" and/or out of sync MP4s with FFMPEG ? [closed]

    15 juillet 2022, par JoeDohn

    Some videos recorded by our users are corrupted and we have no idea why. They’re MP4s recorded from android, about 5% of videos sent by our users end up +/- unreadable.

    


    When trying to read them on firefox it says the file is corrupt, on chrome we get a black player and the video doesn’t start.

    


    The video can be read with VLC but the audio and video are out of sync. After a re-encoding the video are readable on browsers, but also out of sync : When we open the video, the audio start but the image is frozen for a few seconds, then when the image starts it’s obviously not in sync with the audio since it started too late.

    


    There is this error in the firefox console when trying to play the video :

    


    Media resource https://[……] could not be decoded. 2 […].mp4
Media resource https://[…] could not be decoded,
error: Error Code: NS_ERROR_DOM_MEDIA_DECODE_ERR (0x806e0004)
Details: mozilla::MediaResult mozilla::AppleATDecoder::DecodeSample(mozilla::MediaRawData *): 
Error decoding audio sample: 1650549857 @ 64000[…].mp4


    


    Does anybody have any idea on how to fix those videos ? I tried dozens of ffmpeg commands(with -async 1, trying to convert from VFR to CFR, changing the codec, the extension etc… I have no idea what to try next)

    


    Thanks