Sometimes you need to split long MP3's into smaller chunks. I deal with this with audio books and listening to my SANS classes. (Not my SANS classes. I'm not good enough yet. But, everyone needs something to strive for!)
These are all Linux commands. They should work in most SANS Linux VM's (like the SEC504, SEC511, FOR500, or FOR508 ones). They'll also work under Windows Subsystem for Linux
Anyway, those MP3's from SANS have long, vague filenames. So, I use this script to convert a filename like "SEC511_1A_B01.mp3" to something simple like "1A.mp3":
ls *3 | while read fn ; do nfn=$(echo $fn | cut -f2 -d_) ; mv -vi $fn $nfn.mp3 ; done
First, cd into the directory containing your mp3's. Then, create a directory called split to store the split files (md split). You'll need to install mp3splt by running:
sudo apt-get install mp3splt
Finally(!), this command will split at 5 minute intervals (-t 5.00), store the output in a directory called split (-d split/), and operate on all files in the current directory named *mp3.
mp3splt -f -t 5.00 -d split/ *mp3
That should do it! Any questions?
EDIT: June 4, 2017: Added "-f" option to mp3splt command.
How much range do EVs really lose in freezing temps?
42 minutes ago
No comments:
Post a Comment