Recherche avancée

Médias (91)

Autres articles (64)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

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

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

Sur d’autres sites (6489)

  • More Windows fixes

    9 février 2016, par Erik de Castro Lopo
    More Windows fixes
    

    These fixes got lost in an earlier commit.

    Patch-from : lvqcl <lvqcl.mail@gmail.com>

    • [DH] include/share/win_utf8_io.h
    • [DH] src/share/win_utf8_io/win_utf8_io.c
  • Why does ffmpeg need DNS resolver as its dependencies ?

    20 décembre 2019, par Kshitij

    I was installing FFmpeg and libav today using brew install ffmpeg libav when I noticed unbound in the dependencies list.

    It’s very strange because unbound is DNS resolver and why ffmpeg would need it.

    ❯ brew install ffmpeg libav
    ==> Installing dependencies for ffmpeg: aom, frei0r, gmp, libtasn1, nettle, p11-kit, unbound, gnutls, lame, libass, libbluray, libsoxr, libvidstab, libvpx, opencore-amr, opus, libsndfile, libsamplerate, rubberband, sdl2, speex, giflib, leptonica, tesseract, theora, x264, x265 and xvid

    I even checked the info list for ffmpeg but unbound was not present there

    ❯ brew info ffmpeg
    ffmpeg: stable 4.2.1 (bottled), HEAD
    Play, record, convert, and stream audio and video
    https://ffmpeg.org/
    /usr/local/Cellar/ffmpeg/4.2.1_2 (287 files, 56.6MB)*
    - Poured from bottle on 2019-12-19 at 10:45:56
    From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/ffmpeg.rb
    ==> Dependencies
    Build: nasm ✘, pkg-config ✔, texi2html ✘
    Required: aom ✔, fontconfig ✔, freetype ✔, frei0r ✔, gnutls ✔, lame ✔, libass ✔, libbluray ✔, libsoxr ✔, libvidstab ✔, libvorbis ✔, libvpx ✔, opencore-amr ✔, openjpeg ✔, opus ✔, rtmpdump ✔, rubberband ✔, sdl2 ✔, snappy ✔, speex ✔, tesseract ✔, theora ✔, x264 ✔, x265 ✔, xvid ✔, xz ✔
    ==> Options
    --HEAD
       Install HEAD version
    ==> Analytics
    install: 66,434 (30 days), 280,128 (90 days), 1,079,492 (365 days)
    install-on-request: 48,053 (30 days), 203,583 (90 days), 759,254 (365 days)
    build-error: 0 (30 days)

    Links for reference

  • Writing a Custom Blend for Softlight

    21 mai 2020, par Jonas

    Lately I've been messing around with ffmpeg's blending modes and noticed their algorithms are not entirely the same as in Photoshop. I'm interested in Softlight blend and will use it as an example to illustrate my issue.

    &#xA;&#xA;

    First thing's first, I was able to mimic Photoshop's softlight with the blend and geq filters, but it's painfully slow with video inputs. Problem of geq I guess.

    &#xA;&#xA;

    ffmpeg -i top.png -i bottom.png -filter_complex "[0]format=rgba[a];[1]format=rgba,split[b][b2];[a][b]blend=all_expr=&#x27;if(lt(A\,0.5)\,(2*B*A&#x2B;(B*B)*(1-2*A))/255\,(2*B*(1-A)&#x2B;sqrt(B)*(2*A-1))/255)&#x27;:c3_expr=A,geq=a=&#x27;p(X\,Y)&#x27;:r=&#x27;min(255\,p(X\,Y))&#x27;:g=&#x27;min(255\,p(X\,Y))&#x27;:b=&#x27;min(255\,p(X\,Y))&#x27;[tmp];[b2][tmp]overlay[out]" -map [out] output.png&#xA;

    &#xA;&#xA;

    So it occurred to me that I'd be better off building ffmpeg from source adding in the PS softlight blend formula (note that in the formula a is the bottom layer and b is top, while in the code snippets it's the reverse).

    &#xA;&#xA;

    enter image description here

    &#xA;&#xA;

    I'm introducing changes to vf_blend.c file, line 263

    &#xA;&#xA;

    DEFINE_BLEND8(softlight,  (A > 127) ? B &#x2B; (255 - B) * (A - 127.5) / 127.5 * (0.5 - fabs(B - 127.5) / 255): B - B * ((127.5 - A) / 127.5) * (0.5 - fabs(B - 127.5)/255))&#xA;

    &#xA;&#xA;

    and making it

    &#xA;&#xA;

    DEFINE_BLEND8(softlight,   (A &lt; 127) ? (2*B*A&#x2B;(B*B)*(127.5-2*A))/255 : (2*B*(127.5-A)&#x2B;sqrt(B)*(2*A-127.5))/255)&#xA;

    &#xA;&#xA;

    Result was quite close but not exactly what I want (has a green tint on the output). My question is how can I change that line of code to match the above formula and get the desired softlight blend ?

    &#xA;