[FFmpeg-devel] avfilter/showvolume : various "fix"
Martin Vignali
martin.vignali at gmail.com
Sat Mar 31 00:18:10 EEST 2018
Hello,
After discussion in user mailing list,
several patchs, trying to fix various "issue" with showvolume filter
A wav example can be found here (1000 hz with -12 db, then -18 db then 0
db) :
https://we.tl/X6L69kEWAN
Command line to test (vertical)
./ffmpeg -i inputFile.wav -filter_complex
"[0:a]showvolume=w=340:h=5:o=v:f=1.:p=1.:t=0:m=p:v=0[v]"
-map "[v]" -c:v qtrle resAudioMeter004.mov
Command line to test (horizontal)
./ffmpeg -i inputFile.wav -filter_complex
"[0:a]showvolume=w=340:h=5:o=h:f=1.:p=1.:t=0:m=p:v=0[v]"
-map "[v]" -c:v qtrle resAudioMeter004.mov
001 : add comments to help to remember the orientation value inside func
002 : calculate fade only if fade option is not set to 1.
003 : indent
004 : clear buffer at each frame (not sure it's the best way to fix)
with this patch the wav sample at the start of this email, show a correct
audio meter
(the -18 db part of the wav, is correctly display)
005 : indent
006 : use another scale for display (some kind of log scale), more close to
a classic audio meter display. IMHO, it's better, but if need, i will add
and option, for choosing the scale display.
007 : Fix doc, for orientation parameter (possible value are h or v, not
horizontal or vertical)
I think the result of rms mode is still not right, but need more work.
Comments welcome
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avfilter-showvolume-add-comment-for-orientation-cond.patch
Type: application/octet-stream
Size: 2180 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180330/ed6c082e/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-avfilter-showvolume-calculate-fade-only-if-fade-1.patch
Type: application/octet-stream
Size: 1098 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180330/ed6c082e/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-avfilter-showvolume-indent-after-prev-commit.patch
Type: application/octet-stream
Size: 1779 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180330/ed6c082e/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-avfilter-showvolume-clear-buffer-at-each-frame.patch
Type: application/octet-stream
Size: 1207 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180330/ed6c082e/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-avfilter-showvolume-indent-after-prev-commit.patch
Type: application/octet-stream
Size: 1310 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180330/ed6c082e/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-avfilter-showvolume-use-some-kind-of-log-scale-for-d.patch
Type: application/octet-stream
Size: 2096 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180330/ed6c082e/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-doc-avfilter-showvolume-fix-doc-for-orientation-para.patch
Type: application/octet-stream
Size: 904 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180330/ed6c082e/attachment-0006.obj>
More information about the ffmpeg-devel
mailing list