Opened 8 years ago

Closed 8 years ago

Last modified 8 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

Description

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 by Elon Musk, 8 years ago

Resolution: fixed
Status: newclosed

comment:2 by llogan, 8 years ago

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.