Skip navigation
TechnoLemming
Currently Being Moderated

Visualization of Audio from live RTMP video stream.

Aug 16, 2012 8:35 PM

I have a need to do basic remote monitor video is presant and levels of audio.

 

I had hoped to used http://www.longtailvideo.com/addons/plugins/247/SUB-Equalizer

but it seems to be incompatable with live streams.

 

the VU level requirement is basic of that there is an live audio feed and does not need to be fancy at all.

 

We currently use JWPlayer but am not tied to it for this project.

 

Cheers for the help

 

Robert

 
Replies
  • Currently Being Moderated
    Aug 17, 2012 6:32 AM   in reply to TechnoLemming

    Have you tried the computeSpectrum() method of the Sound class? Since flash V9.x it can compute the spectrum on RTMP. The link to the API has a full example that makes a waveform. It computes a value from -1.0 to 1.0 for 512 values, 256 for the left and 256 for the right channels.

     

    You can bundle them in blocks and use the data to compute your audio levels. Just bundle a bunch of values and make one bar that displays the average of the values to simplify it. e.g. 4 bars uses the average of the values from 0-64, 65-128, 129-192, 193-256 for the left channel.. You get the idea.

     

    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fla sh/media/SoundMixer.html#computeSpectrum()

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points