Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (101)

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

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (10321)

  • avcodec/videotoolbox : Fix undefined symbol with minimal configuration

    4 janvier 2022, par Limin Wang
    avcodec/videotoolbox : Fix undefined symbol with minimal configuration
    

    Please reproduced with the following minimal configure command :
    ./configure —enable-shared —disable-all —enable-avcodec —enable-decoder=h264 —enable-hwaccel=h264_videotoolbox

    You'll get below error :

    Undefined symbols for architecture x86_64 :
    "_ff_videotoolbox_vpcc_extradata_create", referenced from :
    _videotoolbox_start in videotoolbox.o
    ld : symbol(s) not found for architecture x86_64
    clang : error : linker command failed with exit code 1 (use -v to see invocation)

    Reported-by : Cameron Gutman <aicommander@gmail.com>
    Tested-by : Cameron Gutman <aicommander@gmail.com>
    Signed-off-by : Limin Wang <lance.lmwang@gmail.com>

    • [DH] libavcodec/videotoolbox.c
  • avcodec/aaccoder : Add minimal bias in search_for_ms()

    31 mai 2021, par Michael Niedermayer
    avcodec/aaccoder : Add minimal bias in search_for_ms()
    

    Fixes : floating point division by 0
    Fixes : Ticket8218

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/aaccoder.c
  • moviepy black border around png when compositing into an MP4

    27 août 2022, par OneWorld

    compositing a png into an MP4 video creates a black border around the edge.

    &#xA;

    This is using moviepy 1.0.0

    &#xA;

    Code below reproduces the MP4 with the attached red text png.

    &#xA;

    enter image description here

    &#xA;

    import numpy as np&#xA;import moviepy.editor as mped&#xA;def composite_txtpng_on_colour():&#xA;    bg_color = mped.ColorClip(size=[400, 300], color=np.array([0, 255, 0]).astype(np.uint8),&#xA;                          duration=2).set_position((0, 0))&#xA;    text_png_postition = [5, 5]&#xA;    text_png = mped.ImageClip("./txtpng.png", duration=3).set_position((text_png_postition))&#xA;&#xA;    canvas_size = bg_color.size&#xA;    stacked_clips = mped.CompositeVideoClip([bg_color, text_png], size=canvas_size).set_duration(2)&#xA;    stacked_clips.write_videofile(&#x27;text_with_black_border_video.mp4&#x27;, fps=24)&#xA;&#xA;composite_txtpng_on_colour()&#xA;

    &#xA;

    The result is an MP4 that can be played in VLC player. A screenshot of the black edge can be seen below :-

    &#xA;

    enter image description here

    &#xA;

    Any suggestions to remove the black borders would be much appreciated.

    &#xA;

    Update : It looks like moviepy does a blit instead of alpha compositing.

    &#xA;

    def blit(im1, im2, pos=None, mask=None, ismask=False):&#xA;    """ Blit an image over another.  Blits ``im1`` on ``im2`` as position ``pos=(x,y)``, using the&#xA;    ``mask`` if provided. If ``im1`` and ``im2`` are mask pictures&#xA;    (2D float arrays) then ``ismask`` must be ``True``.&#xA;    """&#xA;    if pos is None:&#xA;        pos = [0, 0]&#xA;&#xA;    # xp1,yp1,xp2,yp2 = blit area on im2&#xA;    # x1,y1,x2,y2 = area of im1 to blit on im2&#xA;    xp, yp = pos&#xA;    x1 = max(0, -xp)&#xA;    y1 = max(0, -yp)&#xA;    h1, w1 = im1.shape[:2]&#xA;    h2, w2 = im2.shape[:2]&#xA;    xp2 = min(w2, xp &#x2B; w1)&#xA;    yp2 = min(h2, yp &#x2B; h1)&#xA;    x2 = min(w1, w2 - xp)&#xA;    y2 = min(h1, h2 - yp)&#xA;    xp1 = max(0, xp)&#xA;    yp1 = max(0, yp)&#xA;&#xA;    if (xp1 >= xp2) or (yp1 >= yp2):&#xA;        return im2&#xA;&#xA;    blitted = im1[y1:y2, x1:x2]&#xA;&#xA;    new_im2 = &#x2B;im2&#xA;&#xA;    if mask is None:&#xA;        new_im2[yp1:yp2, xp1:xp2] = blitted&#xA;    else:&#xA;        mask = mask[y1:y2, x1:x2]&#xA;        if len(im1.shape) == 3:&#xA;            mask = np.dstack(3 * [mask])&#xA;        blit_region = new_im2[yp1:yp2, xp1:xp2]&#xA;        new_im2[yp1:yp2, xp1:xp2] = (1.0 * mask * blitted &#x2B; (1.0 - mask) * blit_region)&#xA;    &#xA;    return new_im2.astype(&#x27;uint8&#x27;) if (not ismask) else new_im2&#xA;

    &#xA;

    and so, Rotem is right.

    &#xA;

    new_im2[yp1:yp2, xp1:xp2] = (1.0 * mask * blitted &#x2B; (1.0 - mask) * blit_region)&#xA;

    &#xA;

    is

    &#xA;

    (alpha * img_rgb &#x2B; (1.0 - alpha) * bg)&#xA;

    &#xA;

    and this is how moviepy composites. And this is why we see black at the edges.

    &#xA;