Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.