spectrum math help
Carl Karsten via gstreamer-devel <[email protected]> Tue, 25 Nov 2025 19:38:06 -0600
| Newsgroups | gmane.comp.video.gstreamer.devel |
|---|---|
| Message-ID | <CADmzSShP7jXT616oGqsH6Eih3xHN=KUycDW2jC+DB3ndWBK1fg@mail.gmail.com> |
--0000000000004e82b50644757418 Content-Type: text/plain; charset="UTF-8" I am trying to make a unit test sort of thing that looks at audio and tries to determine if it is "clean" (what that means is to be determined, but I think I am on the right track). I am kinda floundering, I am hoping someone can understand what I am doing and understand what I am looking for in the way of help. This gives me something nice to look at: gst-launch-1.0 audiotestsrc freq=8820 ! spectrascope ! videoconvert ! autovideosink I would like something that my python code also thinks is nice. But the numbers I am getting aren't as nice. I think. https://github.com/CarlFK/veyepar/blob/master/tests/gst/gst-spectrum.py The interesting numbers: -56.050777435302734 -58.094539642333984 -35.57657241821289 -15.861119270324707 -14.443975448608398 -29.120201110839844 -56.85686111450195 -56.68980407714844 I am hoping for something squarer. I think it is just a matter of the right freq and bands? But I'm only mostly sure that's what I need. Anyone understand what I am looking for? -- Carl K --0000000000004e82b50644757418 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div></div><div>I am trying to make a uni= t test sort of thing that looks at audio=C2=A0and tries to determine if it = is "clean" (what that means is to be determined, but I think I am= on the right track).</div><div><br></div><div>I am kinda floundering, I am= hoping someone can understand what I am doing and understand what I am=C2= =A0looking for in the way of help.=C2=A0 =C2=A0=C2=A0</div><div><br></div><= div>This gives me something=C2=A0nice to look at:</div><div><br></div><div>= gst-launch-1.0 audiotestsrc freq=3D8820 ! spectrascope ! videoconvert ! aut= ovideosink</div><div><br></div><div>I would like something that my python c= ode also thinks is nice.=C2=A0 But the numbers I am getting aren't as n= ice.=C2=A0 I think.=C2=A0=C2=A0</div><div><br></div><div><a href=3D"https:/= /github.com/CarlFK/veyepar/blob/master/tests/gst/gst-spectrum.py" target=3D= "_blank">https://github.com/CarlFK/veyepar/blob/master/tests/gst/gst-spectr= um.py</a></div><div><br></div><div>The interesting numbers:</div><div></div= ><div><br></div><div>-56.050777435302734<br>-58.094539642333984<br>-35.5765= 7241821289<br>-15.861119270324707<br>-14.443975448608398<br>-29.12020111083= 9844<br>-56.85686111450195<br>-56.68980407714844</div><div><br></div><div>I= am hoping for something squarer.=C2=A0=C2=A0</div><div><br></div><div>I th= ink it is just a matter of the right freq and bands?</div><div><br></div><d= iv>But I'm only mostly sure that's what I need. Anyone understand w= hat I am looking=C2=A0for?</div><div><br></div><span class=3D"gmail_signatu= re_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature" data-sm= artmail=3D"gmail_signature"><div dir=3D"ltr"><span>Carl K<br></span></div><= /div></div> </div> --0000000000004e82b50644757418--