From e641ae152e829fb52c4a7c42d388946e38d6513a Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Sat, 3 Aug 2024 21:07:01 +0700 Subject: 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). --- GNUmakefile | 2 +- README.md | 6 +++--- 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 -- cgit v1.2.3-54-g00ecf