Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#5076 closed enhancement (fixed)

Add options for background and waveform colors in showwaves

Reported by: llogan Owned by:
Priority: wish Component: avfilter
Version: git-master Keywords: showwaves, showwavespic
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Several users have requested the ability to change the colors for the background and waveform(s) in showwaves(pic) filter. This filter currently outputs GRAY8. Changing the colors with colorchannelmixer or similar is possible, but is often too complicated for general users.

Change History (2)

comment:1 Changed 5 years ago by richardpl

  • Resolution set to fixed
  • Status changed from new to closed

comment:2 Changed 5 years ago by llogan

Waveform color support added in 6ed3a10f644b7e96ec2bece7ab6c98629fdd5ff9 (colors option).

A background_color option would be useful, but now that format is RGBA users can at least avoid using colorkey/chromakey filters and overlay the output from showwaves(pic) over an output from color filter if color background is desired. For example:

ffmpeg -i music.wav -f lavfi -i color=s=600x240:c=red -filter_complex \
"[0:a]showwavespic[fg];[1:v][fg]overlay=format=rgb" -frames:v 1 output.png
Note: See TracTickets for help on using tickets.