Recherche avancée

Médias (0)

Mot : - Tags -/albums

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (111)

  • 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

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

Sur d’autres sites (9829)

  • avfilter/vf_waveform : add graticule for chroma and flat filter

    14 mars 2016, par Paul B Mahol
    avfilter/vf_waveform : add graticule for chroma and flat filter
    

    Signed-off-by : Paul B Mahol <onemda@gmail.com>

    • [DH] libavfilter/vf_waveform.c
  • First upload video and display upload progress and then convert video using ffmpeg and display progress

    21 avril 2020, par Salman

    I am working on a video sharing platform. What I want to do is that when user upload a video, it first shows an upload progress bar and after completing upload it shows another progress bar for ffmpeg execution time remaining.

    &#xA;&#xA;

    I am using this jQuery code for displaying upload progress bar.

    &#xA;&#xA;

    $("body").on("submit", "form[name=&#x27;upload&#x27;]", function(e) {&#xA;    e.preventDefault();&#xA;    var formData = new FormData(this);&#xA;    $.ajax({&#xA;        cache: false,&#xA;        contentType: false,&#xA;        data: formData,&#xA;        dataType: "json",&#xA;        method: "POST",&#xA;        processData: false,&#xA;        url: "upload.php",&#xA;        error: function() {&#xA;            alert("Sorry, something went wrong!");&#xA;        },&#xA;        xhr: function() {&#xA;            var xhr = new window.XMLHttpRequest();&#xA;            xhr.upload.addEventListener("progress", function(evt) {&#xA;                if (evt.lengthComputable) {&#xA;                    var percentComplete = (evt.loaded / evt.total) * 100;&#xA;                    $(".upload .progress-bar").css({&#xA;                        "width": percentComplete &#x2B; "%"&#xA;                    });&#xA;                }&#xA;            }, false);&#xA;&#xA;            return xhr;&#xA;        }&#xA;    });&#xA;});&#xA;

    &#xA;&#xA;

    And I am using this php code for executing video in ffmpeg.

    &#xA;&#xA;

    shell_exec(&#x27;ffmpeg -i uploads/video.mp4 -c:a copy -s 256x144 uploads/video_144p.mp4 > uploads/output.log 2>&amp;1&#x27;);&#xA;

    &#xA;&#xA;

    It generates an "output.log" file.&#xA;Now in jQuery I can GET the content of this log file and display the progress after little calculations.&#xA;This is the jQuery code

    &#xA;&#xA;

    $.ajax({&#xA;    type: "GET",&#xA;    cache: false,&#xA;    url: "uploads/output.log",&#xA;    success: function(response) {&#xA;        var duration = 0;&#xA;        var time = 0;&#xA;        var progress = 0;&#xA;&#xA;        var matches = (response) ? response.match(/Duration: (.*?), start:/) : [];&#xA;        if (matches.length > 0) {&#xA;            var rawDuration = matches[1];&#xA;&#xA;            var arrayReverse = rawDuration.split(":").reverse();&#xA;            duration = parseFloat(arrayReverse[0]);&#xA;            if (arrayReverse[1]) duration &#x2B;= parseInt(arrayReverse[1]) * 60;&#xA;            if (arrayReverse[2]) duration &#x2B;= parseInt(arrayReverse[2]) * 60 * 60;&#xA;&#xA;            matches = response.match(/time=(.*?) bitrate/g);&#xA;            console.log(matches);&#xA;&#xA;            if (matches.length > 0) {&#xA;                var rawTime = matches.pop();&#xA;&#xA;                if (Array.isArray(rawTime)) {&#xA;                    rawTime = rawTime.pop().replace("time=", "").replace(" bitrate", "");&#xA;                } else {&#xA;                    rawTime = rawTime.replace("time=", "").replace(" bitrate", "");&#xA;                }&#xA;&#xA;                arrayReverse = rawTime.split(":").reverse();&#xA;                time = parseFloat(arrayReverse[0]);&#xA;                if (arrayReverse[1]) time &#x2B;= parseInt(arrayReverse[1]) * 60;&#xA;                if (arrayReverse[2]) time &#x2B;= parseInt(arrayReverse[2]) * 60 * 60;&#xA;&#xA;                progress = Math.round((time / duration) * 100);&#xA;            }&#xA;        }&#xA;        $(".execution .progress-bar").css({&#xA;            "width": progress &#x2B; "%"&#xA;        });&#xA;    }&#xA;});&#xA;

    &#xA;&#xA;

    Now I want a single AJAX code which will upload my file first and display "Upload progress" and after that it will execute my video in php FFMPEG and display "Execution progress"

    &#xA;

  • fluent ffmpeg how to set X11 display as input

    3 novembre 2018, par direxit

    With command line i can easily capture an Xserver display, trying to reproduce this with fluent-ffmpeg for node

    videoCommand.addInput(':99.0+0,150')
    .withSize('720x480')
    .withFpsInput(60)
    .withFpsOutput(60)
    .addInputOption('-y', '-f x11grab')
    .outputOptions(['-c:v libx264', '-crf 18' , '-preset veryfast' , '-t
    00:00:05'])
    .output(base_path+'/video.mp4')
    .run();

    I get

    Unrecognized option 'f x11grab'.

    I am concerned about the syntax or way to set the input as DISPLAY :99.0
    and also to tell ffmpeg that i want x11grab.

    Where those has to be set ?

    --- EDIT ---

    changed to .addInputOptions(’-y’, ’-f x11grab’)
    with ’s’

    same error