Relative Content

Tag Archive for ffmpegsoxspectrogramflaclossless

How to customize the spectrograms generated with ffmpeg or SoX?

I found code to batch generate spectrograms of music files I have with SoX and ffmpeg, and while they work I’d like to customize the spectrograms they generate to make them look “nicer”, more like Spek’s. I want to change things like the x axis’ time format, the font, the frequency format etc. I can’t find anything in their documentation, so what parameters would I have to add to the sox or ffmpeg commands to make their output look more like this?

Batch generating spectrograms with ffmpeg or SoX: how to customize their appearance, and is my code so far correct?

I have a .flac music library, and for organizational and quality assessment reasons I want to have spectrograms of every song in it. After finding out that the program I usually use to view them, Spek, doesn’t offer a batch export option, I have found ways to batch generate spectrograms with both SoX and fmpeg. Below you can find the two scripts I’ve got, which take as an input a folder which contains flac files or subfolders containing flac files, and output their spectrograms (with the same names as their corresponding flacs) to an output folder with the same structure as the input folder: