
Recherche avancée
Médias (39)
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (101)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 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 (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (16547)
-
FFmpeg : How to color-key all colors except blue and white ?
21 février 2018, par DanielNgI know how to colorkey a specific color from an overlay video based on the documentation from FFmpeg. Here is the code I used to colorkey the black color out of a video then overlay it with a base video keeping the audio from the overlaid video :
"ffmpeg -i " + baseVid + " -i " + overlayVid + " -y" + ' -filter_complex "[1:v]colorkey=0x000000:0.6:0.0[ckout];[0:v][ckout]overlay=shortest=1[out]" -shortest -map 1:a -map "[out]" ' + output
However, my problem is that the overlaid video also contains other colors such as blue, white, brown, grey, green. Even though they are only small portions compared to the black that has been removed, they make the colorkeyed overlaid video look really dirty. I want to keep only the two main colors (blue and white) and removing the rest from the overlaid video. How do I do this using FFmpeg. I tried this code but it did not work.
-
FFMPEG How to trim last 2 seconds of multiple files ?
28 août 2022, par user10784270I have over 200 video clips each exactly 5 seconds long, however, the last 2 seconds of each are just a black screen so I want to have this trimmed out. How would I do this ?


-
ffmpeg - overlay filter alpha premultiplied performs brighter on transparent images
26 avril 2022, par windows_airDescription


I'm using ffmpeg's overlay filter with alpha premultiplied parameter. I noticed that when a completely transparent image was overlay to the background video, the output video was much brighter.


In the following demo, I will use RGBA8888 format images for overlay. Its use of
RGBA (255,255,255,0)
indicates full transparency (aka completely transparent white), and the result demonstrates a very noticeable brightening (the expected result should be unchanged, since the image is completely transparent).
ps : UsingRGBA (0,0,0,0)
(aka completely transparent black) also results in a brightened image.

Code (overlay transparent white)


ffmpeg.exe -loglevel debug -i a1.mp4 -i a1.png -filter_complex "[0:v][1:v]overlay=x=0:y=0:alpha=premultiplied[v]" -map "[v]" -c:v:0 libx264 -f mp4 output.mp4





Code (overlay transparent black)


This command uses lavfi to simulate the transparent black output of RGBA. For demonstration purposes only, you may need ctrl+c to prevent infinite output.


ffmpeg.exe -y -i a1.mp4 -f lavfi -i "color=color=black@0.0:size=1920x540,format=rgba" -filter_complex "[0:v][1:v]overlay=x=0:y=0:alpha=premultiplied[v]" -map "[v]" -c:v:0 libx264 -f mp4 output.mp4





The results show that the upper part is more whitish (brighter).


Related files can be downloaded here : https://gist.github.com/windowsair/5315437a97dadf3f74f886486657183d



Back to the question, I had to use
premultiplied
to get the correct overlay result : Using thestraight
option will have a darkening effect in areas that are not fully transparent, which is why I insisted onpremultiplied
. Is this a ffmpeg problem ? How should I avoid the undesirable effect of brighter images from transparent image overlays ? Thank you !