
Recherche avancée
Autres articles (44)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
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 ) (...)
Sur d’autres sites (7509)
-
avcodec/qsv : Added look ahead rate control mode
21 août 2015, par Sven Dueking -
Is it possible to use the signalstats YAVG filter in FFMPEG to control the gamma correction in a video ? [migrated]
27 décembre 2023, par tuquequeI don't know if this is even possible, but something tells me it is… You see, I want to dynamically control the gamma correction in FFMPEG/FFPLAY depending on how bright/dark the frame being reproduced in a video/movie is…


For context, there's a filter in FFMPEG/FFPLAY/FFPROBE called
signalstats
that reports various useful sets of info about the video being processed/reproduced/analized. There's aYAVG
parameter in thesignalstats
filter that returns the averageluma
level of the frame (https://ffmpeg.org/ffmpeg-filters.html#signalstats-1) . This is what I want to use to determine/calculate thegamma
value to use in the eq filtergamma
(https://ffmpeg.org/ffmpeg-filters.html#eq)… For example, in the end, I would like to use a formula like"1-(YAVG/50)+1"
…

With the
signalstats YAVG
filter/parameter I've managed to do these unrelated exercises :

Analyze (with FFPROBE) a video and write a log file with the
YAVG
value for each frame :

ffprobe -f lavfi movie=VIDEO_INPUT,signalstats -show_entries frame_tags=lavfi.signalstats.YAVG -of csv="p=0" > YAVG.log



I have been able to also play a video (with FFPLAY) and show in the upper-left corner the
YAVG
values for each frame being reproduced :

First, we need to create a text file in the home folder called in this case "
signalstat_drawtext.txt
" with the following content :

%{metadata:lavfi.signalstats.YAVG}



Then, we run this command :


ffplay VIDEO_INPUT -vf signalstats,drawtext=fontfile=FreeSerif.ttf:fontcolor=lime:textfile=signalstat_drawtext.txt



However, I haven't been able to find/guess how to use the
YAVG
output to control (in realtime) thegamma
value in theeq
filter… I think it's possible, I just don't know how to write the command.

Using FFPLAY, I would imagine something like this :


ffplay VIDEO_INPUT -vf signalstats,eq=gamma="1-(metadata:lavfi.signalstats.YAVG/50)+1":eval=frame



But of course, this doesn't work and I'm sure I'm just writing nonsense.


-
avfilter/vf_drawtext : add expression variables to control font ascent/descent
26 mai 2023, par yethie