Recherche avancée

Médias (91)

Autres articles (112)

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

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (11525)

  • flacdec : do not overwrite a channel layout set by the caller

    25 mai 2014, par Anton Khirnov
    flacdec : do not overwrite a channel layout set by the caller
    

    The channel layout mask for non-standard layouts is typically stored at
    the container level (as a vorbiscomment tag) for FLAC.

    • [DH] libavcodec/flac.c
  • How to round a square image and put it on video

    27 juillet 2022, par Erez git

    I've a video, videoPath.
I've a square image, squarePath.

    


    This code places the squarePath on the video at a desired position to output, outputVideo.

    


    final String[] cmd = new String[]{"-i", videoPath, "-i", squarePath, "-filter_complex", "[1:v][0:v]scale2ref=(300/300)*175:175[wm][base];[base][wm]overlay=(main_w-overlay_w)/2:(343)", "-pix_fmt", "yuv420p", "-c:a", "copy", "-y", outputVideo};

int res = FFmpeg.execute(cmd);


    


    I would like to round the squarePath in the same command. Is it possible ?

    


    This is the code to make it rounded as I found :

    


    ffmpeg -i avatar.png -i mask.png -filter_complex [0]scale=400:400[ava];[1]alphaextract[alfa];[ava][alfa]alphamerge output.png


    


    but I don't understand how to merge these two commands.

    


  • FFmpeg : Removing black outline on overlay after alphamerge

    9 novembre 2023, par trmd

    Similar question : FFmpeg transparent PNG black outline issue

    


    When using FFmpeg to create a GIF from an mp4, masking the video using alphamerge and a PNG-mask, and overlaying a circle outline, black lines occur on both the video and the circle in the final GIF.

    


    From this question, some suggestions are made to add alpha=premultiplied and format=rgb,format=yuv420p in the overlay-filter. This removes the black line (on the circle), but the masking from alphamerge no longer works.

    


    Filter used which generates black outlines :

    


    [0][1]alphamerge[merged];
[merged][2:v]overlay=
    format=auto:
    alpha=premultiplied[withCircleOverlay];
[withCircleOverlay]scale=${size}x${size}[scaled];
[scaled]split[s0][s1];
[s0]palettegen=reserve_transparent=on:transparency_color=ffffff[p];
[s1][p]paletteuse


    


    Filter used which removes outlines, but also cropping :

    


    [0][1]alphamerge[merged];
[merged][2:v]overlay=
    alpha=premultiplied:
    format=rgb,format=yuv420p[withCircleOverlay];
[withCircleOverlay]scale=${size}x${size}[scaled];
[scaled]split[s0][s1];
[s0]palettegen=reserve_transparent=on:transparency_color=ffffff[p];
[s1][p]paletteuse


    


    Command used :

    


    ffmpeg -i movie.mp4 -i mask.png -i circle.png -filter_complex <filter> output.gif&#xA;</filter>

    &#xA;

    What I've tried :

    &#xA;

      &#xA;
    • Changing the format-parameter on overlay to a lot of different values.
    • &#xA;

    • Changing the order of the filters.
    • &#xA;

    • Playing around with running multiple ffmpeg-passes : First doing the merging, saving this to a file, and then adding the circle afterwards. I think this in principle should work if I tinker with it enough.
    • &#xA;

    &#xA;

    Are there any ways to get around this issue ?

    &#xA;

    Image with black outlines

    &#xA;

    Image with black outline

    &#xA;

    Image without outline, but also without alphamerge cropping

    &#xA;

    Image without outline, but also without alphamerge cropping

    &#xA;