1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2025-02-05 07:43:22 -08:00

stream crap 2: electric boogaloo

This commit is contained in:
Connor Olding 2016-01-01 18:40:37 -08:00
parent 38fc067e4d
commit aca3327f03

View file

@ -2,7 +2,7 @@
# awful things # awful things
MPV_STREAM_FLAGS="--quiet --no-sub --no-ytdl --loop=force --cache-initial=1024" MPV_STREAM_FLAGS="--quiet --no-sub --no-ytdl --loop=force --cache-initial=1024"
LIVESTREAMER_FLAGS="--player-http --player-continuous-http --default-stream=best" LIVESTREAMER_FLAGS="--player-http --player-continuous-http --default-stream=source,best"
#LIVESTREAMER_FLAGS+=" --stream-sorting-excludes=>=source" #LIVESTREAMER_FLAGS+=" --stream-sorting-excludes=>=source"
LIVESTREAMER_FLAGS+=" --player-passthrough=http --player-no-close" LIVESTREAMER_FLAGS+=" --player-passthrough=http --player-no-close"
@ -25,13 +25,14 @@ _M_SPEAKERS="$REPLY"
getladspa crap_level getladspa crap_level
_M_LEVEL="$REPLY" _M_LEVEL="$REPLY"
if [[ "$(uname -n)" == "spectre" ]]; then _nn="$(uname -n | tr A-Z a-z)"
#MPV_STREAM_FLAGS+=" --af=lavfi=[$_M_LEVEL,$_M_LIMIT]" if [[ "$_nn" == "spectre" ]]; then
MPV_STREAM_FLAGS+=" --af=lavfi=[$_M_KILL,$_M_LIMIT]" MPV_STREAM_FLAGS+=" --af=lavfi=[$_M_STEREO,$_M_KILL,alimiter=level_in=0.7071]"
fi fi
if [[ "$(uname -n)" == "banshee" ]]; then if [[ "$_nn" == "banshee" ]]; then
MPV_STREAM_FLAGS+=" --af=lavfi=[$_M_STEREO,$_M_LEVEL,$_M_SPEAKERS,alimiter=level_in=0.5]" MPV_STREAM_FLAGS+=" --af=lavfi=[$_M_STEREO,$_M_LEVEL,$_M_SPEAKERS,alimiter=level_in=0.5]"
fi fi
_nn=
watchstream() { watchstream() {
local url="$1" local url="$1"