title: Generate waveform image from audio stream of a video
body: <p>I need to generate a waveform of an audio stream of a video,
  currently I'm using xuggler and java to do some little things, but seems like I'm not able to get a byte array of the inputstream audio of my video from IAudioSamples.</p>
  
  <p>Now I'm searching for an easier way to do it since xuggler is really becoming hard to understand, I've searched online and I've found this:
  <a href="http://codeidol.com/java/swing/Audio/Build-an-Audio-Waveform-Display/" rel="nofollow">http://codeidol.com/java/swing/Audio/Build-an-Audio-Waveform-Display/</a></p>
  
  <p>should work on .wav files, but when I try the code on a video or a .mp3 the AudioInputStream returns "cannot find an audio input stream"</p>
  
  <p>can someone tell me a way to get byte[] array of the audiostream of one video so that I can follow the tutorial to create a waveform?
  also if you have suggestion or other library that could help me I would be glad</p>