Visualization filter colors and scale.

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Visualization filter colors and scale.

Zsolt
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.
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?

*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?
snapshot:

[image: 2.jpg]

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

1.jpg (141K) Download Attachment
2.jpg (578K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Visualization filter colors and scale.

Paul B Mahol
On 9/6/19, Zsolt <[hidden email]> 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]
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Visualization filter colors and scale.

Zsolt
Thanks for the reply.

Paul B Mahol <[hidden email]> ezt írta (időpont: 2019. szept. 6., P,
19:05):

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


Perhaps, however it doesn't work:
-filter_complex
"[0:a]showfreqs=s=1920x1080:cmode=combined:colors=#990000|#770000,format=yuv444p[vid],scale=out_color_matrix=bt709:out_range=pc"

I get a not too helpful error: "Cannot find a matching stream for unlabeled
input pad 0 on filter Parsed_scale_2"



> >
> > *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.
>

Going by what screenshot and videos I saw of that, it suffers from the same
issue.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Visualization filter colors and scale.

Paul B Mahol
On 9/6/19, Zsolt <[hidden email]> wrote:

> Thanks for the reply.
>
> Paul B Mahol <[hidden email]> ezt írta (időpont: 2019. szept. 6., P,
> 19:05):
>
>>
>> Very basic question, just add scale=.... after your A->V filter, do
>> not forget to use  "," as filter separator.
>>
>
>
> Perhaps, however it doesn't work:
> -filter_complex
> "[0:a]showfreqs=s=1920x1080:cmode=combined:colors=#990000|#770000,format=yuv444p[vid],scale=out_color_matrix=bt709:out_range=pc"
>
> I get a not too helpful error: "Cannot find a matching stream for unlabeled
> input pad 0 on filter Parsed_scale_2"
>

Your command is simply wrong. Read documentation carefully next time.

>
>
>> >
>> > *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.
>>
>
> Going by what screenshot and videos I saw of that, it suffers from the same
> issue.

Then use something else.


> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Visualization filter colors and scale.

Zsolt
Paul B Mahol <[hidden email]> ezt írta (időpont: 2019. szept. 6., P,
20:22):

> On 9/6/19, Zsolt <[hidden email]> wrote:
> > Thanks for the reply.
> >
> > Paul B Mahol <[hidden email]> ezt írta (időpont: 2019. szept. 6., P,
> > 19:05):
> >
> >>
> >> Very basic question, just add scale=.... after your A->V filter, do
> >> not forget to use  "," as filter separator.
> >>
> >
> >
> > Perhaps, however it doesn't work:
> > -filter_complex
> >
> "[0:a]showfreqs=s=1920x1080:cmode=combined:colors=#990000|#770000,format=yuv444p[vid],scale=out_color_matrix=bt709:out_range=pc"
> >
> > I get a not too helpful error: "Cannot find a matching stream for
> unlabeled
> > input pad 0 on filter Parsed_scale_2"
> >
>
> Your command is simply wrong. Read documentation carefully next time.
>

I can't see why though. I just added scale to the end of the filters, like
you said.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Visualization filter colors and scale.

Paul B Mahol
On 9/6/19, Zsolt <[hidden email]> wrote:

> Paul B Mahol <[hidden email]> ezt írta (időpont: 2019. szept. 6., P,
> 20:22):
>
>> On 9/6/19, Zsolt <[hidden email]> wrote:
>> > Thanks for the reply.
>> >
>> > Paul B Mahol <[hidden email]> ezt írta (időpont: 2019. szept. 6., P,
>> > 19:05):
>> >
>> >>
>> >> Very basic question, just add scale=.... after your A->V filter, do
>> >> not forget to use  "," as filter separator.
>> >>
>> >
>> >
>> > Perhaps, however it doesn't work:
>> > -filter_complex
>> >
>> "[0:a]showfreqs=s=1920x1080:cmode=combined:colors=#990000|#770000,format=yuv444p[vid],scale=out_color_matrix=bt709:out_range=pc"
>> >
>> > I get a not too helpful error: "Cannot find a matching stream for
>> unlabeled
>> > input pad 0 on filter Parsed_scale_2"
>> >
>>
>> Your command is simply wrong. Read documentation carefully next time.
>>
>
> I can't see why though. I just added scale to the end of the filters, like
> you said.

[vid] should be at far end.

> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Visualization filter colors and scale.

Zsolt
Paul B Mahol <[hidden email]> ezt írta (időpont: 2019. szept. 6., P,
23:04):

> >> > Perhaps, however it doesn't work:
> >> > -filter_complex
> >> >
> >>
> "[0:a]showfreqs=s=1920x1080:cmode=combined:colors=#990000|#770000,format=yuv444p[vid],scale=out_color_matrix=bt709:out_range=pc"
> >> >
> >> > I get a not too helpful error: "Cannot find a matching stream for
> >> unlabeled
> >> > input pad 0 on filter Parsed_scale_2"
> >> >
> >>
> >> Your command is simply wrong. Read documentation carefully next time.
> >>
> >
> > I can't see why though. I just added scale to the end of the filters,
> like
> > you said.
>
> [vid] should be at far end.
>
> Thanks! Now it doesn't have that orange tint. And black is actually black.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".