Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identifying sound in stream #751

Open
cubecleveland opened this issue May 19, 2023 · 0 comments
Open

Identifying sound in stream #751

cubecleveland opened this issue May 19, 2023 · 0 comments
Labels
question Discussion about functionality

Comments

@cubecleveland
Copy link

HI guys i was wondering if there is a way to sense a n audio coming in the stream, i have audio enab;led and i get the audio streamed to me
im using the following code to get bit rate from the camera for motion,

 const videoTrack = tracks?.find((track) => track.type === 'video');
    if (videoTrack !== undefined) {
      const quality = videoEl.getVideoPlaybackQuality();

      const dropPercent =
        (quality.droppedVideoFrames / quality.totalVideoFrames) * 100;
      const { coding, profile, level } = videoTrack?.codec;
      const framerate = Number(pipeline.framerate[videoTrack.index].toFixed(2));
      const bitrate = Math.round(pipeline.bitrate[videoTrack.index] / 1000);```

i was wondering if there is a way to extract  the audio and see if an audio is high or low based on bitrate...

@cubecleveland cubecleveland added the question Discussion about functionality label May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Discussion about functionality
Projects
None yet
Development

No branches or pull requests

1 participant