Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (74)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

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

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

Sur d’autres sites (10152)

  • Trouble with ffmpeg on mac os catalina 10.15.3

    27 décembre 2020, par Scuds

    I had ffmpeg installed before upgrading my os to catalina. When I tried to re-encode a video it complained with this message

    



    dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /usr/local/bin/ffmpeg
  Reason: image not found
zsh: abort      ffmpeg


    



    I found out openssl isn't used in catalina in favor for libressl.. 
I did a brew search openssl and found I have openssl@1.1 not 1.0.0

    



    I'm weary about messing around with the version of openssl because so many other programs depend on it and I don't want to screw up my system..

    



    My question is how can I get ffmpeg to run on my system ? Mac os catalina 10.15.3

    


  • dcadsp : Add a new method, qmf_32_subbands

    15 juillet 2013, par Ben Avison
    dcadsp : Add a new method, qmf_32_subbands
    

    This does most of the work formerly carried out by
    the static function qmf_32_subbands() in dcadec.c.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libavcodec/dcadec.c
    • [DH] libavcodec/dcadsp.c
    • [DH] libavcodec/dcadsp.h
  • set MediaRecorder to record 1 frame every N seconds

    19 août 2022, par The Blind Hawk

    Summary

    &#xA;

    I have a version of my code already working on Chrome and Edge, but I need some fixes for it to work on Safari.
    &#xA;My objective is to record around 25 minutes and download a timelapse version of the recording.
    &#xA;final product requirements :

    &#xA;

    speed: 3fps&#xA;length: ~25s&#xA;&#xA;(I need to record one frame every 20 seconds for 25 mins)&#xA;

    &#xA;

    this.secondStream settings :

    &#xA;

    this.secondStream = await navigator.mediaDevices.getUserMedia({&#xA;    audio: false,&#xA;    video: {width: 430, height: 430, facingMode: "user"}&#xA;});&#xA;

    &#xA;

    My code for IOS so far :

    &#xA;

            startIOSVideoRecording: function() {&#xA;            console.log("setting up recorder");&#xA;            var self = this;&#xA;            this.data = [];&#xA;&#xA;            if (MediaRecorder.isTypeSupported(&#x27;video/mp4&#x27;)) {&#xA;                // IOS does not support webm, so I will be using mp4&#xA;                var options = {mimeType: &#x27;video/mp4&#x27;, videoBitsPerSecond : 1000000};&#xA;            } else {&#xA;                console.log("ERROR: mp4 is not supported, trying to default to webm");&#xA;                var options = {mimeType: &#x27;video/webm&#x27;};&#xA;            }&#xA;            console.log("options settings:");&#xA;            console.log(options);&#xA;&#xA;            this.recorder = new MediaRecorder(this.secondStream, options);&#xA;&#xA;            this.recorder.ondataavailable = function(evt) {&#xA;                if (evt.data &amp;&amp; evt.data.size > 0) {&#xA;                    self.data.push(evt.data);&#xA;                    console.log(&#x27;chunk size: &#x27; &#x2B; evt.data.size);&#xA;                }&#xA;            }&#xA;&#xA;            this.recorder.onstop = function(evt) {&#xA;                console.log(&#x27;recorder stopping&#x27;);&#xA;                var blob = new Blob(self.data, {type: "video/mp4"});&#xA;                self.download(blob, "mp4");&#xA;                self.sendMail(videoBlob);&#xA;            }&#xA;&#xA;            console.log("finished setup, starting")&#xA;            this.recorder.start(1200);&#xA;&#xA;            function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms));}&#xA;&#xA;            async function looper() {&#xA;                // I am trying to pick one second every 20 more or less&#xA;                await sleep(500);&#xA;                self.recorder.pause();&#xA;                await sleep(18000);&#xA;                self.recorder.resume();&#xA;                looper();&#xA;            }&#xA;            looper();&#xA;        },&#xA;

    &#xA;

    Issues

    &#xA;

    Only one call to getUserMedia()

    &#xA;

    I am already using this.secondstream elsewhere, and I need the settings to stay as they are for the other functionality.
    &#xA;On Chrome and Edge, I could just call getUserMedia() again with different settings, and the issue would be solved, but on IOS calling getUserMedia() a second time kills the first stream.
    &#xA;The settings that I was planning to use (works for Chrome and Edge) :

    &#xA;

    navigator.mediaDevices.getUserMedia({&#xA;    audio: false,&#xA;    video: { &#xA;        width: 360, height: 240, facingMode: "user", &#xA;        frameRate: { min:0, ideal: 0.05, max:0.1 } &#xA;    },&#xA;}&#xA;

    &#xA;

    The timelapse library I am using does not support mp4 (ffmpeg as alternative ?)

    &#xA;

    I am forced to use mp4 on IOS apparently, but this does not allow me to use the library I was relying on so I need an alternative.
    &#xA;I am thinking of using ffmpeg but cannot find any documentation to make it interact with the blob before the download.
    &#xA;I do not want to edit the video after downloading it, but I want to be able to download the already edited version, so no terminal commands.

    &#xA;

    MediaRecorder pause and resume are not ideal

    &#xA;

    On Chrome and Edge I would keep one frame every 20 seconds by setting the frameRate to 0.05, but this does not seem to work on IOS for two reasons.
    &#xA;First one is related to the first issue of not being able to change the settings of getUserMedia() without destroying the initial stream in the first place.
    &#xA;And even after changing the settings, It seems that setting the frame rate below 1 is not supported on IOS. Maybe I wrote something else wrong, but I was not able to open the downloaded file.
    &#xA;Therefore I tried relying on pausing and resuming the MediaRecorder, but this brings forth another two issues :
    &#xA;I am currently saving 1 second every 20 seconds and not 1 frame every 20 seconds, and I cannot find any workarounds.
    &#xA;Pause and Resume take a little bit of time, making the code unreliable, as I sometimes pick 2/20 seconds instead of 1/20, and I have no reliability that the loop is actually running every 20 seconds (might be 18 might be 25).

    &#xA;