[FFmpeg-user] Visualization filter colors and scale.

Paul B Mahol onemda at gmail.com
Fri Sep 6 20:04:54 EEST 2019


On 9/6/19, Zsolt <dqeswn at gmail.com> wrote:
> Hello!
>
> Does anyone know how do I set the color matrix and range when using
> filter_complex?
>
> I use this filter:
> -filter_complex
> "[0:a]showfreqs=s=1920x1080:cmode=combined:colors=#990000|#770000,format=yuv444p[vid]"
> picture:
> [image: 1.jpg]
>
>
> The colors look rather orange, even though I only set the red channel.

They look only reddish here.

> Normally I use "-vf scale=out_color_matrix=bt709:out_range=pc" when dealing
> with full range to get proper video, but of course I can't use vf with
> filter_complex. How do I do it in this case?

Very basic question, just add scale=.... after your A->V filter, do
not forget to use  "," as filter separator.

>
> *A different question:*
>
> I also tried the showspectrum filter. When I use fscale=log the result is
> quite horrible. as if it's the same linear scale only the lower frequencies
> obscenely stretched, can this be helped?

Try showcqt filter if you can use it.

> snapshot:
>
> [image: 2.jpg]
>


More information about the ffmpeg-user mailing list