2017-05-27 23:18:59 +00:00
|
|
|
## mp3chap
|
2017-05-27 18:56:40 +00:00
|
|
|
|
|
|
|
A command-line tool for adding ID3 chapters to an MP3 file.
|
2017-05-27 18:59:42 +00:00
|
|
|
Most of the grunt work is done by
|
|
|
|
[my fork](https://github.com/jcs/id3-go)
|
|
|
|
of the `id3-go` Go library.
|
|
|
|
|
|
|
|
### Installation
|
|
|
|
|
2017-05-27 23:18:59 +00:00
|
|
|
go get github.com/jcs/mp3chap
|
2017-05-27 18:59:42 +00:00
|
|
|
|
2017-05-27 23:18:59 +00:00
|
|
|
This will fetch, compile, and install an `mp3chap` binary as `~/go/bin/mp3chap` (or
|
2017-05-27 18:59:42 +00:00
|
|
|
wherever your `$GOPATH` is).
|
2017-05-27 18:56:40 +00:00
|
|
|
|
|
|
|
### Usage
|
|
|
|
|
2017-05-27 23:18:59 +00:00
|
|
|
mp3chap file.mp3 0 "chapter 1 is great" 123 "chapter 2 is ok" 456 "chapter 3 is boring"
|
2017-05-27 18:56:40 +00:00
|
|
|
|
2018-04-11 02:38:10 +00:00
|
|
|
The first argument is the path to the MP3 file, then pairs of arguments each
|
|
|
|
containing a start time in seconds, and the chapter title.
|
2017-05-27 18:56:40 +00:00
|
|
|
|
2018-04-11 02:38:10 +00:00
|
|
|
It is assumed that each chapter ends where the next one begins, and that the
|
|
|
|
final chapter ends at the last millisecond of the file (as defined in its
|
|
|
|
`TLEN` ID3 frame).
|
|
|
|
|
|
|
|
If the file does not contain a `TLEN` ID3 frame, a final time argument must
|
|
|
|
be supplied (in seconds) which will be used as the end time of the final
|
|
|
|
chapter.
|
|
|
|
|
|
|
|
mp3chap file.mp3 0 "chapter 1 is great" 123 "chapter 2 is ok" 456 "chapter 3 is boring" 789
|
2017-05-27 18:56:40 +00:00
|
|
|
|
|
|
|
Changes to the ID3 tag in the MP3 file are written out in-place.
|
|
|
|
|
|
|
|
### License
|
|
|
|
|
|
|
|
3-clause BSD
|