diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-05-22 21:54:58 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-05-22 21:54:58 +0200 |
commit | 04b3a40fbf86b5451bd8ca612531036ca10aa74d (patch) | |
tree | 62069e1f2b2e8d48b4d5af4647a0089345600830 | |
parent | d538819cd01d367fca074d878ba609f2e43a7d71 (diff) | |
download | nixos-04b3a40fbf86b5451bd8ca612531036ca10aa74d.tar nixos-04b3a40fbf86b5451bd8ca612531036ca10aa74d.tar.gz nixos-04b3a40fbf86b5451bd8ca612531036ca10aa74d.tar.bz2 nixos-04b3a40fbf86b5451bd8ca612531036ca10aa74d.tar.xz nixos-04b3a40fbf86b5451bd8ca612531036ca10aa74d.zip |
...
-rw-r--r-- | odin/strm/download_youtube | 1 |
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)))) |