summaryrefslogtreecommitdiff
path: root/odin/strm/download_youtube
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-05-22 21:54:58 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-05-22 21:54:58 +0200
commit04b3a40fbf86b5451bd8ca612531036ca10aa74d (patch)
tree62069e1f2b2e8d48b4d5af4647a0089345600830 /odin/strm/download_youtube
parentd538819cd01d367fca074d878ba609f2e43a7d71 (diff)
downloadnixos-04b3a40fbf86b5451bd8ca612531036ca10aa74d.tar
nixos-04b3a40fbf86b5451bd8ca612531036ca10aa74d.tar.gz
nixos-04b3a40fbf86b5451bd8ca612531036ca10aa74d.tar.bz2
nixos-04b3a40fbf86b5451bd8ca612531036ca10aa74d.tar.xz
nixos-04b3a40fbf86b5451bd8ca612531036ca10aa74d.zip
...
Diffstat (limited to 'odin/strm/download_youtube')
-rw-r--r--odin/strm/download_youtube1
1 files changed, 0 insertions, 1 deletions
diff --git a/odin/strm/download_youtube b/odin/strm/download_youtube
index 4019541b..5eb550ba 100644
--- a/odin/strm/download_youtube
+++ b/odin/strm/download_youtube
@@ -180,7 +180,6 @@ printf ">>> %s <<<\n %s\n" "${msgId}" "${message}"
180 pv -N "$(trimName "vol:" ${title})" ${filename} | ffmpeg -i pipe:0 -af "volumedetect" -vn -f null /dev/null 2>&1 | \ 180 pv -N "$(trimName "vol:" ${title})" ${filename} | ffmpeg -i pipe:0 -af "volumedetect" -vn -f null /dev/null 2>&1 | \
181 grep 'max_volume' | sed -r 's/^.*max_volume: ([-0-9\.]+) dB$/\1/' 181 grep 'max_volume' | sed -r 's/^.*max_volume: ([-0-9\.]+) dB$/\1/'
182 ) 182 )
183 ffmpegResult=${pipestatus[2]}
184 printf "Maximum volume: %.2fdB\n" "${max_vol}" 183 printf "Maximum volume: %.2fdB\n" "${max_vol}"
185 [[ -n "${max_vol}" ]] || max_vol=0 184 [[ -n "${max_vol}" ]] || max_vol=0
186 bare_amp=$(printf "%.2f" $(($max_vol * (-1)))) 185 bare_amp=$(printf "%.2f" $(($max_vol * (-1))))