
Recherche avancée
Autres articles (43)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (9076)
-
Trying to crop an image in ffmpeg using alphamerge but produces wrong alpha
12 septembre 2021, par Alex StylI am using alphamerge in order to crop an image within a circle.


What I have so far is :


ffmpeg -f lavfi -i "color=c=white:size=240x240" -i avatar.png -i mask.png -filter_complex \
 "[1][2]alphamerge[img]; \
 [0][img]overlay[out]" -c:v png -map "[out]" -pix_fmt rgba -t 5 -y out.mp4 2>&1



with avatar.png and mask.png respectively being :




This produces the following output (1 frame of the output video) :




which is unexpected, given the original input is much darker than this.


How can I crop the 'avatar.png' using the 'mask.png' so that the output is the avatar.png cropped in a circle and keeping the same alpha ?


PS : The important bit here is for me to be able to crop the original image and maintaining the correct colors/apha of the original image. If there is an other way of doing this (other than alphamerge) I am happy to hear it.


-
flac : Fix channel order for mono files.
28 juin 2014, par Erik de Castro Lopoflac : Fix channel order for mono files.
* The default channel mask for mono files was 0x0001 (front left) but it
makes more sense to use 0x0004 (front center) for such files.* Also FLAC will accept not only mono WAV files with 0x0001 mask, but also
with 0x0002 (requested at https://sourceforge.net/p/flac/bugs/390/)
and 0x0004 (e.g. SoX creates mono files with this mask).* The comment about channel support was updated.
* The error message
"Use —channel-map=none option to store channels in current order ; FLAC files
must also be decoded with —channel-map=none to restore correct order."
is misleading : FLAC never changes the order of channels.
Decoding with this options also sets the channel mask of the resulting WAV
file to 0. Without this option the mask is equal to the value of
WAVEFORMATEXTENSIBLE_CHANNEL_MASK tag.Patch-from : lvqcl <lvqcl.mail@gmail.com>
-
Anomalie #2741 (Fermé) : recherche inefficace
30 mai 2012, par jluc -Je constate régulièrement l’inefficacité de la recherche. Par exemple, actuellement, sur spip-contrib.net SPIP 3.0.1 SVN [19462] la recherche de ’abomailman’ ne renvoie que l’article ’Mes Abonnés’ alors qu’il existe un article "Abomailmans pour s’abonner à des listes de diffusion" (qui n’est pas (...)