From 56da871a4f5919ea18abf8718fb970d4199e1c31 Mon Sep 17 00:00:00 2001 From: Karchnu Date: Tue, 6 Apr 2021 05:28:16 +0200 Subject: [PATCH] README: removed iconv references, update envvars, update requirements (awk, xxd). --- README.md | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 0184232..d80e9cf 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # Required applications * ffmpeg +* xxd (with '-r' and '-p' options) +* awk # Usage @@ -9,7 +11,7 @@ get-tracks.sh rip audio-file time-file ``` -`audio-file` can be in any format understood by `soxi` and `ffmpeg` +`audio-file` can be in any format understood by `ffmpeg` In the `time-file`: @@ -21,23 +23,15 @@ In the `time-file`: # Environment variables -* SIMULATION [0|1]: do not invoke ffmpeg +* SIMULATION: if non empty do not invoke ffmpeg * FORMAT [mp3,ogg,opus,…]: for the song file format -* WITH_NUMBER [separator]: if not null, write song number with this separator\ - example WITH_NUMBER=_, song names will be *1_song.opus*, *2_song.opus*, (...) -* QUIET: if set to any value, ffmpeg commands are not displayed - -# Limitations - -This script doesn't work with UTF-8 content. -If your file with timings contains UTF-8 characters, apply this: - -``` -iconv -f utf-8 -t ascii timings-file > timings-file-fixed -``` - -Then verify the content. - +* NONUMBER: if equals 1, do not write song number +* SEPARATOR: (default: ' - '), write song number, with this separator + example with SEPARATOR='_': song names will be 01_song.opus 02_song.opus… +* VERBOSITY [0-3] (default: 1)\ + verbosity 0: no output exept errors from ffmpeg\ + verbosity 1: simple indications on the current track being extracted\ + verbosity 2: print actual ffmpeg commands the script currently runs # More