SoX spectrogram effect missing in 3.8
Hello —
We’re building a set of applications around Alpine 3.8 and noticed SoX’s
spectrogram effect is missing. The same happens for the image tagged as
latest
(which is likely pointing to the same image tagged as 3.8
).
Here’s a sample output:
> docker run -it alpine:3.8
/ # cat /etc/alpine-release
3.8.1
/ # apk add sox
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
(1/20) Installing libgcc (6.4.0-r9)
(2/20) Installing libogg (1.3.3-r2)
(3/20) Installing libstdc++ (6.4.0-r9)
(4/20) Installing flac (1.3.2-r2)
(5/20) Installing alsa-lib (1.1.6-r0)
(6/20) Installing libao (1.2.0-r3)
(7/20) Installing libgomp (6.4.0-r9)
(8/20) Installing gsm (1.0.17-r0)
(9/20) Installing libltdl (2.4.6-r5)
(10/20) Installing libmad (0.15.1b-r8)
(11/20) Installing libmagic (5.32-r0)
(12/20) Installing ncurses-terminfo-base (6.1_p20180818-r1)
(13/20) Installing ncurses-terminfo (6.1_p20180818-r1)
(14/20) Installing ncurses-libs (6.1_p20180818-r1)
(15/20) Installing lame (3.100-r0)
(16/20) Installing opus (1.2.1-r1)
(17/20) Installing opusfile (0.10-r1)
(18/20) Installing libvorbis (1.3.6-r1)
(19/20) Installing libsndfile (1.0.28-r4)
(20/20) Installing sox (14.4.2-r1)
Executing busybox-1.28.4-r1.trigger
OK: 24 MiB in 33 packages
/ # sox 2> /dev/null | grep EFFECTS
EFFECTS: allpass band bandpass bandreject bass bend biquad chorus channels compand contrast dcshift deemph delay dither divide+ downsample earwax echo echos equalizer fade fir firfit+ flanger gain highpass hilbert input# ladspa loudness lowpass mcompand noiseprof noisered norm oops output# overdrive pad phaser pitch rate remix repeat reverb reverse riaa silence sinc speed splice stat stats stretch swap synth tempo treble tremolo trim upsample vad vol
And here is the output from the edge image, where the effect is featured properly:
> docker run -it alpine:edge
/ # cat /etc/alpine-release
3.8.0
/ # apk add sox
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
(1/24) Installing libgcc (8.2.0-r1)
(2/24) Installing libogg (1.3.3-r2)
(3/24) Installing libstdc++ (8.2.0-r1)
(4/24) Installing flac (1.3.2-r2)
(5/24) Installing alsa-lib (1.1.7-r0)
(6/24) Installing libao (1.2.0-r3)
(7/24) Installing libgomp (8.2.0-r1)
(8/24) Installing gsm (1.0.18-r0)
(9/24) Installing libid3tag (0.15.1b-r7)
(10/24) Installing libltdl (2.4.6-r5)
(11/24) Installing libmad (0.15.1b-r8)
(12/24) Installing libmagic (5.35-r0)
(13/24) Installing ncurses-terminfo-base (6.1_p20180818-r1)
(14/24) Installing ncurses-terminfo (6.1_p20180818-r1)
(15/24) Installing ncurses-libs (6.1_p20180818-r1)
(16/24) Installing lame (3.100-r0)
(17/24) Installing libcrypto1.1 (1.1.1a-r0)
(18/24) Installing opus (1.3-r0)
(19/24) Installing libssl1.1 (1.1.1a-r0)
(20/24) Installing opusfile (0.11-r1)
(21/24) Installing libpng (1.6.35-r0)
(22/24) Installing libvorbis (1.3.6-r1)
(23/24) Installing libsndfile (1.0.28-r4)
(24/24) Installing sox (14.4.2-r2)
Executing busybox-1.28.4-r2.trigger
OK: 29 MiB in 37 packages
/ # sox 2> /dev/null | grep EFFECTS
EFFECTS: allpass band bandpass bandreject bass bend biquad chorus channels compand contrast dcshift deemph delay dither divide+ downsample earwax echo echos equalizer fade fir firfit+ flanger gain highpass hilbert input# ladspa loudness lowpass mcompand noiseprof noisered norm oops output# overdrive pad phaser pitch rate remix repeat reverb reverse riaa silence sinc spectrogram speed splice stat stats stretch swap synth tempo treble tremolo trim upsample vad vol
Since the effect is present in edge, this appears to be unintentional. I
also noticed the 3.8
SoX install does not require libpng
as a
dependency (manually adding it does not change the output), this may be
hint towards the root of the problem.
Please let me know if I can provide more information, thank you!
(from redmine: issue id 9770, created on 2018-12-14)