aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2024-08-03 21:07:01 +0700
committerTomasz Kramkowski <tomasz@kramkow.ski>2024-08-03 21:07:01 +0700
commite641ae152e829fb52c4a7c42d388946e38d6513a (patch)
tree9c1ab442036e829743f9e55e63663e6c564b73f1
parent8254d13bcd89939da8e25b0bcc1910f4c24647b2 (diff)
downloadbeeps-e641ae152e829fb52c4a7c42d388946e38d6513a.tar.gz
beeps-e641ae152e829fb52c4a7c42d388946e38d6513a.tar.xz
beeps-e641ae152e829fb52c4a7c42d388946e38d6513a.zip
Fix mp3 encoding to use VBR for non-awful quality
Fixed bitrate was not the intention initially and the quality was terrible. Seems there is no real file size or quality difference between 4 or 9 so stick with the default of 4 (make it explicit).
-rw-r--r--GNUmakefile2
-rw-r--r--README.md6
2 files changed, 4 insertions, 4 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 96d2e7a..430d4b9 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -27,7 +27,7 @@ mp3: $(mp3s)
oggenc --quiet --raw --raw-bits=8 --raw-chan=1 --raw-rate=8000 --quality=5 --artist=$(artist) --genre=$(genre) --date=$(year) --tracknum=$(call tracknum,$*) --title=$(call title,$*) --album=$(album) --output=$@ $<
%.mp3: %.pcm
- lame --quiet -r -s 8 --bitwidth 8 --unsigned -m m -q 5 --tt $(call title,$*) --ta $(artist) --tl $(album) --ty $(year) --tn $(call tracknum,$*) --tg $(genre) --noreplaygain $< $@
+ lame --quiet -r -s 8 --bitwidth 8 --unsigned -m m -V 4 --tt $(call title,$*) --ta $(artist) --tl $(album) --ty $(year) --tn $(call tracknum,$*) --tg $(genre) --noreplaygain $< $@
$(pcms): target/release/beeps GNUmakefile
$< $(duration) >$@
diff --git a/README.md b/README.md
index 92f8291..ea6cdbe 100644
--- a/README.md
+++ b/README.md
@@ -38,13 +38,13 @@ Ogg Vorbis or MP3 files containing tracks of 5, 10 and 15 minute duration.
* 5 minutes
[Download 5m.ogg (60KiB)][5m.ogg]
- [Download 5m.mp3 (295KiB)][5m.mp3]
+ [Download 5m.mp3 (375KiB)][5m.mp3]
* 10 minutes
[Download 10m.ogg (114KiB)][10m.ogg]
- [Download 10m.mp3 (588KiB)][10m.mp3]
+ [Download 10m.mp3 (744KiB)][10m.mp3]
* 15 minutes
[Download 15m.ogg (168KiB)][15m.ogg]
- [Download 15m.mp3 (881KiB)][15m.mp3]
+ [Download 15m.mp3 (1.1MiB)][15m.mp3]
[5m.ogg]: https://the-tk.com/files/beeps/5m.ogg
[5m.mp3]: https://the-tk.com/files/beeps/5m.mp3