Hi! I’m making a Keyboard Maestro macro for merging x amount of MP3 files and trying to add chapters to the final MP3 file based on duration of each MP3 file. I get both title and duration of files with shell script. What I can’t figure out is how to calculate those durations and get a timecode list for adding as chapters to the final MP3 file.
List with duration of MP3 files:
Calculating sequentially mp3 file durations and getting the timecode list:
I get the timecode result using Numbers, but would prefer to do it in background by using Keyboard Maestro, shell script or something else.
Does someone have any tips?