Mp3 Splitting Script
Overview
Often times I end up with songs that are several 100 minutes long, and need to break them up into smaller parts for burning to CDs or to place on devices that don't support songs that long. Below is a small Perl script to break up songs into regular intervals. Unfortunately there are a couple of restrictions:
- Corrupted Mp3s require the user to manually enter the time in minutes and seconds on the command line to properly split. Opening it up in something like XMMS works for this
- Poorly named files (Like - I am (A file).mp3 will not go through properly and need to be renamed
perl -MCPAN -e 'install MP3::Info'
Also I wrote a similar thing in C, which I included but it's not as feature rich. It tries to parse out the mp3 header and get the needed sizes by calculating sample rates and such. The major issue is ID3 tags must be stripped first.
Source Code
- mp3Split -- Perl script for splitting mp3 files
- Usage: mp3Split fileName partLength [length_mins] [length_secs]
- mp3B.c -- Somewhat implemented mp3 splitter written in C
Comments(0)
2008-04-03 18:31:02
Add your comment:
Hardware
Software
- TAIM (Alpha Version): GHCI integration with vim
- CheaTorrent -- An evil BitTorrent client
- Self Modifying 2D Turing Automata
- Competing Conway Life Automata
- X11 Timelapse Desktop Video
- Colored Wolfram Automata With Sound Input
- Pseudo Video Feedback in Processing
- Haskell Cipher Saber
- Illegal FIlenames -- Windows and *nix
- Simple Perl SDL Music Keyboard (Updated)
- Image to Spectrogram
- Pastebin Hell
- OMGWTFRNG (OWR)
- OTP Enhancement : Failure Report
- Java Network File Transfer Tool
- AES Encrypted Filesystem Speeds
- Dual Message Encryption
- PHP Website
- Mp3 Splitting Script
- Random Obfuscation Tool
- Filesystem Speed Comparisons
- Java Based Web Server GUI