[FFmpeg-user] how to create audio bar in video ?

Moritz Barsnick barsnick at gmx.net
Sat Jun 17 16:15:19 EEST 2017

On Sat, Jun 17, 2017 at 10:18:36 +0300, Daniel wrote:
> Hello everyone i was wondering if it's possible to create audio bar in 
> video which i get from live stream and save it something like 
> ->https://cdn.pbrd.co/images/wHNkcDMi.png 
> <https://cdn.pbrd.co/images/wHNkcDMi.png> .I will appreciate any tips or 
> howto.

Sure. Do have a look at the showvolume filter. You need a
"filter_complex" chain to take the audio, convert it to bars using the
filter, and overlay it over the original video. Something like this:

$ ffmpeg -i inputfile_or_stream -filter_complex "[0:a]asplit[a][aout]; [a]showvolume=o=v[bars]; [0:v][bars]overlay=x=main_w-overlay_w:y=0[vout]" -map "[vout]" -map "[aout]" output.mp4


More information about the ffmpeg-user mailing list