Thanks to ‘StotheL’, who left a comment on the Firefox Configuration Guide for Privacy Freaks and Performance Buffs regarding some issues with both the guide and the settings on the uBlock Origin Suggested Settings, i’ve made some small corrections to both pages. Such feedback from readers is greatly appreciated, so thank you ‘StotheL’!
Mp3splt is an old but pretty nice console utility for splitting MP3 files without re-encoding them (it can apparently handle a few other types as well). I’m working on a project that makes use of it to batch-trim extra silence from the beginning and end of MP3s and one of the long-time gripes i’ve had with Mp3splt is that it adds “_trimmed” to the output file names by default. Not being the sharpest knife in the drawer, it took me a long bloody time to FINALLY figure out how to eliminate that. I’m disclosing my solution here with the hope that someone else benefits since i never found a solution anywhere else.
man mp3splt, the clues are all there, primarily with the
@f options, but what complicated matters for me what that i wanted to run Mp3splt in a directory above the MP3s which would be dumped first in
/input and then in
/output and i wanted to do it without using
cd in my script.
Here’s what worked for me:
../ is eliminated, then Mp3split creates the
/output directory in the
/input directory which is just plain strange i think. Anyway, the
@f will cause Mp3splt to retain the original file name.
The full command:
mp3splt -r -f -p th=-50,min=0.2 -o '../output/@f' 'input/song.mp3'
One of the other gripes i had with Mp3splt is that, in some cases, it will keep trimming “silence” that isn’t silence from an MP3 every time you run it on the same file, thus the file size will keep getting smaller and smaller and you lose a little more audio each time. The
min=0.2 seems to prevent that. When Mp3splt is used in trim mode (
-r), the value of
min= is the amount of silence in seconds that must be detected before trimming occurs. It is also the the amount of silence that will be retained at the beginning and end of the MP3. This value can of course be changed to whatever you want, but obviously Mp3splt cannot add silence.
The De-borking MP3s on Linux page was heavily updated again though it is still very much a work in progress. Today all of the bash scripts were updated and new ones were added. I like having separate scripts to do specific jobs, however i think i’d like to put them all under one umbrella so to speak, maybe even a GUI.
I haven’t been paying any attention to all the (horrible, ugly, rotten, neocon, warmongering) news in the world for the last several days because i’ve been working on a project, but i did come across this while taking a break:
Today James’ identical twin brother Statist Jim talks to Larken and Amanda Rose about Candles In The Dark, the two day workshop they’ll be running at Anarchapulco 2020 to help voluntaryists become more effective communicators of anarchist ideas.
Another large update to the De-borking MP3s on Linux page. I’ve been working on this hot and heavy for the last few days and i like how it’s panning out. My original intention was to be the know-it-all that dictated how best to optimize MP3s, however performing tests and writing this guide has been a huge learning experience that has radically altered the tool chain for processing MP3s that i was using. I hope my effort helps others as much as it’s helped me.