Recherche avancée

Médias (0)

Mot : - Tags -/inscription3

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

Autres articles (111)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

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

Sur d’autres sites (14456)

  • avformat/hls : Don't strdup non-null-terminated string

    3 mars 2020, par Andreas Rheinhardt
    avformat/hls : Don't strdup non-null-terminated string
    

    If an URI indicated that the data protocol was in use, it would be
    copied into a temporary buffer via strncpy(dst, src, strlen(src)),
    thereby ensuring that the trailing \0 would not be copied, despite dst
    being uninitialized. dst would then be av_strdup'ed, leading to
    potential segfaults.

    The solution to this is simple : Don't copy the URI in the temporary
    buffer at all, instead av_strdup it directly.

    This fixes a -Wstringop-truncation warning emitted by GCC 9.2.

    Reviewed-by : Steven Liu <lq@chinaffmpeg.org>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavformat/hls.c
  • avutil/opt : Don't use NULL for %s string in a log message

    29 mars 2020, par Andreas Rheinhardt
    avutil/opt : Don't use NULL for %s string in a log message
    

    If one calls av_opt_set() with an incorrect string to set the value of
    an option of type AV_OPT_TYPE_VIDEO_RATE, the given string is used in a
    log message via %s. This also happens when the string is actually a
    nullpointer in which case using it for %s is forbidden.

    This commit changes this by erroring out early in case of a nullpointer.

    This also fixes a warning from GCC 9.2 :
    "‘%s’ directive argument is null [-Wformat-overflow=]"

    Reviewed-by : Anton Khirnov <anton@khirnov.net>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavutil/opt.c
  • Write base64 encoded string as Image with javascript

    21 avril 2020, par Manoj Kumar

    I am using FFmpeg and html2canvus and trying to create an mp4 video with the screenshots taken from a slider.

    &#xA;&#xA;

    here is my worker initialization

    &#xA;&#xA;

    const worker = createWorker({&#xA;    //logger: ({ message }) => console.log(message),&#xA;    progress: (p) => console.log(p),&#xA;});&#xA;

    &#xA;&#xA;

    Then in click, I take the screenshots and putting into the video

    &#xA;&#xA;

    const image2video = async () => {&#xA;    displayLoader();&#xA;    var zip = new JSZip();&#xA;    let selectedbanners = $(".selected_templates:checked");&#xA;    await worker.load();&#xA;    let promise = new Promise((resolve, reject) => {&#xA;        let Processed = 0;&#xA;        selectedbanners.each(async function () {&#xA;            var dataIndex = $(this).data(&#x27;index&#x27;);&#xA;            let ad = adTemplates[dataIndex];&#xA;            var innercounter = 0;&#xA;            $(`.template-container-${ad.name}`).each(async function () {&#xA;                var imgData;&#xA;                await html2canvas($(`.template-container-${ad.name}`)[innercounter], {allowTaint: true, width: ad.width, height: ad.height}).then(canvas => {&#xA;                    imgData = canvas.toDataURL(&#x27;image/jpeg&#x27;, 1.0).split(&#x27;base64,&#x27;)[1];&#xA;                    //await worker.write(`tmp.${ad.name}.${innercounter}.png`, imgData);&#xA;&#xA;                });&#xA;                await worker.write(`tmp.${ad.name}.${innercounter}.png`, imgData);&#xA;                //await worker.write(`tmp.0.png`, `static/triangle/tmp.0.png`);   This is working&#xA;            });&#xA;        });&#xA;    });&#xA;};&#xA;

    &#xA;&#xA;

    I have setup a codepen here. It works if I put the image path but doesn't work if I directly pass the base64 string. Here I found that it also supports the base64 string as well as the URL.&#xA;This is how it looks in console&#xA;enter image description here&#xA;Thanks in advance.

    &#xA;