1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 02:29:06 -08:00

livestreamer flags

This commit is contained in:
Connor Olding 2015-12-11 01:16:38 -08:00
parent 372bcfc971
commit 5ce9a3f562

View file

@ -2,7 +2,9 @@
# 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="" LIVESTREAMER_FLAGS="--player-http --player-continuous-http --default-stream=best"
#LIVESTREAMER_FLAGS+=" --stream-sorting-excludes=>=source"
LIVESTREAMER_FLAGS+=" --player-passthrough=http --player-no-close"
_M_STEREO='aformat=channel_layouts=stereo' _M_STEREO='aformat=channel_layouts=stereo'
_M_PRE_EMPH='equalizer=f=50.0:g=-10:width_type=o:w=4,equalizer=f=5000:g=+05:width_type=o:w=4' _M_PRE_EMPH='equalizer=f=50.0:g=-10:width_type=o:w=4,equalizer=f=5000:g=+05:width_type=o:w=4'
@ -34,8 +36,15 @@ fi
watchstream() { watchstream() {
local url="$1" local url="$1"
shift shift
livestreamer "$url" best "$@" -p mpv $LIVESTREAMER_FLAGS -a \ if [ -n "$ZSH_VERSION" ]; then
"$MPV_STREAM_FLAGS ${2:+--autofit=}${2:-} {filename}" # zsh syntax
livestreamer "$url" "$@" -p mpv $=LIVESTREAMER_FLAGS -a \
"$MPV_STREAM_FLAGS {filename}"
else
# bash syntax
livestreamer "$url" "$@" -p mpv $LIVESTREAMER_FLAGS -a \
"$MPV_STREAM_FLAGS {filename}"
fi
} }
twitch() { twitch() {