aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2015-07-06 23:39:04 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2015-07-06 23:39:04 +1200
commit9ed2b91c9de4b621e932e4f8added796e3a79dca (patch)
tree8a0cf8d79a8108a29b901a957d7159e290f0e153
parent5448101bdf39af549bf8f944a7b50ba891311455 (diff)
downloadcue-bin-split-9ed2b91c9de4b621e932e4f8added796e3a79dca.tar.xz
Updated readme to comply with getopt-style command line args
-rw-r--r--README.md26
1 files changed, 17 insertions, 9 deletions
diff --git a/README.md b/README.md
index c88c66a..aa7f6a0 100644
--- a/README.md
+++ b/README.md
@@ -7,19 +7,27 @@ This tool takes a list of times (mm:ss:ff) from stdin and (blindly) outputs file
**It will overwrite any existing file with the same name**
-Warning
--------
-Try running `grep -i FIXME *.c`
+Usage
+-----
+
+ Options:
+ -r bitrate_Hz
+ -c channel_count
+ -i input_file
+ -s size of a single channel's sample (bytes)
+ -f name_format (%d and co are replaced with track number)
Sample Usage
------------
-Assuming you want to use the first indices of each track as a boundary,
+Assuming you want to use the first indices of each track as a boundary and were chopping up a 44100 Hz, two channel, 16 bit audio stream,
- grep "INDEX 01" cue-file | \
+ grep "INDEX 01" audio.cue | \
sed -e 's/INDEX 01//g' | \
- cue-bin-split raw-file channels samples-rate bytes-per-sample name-format
+ cue-bin-split -i audio.bin -c 2 -r 44100 -s 2 -f track-%03d.raw
+
+Would output each track named as `track-001.raw`, `track-002.raw` and so on.
+
+You might then push them through ffmpeg, lame, and/or friends to get them to another audio format such as flac or mp3.
-Where format is something like `track_%04d`.
-This will output a bunch of files named accordingly.
-You might then push them through ffmpeg or something to get them to another audio format.
+Or if you're feeling high on disc space, just prepend a WAV header to the PCM data…