IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
CLI tool to plot the waveform of an audio file to an image
odyssey
post Aug 18 2009, 19:07
Post #1





Group: Members
Posts: 2296
Joined: 18-May 03
From: Denmark
Member No.: 6695



Does anyone know of a CLI (command line) tool on Windows with the ability to plot the waveform of an audio file to a custom sized image? I'm talking about a visual representation as the one seen in Audition or any other sound editor.

Currently I have tried these PHP scripts, but they are not of very good quality. They produces a weird representation only consisting og a positive OR a negative value (while a zoomed out representation should contain both).

I tried sox that can convert a file to a text-file filled with values, but this is so huge that it's just not an option.

Yet I have to try this wav2png.py script and I have a feeling that it might be the best option, if I'm able to make it run correctly on Windows.



I feel I've been searching the web around several times with no luck - Anyone know of something better?

This post has been edited by odyssey: Aug 18 2009, 19:08


--------------------
Can't wait for a HD-AAC encoder :P
Go to the top of the page
+Quote Post
rpp3po
post Aug 18 2009, 19:13
Post #2





Group: Developer
Posts: 1126
Joined: 11-February 03
From: Germany
Member No.: 4961



Sox can output frequency plots to png images.

This post has been edited by rpp3po: Aug 18 2009, 19:14
Go to the top of the page
+Quote Post
odyssey
post Aug 18 2009, 19:24
Post #3





Group: Members
Posts: 2296
Joined: 18-May 03
From: Denmark
Member No.: 6695



Didn't see that in the docs w00t.gif - How does it do that?? Ah frequency-plot == spectrogram...

Edit: I found out how to make a spectrogram using sox... Which is pretty neat, but not really what I was looking for right now wink.gif The docs on it still doesn't seem to explain it. I even tried a search on "PNG" on the entire sox docs site, which only returned this link.

This post has been edited by odyssey: Aug 18 2009, 19:49


--------------------
Can't wait for a HD-AAC encoder :P
Go to the top of the page
+Quote Post
odyssey
post Aug 18 2009, 20:03
Post #4





Group: Members
Posts: 2296
Joined: 18-May 03
From: Denmark
Member No.: 6695



Initially my plan with sox was to do something like this using gnuplot. However, I'm not sure piping on Windows is as efficient as *nix-systems?


--------------------
Can't wait for a HD-AAC encoder :P
Go to the top of the page
+Quote Post
Axon
post Feb 25 2010, 21:52
Post #5





Group: Members (Donating)
Posts: 1984
Joined: 4-January 04
From: Austin, TX
Member No.: 10933



Bump. I have recently come into a need for this sort of thing, but more specifically, a way to animate a waveform so as to have it placed into a video. (No, doing a video cap of the fb2k scope won't work, the framerates won't match.)

I'm thinking hacking wav2png.py is going to make the most sense - ie, create PNGs (or an AVI) of a sliding window of the waveform - but I wanted to know if anybody has already done this sort of thing, before I start reinventing wheels.
Go to the top of the page
+Quote Post
menno
post Feb 25 2010, 22:02
Post #6


Nero MPEG4 developer


Group: Developer (Donating)
Posts: 1218
Joined: 11-October 01
From: LA
Member No.: 267



Avisynth can do that: http://avisynth.org.ru/docs/english/extern.../audiograph.htm
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st August 2014 - 18:29