Martin Vignali
56315df32c
avfilter/showvolume : cosmetic move bracket after func declaration to a new line
7 years ago
Martin Vignali
fd10a6e2f2
avfilter/showvolume : add persistent max display
draw a color line for the max level in the given duration
7 years ago
Martin Vignali
cb2f52b6a7
avfilter/showvolume : add display scale option
linear (current behaviour) or log display (more close to classic audio meter)
7 years ago
Martin Vignali
78b6887da3
avfilter/showvolume : indent after prev commit and add comment
7 years ago
Martin Vignali
e4cfb2c669
avfilter/showvolume : move width test for draw volume to the start of the loop
7 years ago
Martin Vignali
4152413dde
avfilter/showvolume : move clear picture part to a func
and use it if fade == 0.
7 years ago
Paul B Mahol
0c25caa470
avfilter/avf_showvolume: let fade be also exactly 0
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Martin Vignali
328df2f712
avfilter/showvolume : indent after prev commit
7 years ago
Martin Vignali
25b22666a3
avfilter/showvolume : calculate fade only if fade < 1.
7 years ago
Martin Vignali
34304677c0
avfilter/showvolume : add comment for orientation condition
7 years ago
Paul B Mahol
3e3d567761
avfilter/avf_showvolume: implement basic rms metering mode
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
b78d55b2e6
avfilter/avf_showvolume: add background opacity option
This makes output more visible when overlayed.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Paul B Mahol
45e5d5f547
avfilter/avf_showvolume: calculate color table only once
8 years ago
Paul B Mahol
e2a39b103e
avfilter/avf_showvolume: use current peak value for picking colors
8 years ago
Michael Niedermayer
f2c8b666be
avfilter: Fix max value of AV_OPT_TYPE_VIDEO_RATE
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
65cc3915db
avfilter/avf_showvolume: support unknown channel layouts too
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
e266d29978
avfilter/avf_showwolume: add orientation and step option
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Michael Niedermayer
98626a1a4c
avfilter/avf_showvolume: Fix "warning: comparison of unsigned expression < 0 is always false"
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
7a9b4427b5
avfilter/avf_showvolume: fix several issues
Fix color fading: previously color could fade to red when
volume level for red color was actually never reached.
Display volume value on right side.
Use red color only if clipping is needed.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Ganesh Ajjanagadde
0fe5dcd660
avfilter/avf_showvolume: use log10 instead of log()/M_LN10
This is likely more precise and conveys the intent better.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
9 years ago
Ganesh Ajjanagadde
6aaac24d72
avfilter/all: propagate errors of functions from avfilter/formats
Many of the functions from avfilter/formats can return errors, usually AVERROR(ENOMEM).
This propagates the return values.
All of these were found by using av_warn_unused_result, demonstrating its utility.
Tested with FATE. I am least sure of the changes to avfilter/filtergraph,
since I don't know what/how reduce_format is intended to behave and how it should
react to errors.
Fixes: CID 1325680, 1325679, 1325678.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Previous version Reviewed-by: Nicolas George <george@nsup.org>
Previous version Reviewed-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
9 years ago
Clément Bœsch
286d625b43
avfilter/showvolume: use AV_OPT_TYPE_BOOL for channel name displaying option (t)
9 years ago
Paul B Mahol
5bf8590d6e
avfilter/avf_showvolume: stop making output fully transparent
9 years ago
Paul B Mahol
e658b1036c
avfilter/avf_showvolume: make it possible to use current channel number in color expression
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Paul B Mahol
9842d6707f
avfilter/avf_showvolume: optionally display channel names
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Paul B Mahol
f76d7d4b01
avfilter: add showvolume filter
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago