vorbis-tools: oggenc produces totally weird results
Hello!
I do recordings on my vserver, and copy over the results until now, reason was that calling oggenc did not really make things better, or even worse. Now, by sheer luck, i converted an .MP2 file like so
sox $f -t raw - | oggenc -r -R 22050 -q 4.2 -o ${f%%.mp2}.ogg -
and to my big surprise the result was much smaller than i expected. So i tested yesterdays' recording as such locally against the AlpineLinux one, and now see this:
This is my local box:
#?0|kent:recs.ambient$ ll seb-2022-09-18.*
-rw------- 1 steffen media 176543817 Sep 19 19:09 seb-2022-09-18.mp2
-r--r--r-- 1 steffen media 147534836 Sep 19 19:13 seb-2022-09-18.ogg
#?0|kent:recs.ambient$ ogginfo seb-2022-09-18.ogg
Processing file "seb-2022-09-18.ogg"...
New logical stream (#1, serial: 447dee4d): type vorbis
Vorbis headers parsed for stream 1, information follows...
Version: 0
Vendor: Xiph.Org libVorbis I 20200704 (Reducing Environment)
Channels: 2
Rate: 22050
Nominal bitrate: 79.466000 kb/s
Upper bitrate not set
Lower bitrate not set
Vorbis stream 1:
Total data length: 147531171 bytes
Playback length: 420m:20.440s
Average bitrate: 46.797333 kb/s
Logical stream 1 ended
and this is the AlpineLinux -virt vserver:
#?0|sdaoden:steffen$ ll seb*
-rw------- 1 steffen steffen 176543817 Sep 19 03:01 seb-2022-09-18.mp2
-rw------- 1 steffen steffen 170883656 Sep 19 18:53 seb-2022-09-18.ogg
#?0|sdaoden:steffen$ ogginfo seb-2022-09-18.ogg
Processing file "seb-2022-09-18.ogg"...
New logical stream (#1, serial: 64dd76c1): type vorbis
Vorbis headers parsed for stream 1, information follows...
Version: 0
Vendor: Xiph.Org libVorbis I 20200704 (Reducing Environment)
Channels: 2
Rate: 22050
Nominal bitrate: 75.200000 kb/s
Upper bitrate not set
Lower bitrate not set
Vorbis stream 1:
Total data length: 170879991 bytes
Playback length: 420m:20.466s
Average bitrate: 54.203593 kb/s
Logical stream 1 ended
Something is totally bogus with the AlpineLinux version regarding variable bitrate at least aka -q The CRUX-Linux variant is compiled via
# Depends on: curl libao libvorbis
name=vorbis-tools
version=1.4.2
release=1
source=(https://downloads.xiph.org/releases/vorbis/$name-$version.tar.gz)
build() {
cd $name-$version
./configure \
--prefix=/usr \
--disable-nls \
--enable-vcut
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/doc
}
Edited by Steffen Nurpmeso