
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (37)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
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 (7174)
-
Overlaying one video on another one, and making black pixels transparent
25 janvier 2023, par Michael AI'm trying to use FFMPEG to create a video with one video overlayed on top another.



I have 2 MP4s. I need to make all BLACK pixels in the overlay video transparent so that I can see the main video underneath it.



I found two ways to overlay one video on another :



First, the following positions the overlay in the center, and therefore, hides that portion of the main video beneath it :



ffmpeg -i 1.mp4 -vf "movie=2.mp4 [a]; [in][a] overlay=352:0 [b]" combined.mp4 -y




And, this one, places the overlay video on the left, but it's opacity is set to 50% so at least other one beneath it is visible :



ffmpeg -i 1.mp4 -i 2.mp4 -filter_complex "[0:v]setpts=PTS-STARTPTS[top]; [1:v]setpts=PTS-STARTPTS, format=yuva420p,colorchannelmixer=aa=0.5[bottom]; [top][bottom]overlay=shortest=0" -acodec libvo_aacenc -vcodec libx264 out.mp4 -y




My goal is simply to make all black pixels in the overlay (2.mp4) completely transparent. How can this be done.


-
Change gray pixel to black pixels in video
12 janvier 2023, par yabruI want to change every gray pixel in my video with the (r,g,b) 158,158,158 to black 0,0,0


I've tried the solution of THIS post, but backwards. I just do not understand the syntax.


ffmpeg -y -I my_video.mp4 -c copy -c:v libx264 -preset ultrafast -vf "yadif,format=rgb24, lutrgb=r='if(eq(val,158),0,val)':g='if(eq(val,158),0,val)':b='if(eq(val,158),0,val)'" my_video_fixed.mp4


^ doesn't change anything


could anyone help me modify my command (with an explanation of the solution) :)


version :
ffmpeg version 5.1.2


-
Is ffmpeg's chromakey filter broken when matching black/white ?
7 janvier 2023, par Taylor BrownI have a file,
colors.png
. It looks like this :



Let's say I want to make the red square transparent. When I run
ffmpeg -i colors.png -filter_complex "[0]chromakey=0xff0000:similarity=0.1:blend=0.0[out]" -map "[out]" colors-rm-red.png
(notice I usesimilarity=0.1
to make this work), I get exactly that :



How about making the blue square transparent ?
ffmpeg -i colors.png -filter_complex "[0]chromakey=0x0000ff:similarity=0.1:blend=0.0[out]" -map "[out]" colors-rm-blue.png
works too !



But what about replacing black ?
ffmpeg -i colors.png -filter_complex "[0]chromakey=0x000000:similarity=0.1:blend=0.0[out]" -map "[out]" colors-rm-black.png
gives me this :



And likewise, replacing white with
ffmpeg -i colors.png -filter_complex "[0]chromakey=0xffffff:similarity=0.1:blend=0.0[out]" -map "[out]" colors-rm-white.png
gives me the same result :



Why is this ? Even if I use
similarity=0.01
, which according to the docs "matches only the exact key color", this still doesn't work when I'm trying to make black/white transparent. Is ffmpeg broken, or am I misunderstanding thechromakey
filter ?