1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-25 16:57:12 -07:00

mpv config, twitch/hitbox stream convenience functions

This commit is contained in:
Connor Olding 2014-03-06 22:23:57 -08:00
parent 91effd3c16
commit 2cb525a06d
3 changed files with 34 additions and 1 deletions

View File

@ -54,6 +54,7 @@ alias lsa="ls -A --group-directories-first"
alias logs="logs -o cat -b -e"
alias logsf="logs -f"
alias diff="git diff --color=auto --no-ext-diff --no-index"
alias db="dropbox_uploader"
# being specific
alias erc="e ~/.zshrc ~/shrc.zsh ~/.bashrc ~/.vimrc"
@ -74,3 +75,26 @@ alias unused='{ pacman -Qt; pacman -Qe | tee -; } | sort | uniq -u'
. ~/sh/lsf.sh/lsf.sh
. ~/sh/z/z.sh
#export MPV_HOME=/c/path/mpv
mf="--no-sub" # waste of time, twitch/hitbox doesn't have subs
mf+=" --cache 4096" # default of 320 is way too small in practice
mf+=" --cache-pause=1" # avoid pausing as much as possible
mf+=" --cache-min=20" # should be higher but who has time for that
mf+=" --framedrop=yes" # necessary for video to catch up to audio
mf+=" --mc=60" # very aggressive video sync
mf+=" --no-initial-audio-sync" # not sure if helps tbh
mf+=" --autosync=0" # testing
export MPV_STREAM_FLAGS="$mv"
unset mv
twitch(){
livestreamer "twitch.tv/$1" best -p mpv -a \
"$MPV_STREAM_FLAGS ${2:+--autofit=}${2:-} {filename}"
}
# hitbox uses rtmp but mpv doesnt support rtmp dump parameters
hitbox(){
livestreamer "hitbox.tv/$1" best -p mpv -a \
"$MPV_STREAM_FLAGS ${2:+--autofit=}${2:-} {filename}"
}

View File

@ -48,7 +48,7 @@ for f in .bashrc .zshrc shrc.zsh .vimrc .conkyrc .inputrc .screenrc .xinitrc; do
hardlink "$f" "$r"
done
for d in sh .vim; do
for d in sh .vim .mpv; do
dotless "$d"
r="$rc/$REPLY"
softlink "$d" "$r"

9
mpv/config Normal file
View File

@ -0,0 +1,9 @@
[default]
volume=15
#af-add=bs2b # doesnt exist
#af=drc=2:0.12 # annoying, try defaults?
af=drc
af-add=equalizer=4:4:1.5:0:0:0:-3:1:2.5:-3
msglevel=all=info
quvi-fetch-subtitles=no
border=no