19

MP3/WAV から PNG/JPEG ビジュアルを作成する Windows 用のコマンドライン プログラムは (どこかに) ありますか?

編集: これは、画像がどのように見えるかの良い例です。 ここに画像の説明を入力

4

5 に答える 5

38

「オーディオ操作のスイス アーミー ナイフ」であるSoxは、サウンド ファイルから正確な PNG スペクトログラムを生成できます。ほとんど何でも再生でき、Windows 用のバイナリが利用可能です。最も基本的なレベルでは、次のようなものを使用します。

sox my.wav -n spectrogram

軸、タイトル、凡例がなく、高さが 100 ピクセルの明るい背景のスペクトログラムが必要な場合:

sox "Me, London.mp3" -n spectrogram -Y 130 -l -r -o "Me, London.png"

たとえば、単一のチャネルのみを分析したい場合、Sox は多くのオプションを受け入れます。ビジュアルをさらにクールにする必要がある場合は、結果の PNG を後処理できます。

使用可能なすべてのパラメーターに関するコマンドラインからの簡単な概要を次に示します。詳細については、マンページを参照してください

-x num  X-axis size in pixels; default derived or 800
-X num  X-axis pixels/second; default derived or 100
-y num  Y-axis size in pixels (per channel); slow if not 1 + 2^n
-Y num  Y-height total (i.e. not per channel); default 550
-z num  Z-axis range in dB; default 120
-Z num  Z-axis maximum in dBFS; default 0
-q num  Z-axis quantisation (0 - 249); default 249
-w name Window: Hann (default), Hamming, Bartlett, Rectangular, Kaiser
-W num  Window adjust parameter (-10 - 10); applies only to Kaiser
-s  Slack overlap of windows
-a  Suppress axis lines
-r  Raw spectrogram; no axes or legends
-l  Light background
-m  Monochrome
-h  High colour
-p num  Permute colours (1 - 6); default 1
-A  Alternative, inferior, fixed colour-set (for compatibility only)
-t text Title text
-c text Comment text
-o text Output file name; default `spectrogram.png'
-d time Audio duration to fit to X-axis; e.g. 1:00, 48
-S time Start the spectrogram at the given time through the input
于 2012-03-31T14:50:33.660 に答える