
Recherche avancée
Médias (91)
-
999,999
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Demon seed (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
The four of us are dying (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Corona radiata (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Lights in the sky (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (111)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
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. -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (11742)
-
ffmpeg - convert background to black ? [closed]
22 juin 2022, par david furstthe basic problem

convert all pixels in all frames of a source video to black if they have a white value below a certain threshold and output the results as a series of static images with no transparency.

my solution so far

i am able to do this with a two-step process :

- 

- convert pixels below the threshold to transparent using ffmpeg's
colorkey
filtre, outputting a series as PNG. - use imagemagick to convert the PNG to JPEG.






this approach is very slow. ideally i'd like to do everything in one go, within ffmpeg.


the reason i haven't been able to do that so far is that the resulting transparency isn't discarded (as i'd hoped) when outputting to non-transparent formats like JPG, even if i try to 'discard' the alpha layer beforehand using combinations of
split
andlutrgb
; the resulting JPEGs still resemble the original images.

my current filter chain :


ffmpeg -hide_banner -y -i input.mp4 -f lavfi -i color=c=white \
 -filter_complex "[0:v]format=gray[src];
 [1][src]scale2ref[white][vid];
 [vid][white]blend=all_mode=multiply:shortest=1,colorkey=black:0.95" %05d.png



- convert pixels below the threshold to transparent using ffmpeg's
-
sws : fix ED mono dither black level
19 janvier 2013, par Michael Niedermayersws : fix ED mono dither black level
-
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.