Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a simple way to get the audio frequency spectrum at a given time of a video?

My motivation is the following: I was wondering if it is possible to "measure" the Doppler shift from YouTube videos like this using only my laptop.

share|improve this question
Meanwhile I found an answer and posted it, however, I am still interested in other maybe easier or more professional solutions. – student Jun 22 '11 at 11:19
up vote 1 down vote accepted

Meanwhile I found the following solution:

  1. Launch audacity
  2. Open your video file say video.flv Alternatively you can use ffmpeg to extract the audio: ffmpeg -i video.flv audio.wav and open in audacity audio.wav
  3. Select a region of the waveform
  4. Go to Analyze – Plot Spectrum

I think it is helpful to set the axis to Log frequency and use the largest value for size so select relevant peaks.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.