RTFM - How to split audio wave file

Few years ago (4 or 5 I think) when I was downloading music in a hope of a higher quality the content was delivered in a 3 files, flac, cue and log. The flac file contains whole CD or album, cue is to describe where/when each song starts, ends, its name and author etc and log is a log from the program which made it.

This is all nice and great if you are using some more complicated music player with library function which can create index of the songs contained in such files and play them accordingly from its UI. But as a believer that GUI is bloated I am using Music on Console player which does not have this function and is strictly reading files (so I think). So I needed to split this huge file and extract each song with correct tags.

So I searched internet and even written a script to automate this (a monster to say). I was too lazy and did not check manual at all just copy pasted commands from different places and glued it together. To a script which first created WAV files and than converted it to FLAC with tags. This conversion took a long time while my machine was under a huge load, truly a waste. But I was happy that it works.

Now a smarter me read a manual and found out that the utility which is used to split the wave (flac) file shntool has an option to configure the output format which works flawlessly and is very fast. It does not include tags though, and as I am writing this channel I found a very good article on Arch Wiki which describes exactly what I wish to do.

So instead of boasting how good I am at scripting and messing around as I originally intended I ended up learning to revise my old scripts after reading the manual and reading wiki. What a night.

EDIT: After being happy for a while I ran into a wall which consist of shntool being unable to process big files. So I did another bit of research and found utility unflac which is able to do the job a bit better. The code can be found here.

Articles from blogs I follow:

Calamares towards 3.3.11

I’m going to change up the Calamares release process a little. It’s been slow going as a community-maintained project – which isn’t to say that that is a bad thing. Just slow. I’ve decided to make releases marginally more predictable than “when [ade] has …

via [bobulate] October 24, 2024

There is only one reason why Microsoft Windows is the dominating operating system on the PC desktop

The Internet is filled with blog posts, articles on tech media, and videos on YouTube about why Linux is not the main operating system on the PC desktop. "5 reasons why", "10 reasons why", bla, bla, bla. But they are all wrong.

via unixdigest.com August 24, 2024

Signing Android Apps Using a YubiKey (on NixOS)

In my spare time, I currently develop two Android apps using Flutter: AniTrack, a simple anime and manga tracker based on my own needs, and Moxxy, a modern XMPP client. While I don't provide release builds for AniTrack, I do for Moxxy. Those are signed u…

via PapaTutuWawa's Blog July 24, 2023

Generated by openring