DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: (Autohotkey)Script to split audiobooks (audiofiles MP3 and OGG)  (Read 8,921 times)

Lebewesen

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 10
Hi,

I wrote scripts to split large audiofiles (mp3/ogg) in smaller parts with the "same" timelength. The script search an directory for audiofiles and then make a cue list to split each in a new folder.

In the cutlist the parts have the same length, but mp3splt searches for the best splitpoint (silence) in the region. With this logic there are no hard brakes in an audiobook.

There is also a script which moves/groups mp3 files to different folders based on the playlength. It start with the first file of a folder and moves it to a subfolder until a time treashold is reached, then starts a new folder. I used a different program to get the timelength for this script than for the split script, because the other program results sometimes in wrong time information.

The scripts are far from perfect, but maybe some one find them useful and maybe some finds the time to make a program out of it.

Whats also needed is mp3splt: http://mp3splt.sourceforge.net/mp3splt_page/home.php

mp3splt needs to be extracted in the working directory.

I hope someone finds the scripts useful ;)

Bastian
« Last Edit: June 08, 2011, 03:19 PM by Lebewesen »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Script to split audiobooks (audiofiles MP3 and OGG)
« Reply #1 on: June 08, 2011, 03:08 PM »
Thanks for sharing, that sounds like it could come in handy.  Scripts are in ahk (autohotkey) source, in case anyone was wondering.

Lebewesen

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 10
Re: (Autohotkey)Script to split audiobooks (audiofiles MP3 and OGG)
« Reply #2 on: June 08, 2011, 03:32 PM »
Scripts are in ahk (autohotkey) source, in case anyone was wondering.
I changed the Topic

that sounds like it could come in handy.
I tried a lot of programs - even comercials - there was only one wich does that was the script does (whery expensiv! but with nice gui). I recogniced the splitpattern to be mp3splt so I tried to recreate the method used by that program.

My scripts aren't as nice. They depend on other programs, wich output is evaluated throug a created text file. I don't know how to get the output direct to the scripts. So a bunch of batchfiles is created in the run of the scripts. Not a very good programming - but it works ;)

Original address: https://www.donationcoder.com/forum/index.php?topic=26983.0