Slashdot Mirror


Splitting Mp3's

caseydk writes: "I'm working on a project that needs to take a single mp3 (a live recording) and play individual sections of it. Preferably, so that the user must only download a portion of the mp3, instead of the whole thing. Unfortunately, most (or all) mp3 splitters that I have found have a gui. I'm looking for something command-line, so that I can just have the server do it during low usage times or (worst case) on the fly. Any suggestions?"

1 of 16 comments (clear)

  1. I've done this... by Brazilian+Geek · · Score: 5, Informative

    ... using dd.

    I know about the MP3 file header but before I knew about it I was chopping MP3s just for kicks. It works, it's easy and knowing the kbps of the file you can calculate the exact point to start and end. Example:

    dd if=biggie_file.mp3 of=shortie_file.mp3 bs=1c seek=200k count=150k

    It REALLY does work and it's command line - not to mention all the piping possibilites.

    --
    All browsers' default homepage should read: Don't Panic...