Git Product home page Git Product logo

Comments (8)

ThibaultBee avatar ThibaultBee commented on July 19, 2024

Hello :)

I was kind of expecting this request.
There is a branch where you can get peak and/or rms value of each audio channels: https://github.com/ThibaultBee/StreamPack/tree/feature/vu-meter. I just rebased it. Is it what you are looking for? Are you going to use rms and/or peak value?

The only things missing for now is that when preview is running, you won't get any value cause audio capture is not running and I still don't really know how to implement this part.

Regards,
Thibault

from streampack.

ruirodrigues-eyenov avatar ruirodrigues-eyenov commented on July 19, 2024

Hello :)

this is great! exactly what I wanted! thanks :)

I don't need the values while previewing but from what I can understand you can just startRecording on the AudioRecord and discard the Frames after getting the measurements.

from streampack.

ThibaultBee avatar ThibaultBee commented on July 19, 2024

Hi,
This is the issue: there aren't any audio frames when encoder is not running. It means that you can only access audio frame when StreamPack is live streaming.

from streampack.

ruirodrigues-eyenov avatar ruirodrigues-eyenov commented on July 19, 2024

Yes, I know. To get audio frames you need to start recording when preview starts and discard audio frames instead of streaming them. But in my case this isn't an issue at all.

Another question on a different matter: Is it possible to get any metrics from streaming? just wondering :)

from streampack.

ThibaultBee avatar ThibaultBee commented on July 19, 2024

What metrics do you have in mind?

from streampack.

ruirodrigues-eyenov avatar ruirodrigues-eyenov commented on July 19, 2024

latency, bandwidth, frame rate, bitrate. I am not sure if those are possible at all.

from streampack.

ThibaultBee avatar ThibaultBee commented on July 19, 2024

Do you use SRT or RTMP?
I guess it is quite easy to return latency, bandwidth and network bitrate with SRT, not sure about RTMP.

from streampack.

ruirodrigues-eyenov avatar ruirodrigues-eyenov commented on July 19, 2024

SRT πŸ˜„

from streampack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.