Convert input audio to a single video frame, representing the samples waves.
The filter accepts the following options:
- size, s
-
Specify the video size for the output. For the syntax of this option, check the "Video size" section in the ffmpeg-utils manual. Default value is
600x240
. - split_channels
-
Set if channels should be drawn separately or overlap. Default value is 0.
- colors
-
Set colors separated by ’|’ which are going to be used for drawing of each channel.
- scale
-
Set amplitude scale. Can be linear
lin
or logarithmiclog
. Default is linear.
Examples
-
Extract a channel split representation of the wave form of a whole audio track in a 1024x800 picture using ffmpeg:
ffmpeg -i audio.flac -lavfi showwavespic=split_channels=1:s=1024x800 waveform.png
-
Colorize the waveform with colorchannelmixer. This example will make the waveform a green color approximately RGB(66,217,150). Additional channels will be shades of this color.
ffmpeg -i audio.mp3 -filter_complex "showwavespic,colorchannelmixer=rr=66/255:gg=217/255:bb=150/255" waveform.png