parent
0e8a90dd81
commit
390659b000
19
README.md
19
README.md
|
@ -7,13 +7,16 @@
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
```Bash
|
```Bash
|
||||||
get-tracks.sh rip audio-file time-file
|
get-tracks.sh rip <audio-file> <time-file>
|
||||||
|
|
||||||
|
# Example
|
||||||
|
get-track.sh rip doom-eternal.opus doom-eternal.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
`audio-file` can be in any format understood by `ffmpeg`
|
`audio-file` can be in any format understood by `ffmpeg`.
|
||||||
|
|
||||||
In the `time-file`:
|
The `time-file` must have this format:
|
||||||
|
|
||||||
```
|
```
|
||||||
0:00 First song
|
0:00 First song
|
||||||
|
@ -23,12 +26,12 @@ In the `time-file`:
|
||||||
|
|
||||||
# Environment variables
|
# Environment variables
|
||||||
|
|
||||||
* SIMULATION: if non empty do not invoke ffmpeg
|
* **SIMULATION**: if non empty do not invoke ffmpeg
|
||||||
* FORMAT [mp3,ogg,opus,…]: for the song file format
|
* **FORMAT** [mp3,ogg,opus,…]: for the song file format
|
||||||
* NONUMBER: if equals 1, do not write song number
|
* **NONUMBER**: if equals 1, do not write song number
|
||||||
* SEPARATOR: (default: ' - '), write song number, with this separator
|
* **SEPARATOR**: (default: ' - '), write song number, with this separator
|
||||||
example with SEPARATOR='_': song names will be 01_song.opus 02_song.opus…
|
example with SEPARATOR='_': song names will be 01_song.opus 02_song.opus…
|
||||||
* VERBOSITY [0-3] (default: 1)\
|
* **VERBOSITY** [0-3] (default: 1)\
|
||||||
verbosity 0: no output exept errors from ffmpeg\
|
verbosity 0: no output exept errors from ffmpeg\
|
||||||
verbosity 1: simple indications on the current track being extracted\
|
verbosity 1: simple indications on the current track being extracted\
|
||||||
verbosity 2: print actual ffmpeg commands the script currently runs
|
verbosity 2: print actual ffmpeg commands the script currently runs
|
||||||
|
|
Loading…
Reference in New Issue