nixosTests.castopod: fix mp3 generation
Fix `--cbr` encoding mode.
This commit is contained in:
parent
dddad8555c
commit
992735db22
@ -208,7 +208,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }:
|
|||||||
text = ''
|
text = ''
|
||||||
out=/tmp/podcast.mp3
|
out=/tmp/podcast.mp3
|
||||||
sox -n -r 48000 -t wav - synth ${targetPodcastDuration} sine 440 `
|
sox -n -r 48000 -t wav - synth ${targetPodcastDuration} sine 440 `
|
||||||
`| lame --noreplaygain -cbr -q 9 -b 320 - $out
|
`| lame --noreplaygain --cbr -q 9 -b 320 - $out
|
||||||
FILESIZE="$(stat -c%s $out)"
|
FILESIZE="$(stat -c%s $out)"
|
||||||
[ "$FILESIZE" -gt 0 ]
|
[ "$FILESIZE" -gt 0 ]
|
||||||
[ "$FILESIZE" -le "${toString targetPodcastSize}" ]
|
[ "$FILESIZE" -le "${toString targetPodcastSize}" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user