mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
mpv config, twitch/hitbox stream convenience functions
This commit is contained in:
parent
91effd3c16
commit
2cb525a06d
3 changed files with 34 additions and 1 deletions
|
@ -54,6 +54,7 @@ alias lsa="ls -A --group-directories-first"
|
||||||
alias logs="logs -o cat -b -e"
|
alias logs="logs -o cat -b -e"
|
||||||
alias logsf="logs -f"
|
alias logsf="logs -f"
|
||||||
alias diff="git diff --color=auto --no-ext-diff --no-index"
|
alias diff="git diff --color=auto --no-ext-diff --no-index"
|
||||||
|
alias db="dropbox_uploader"
|
||||||
|
|
||||||
# being specific
|
# being specific
|
||||||
alias erc="e ~/.zshrc ~/shrc.zsh ~/.bashrc ~/.vimrc"
|
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/lsf.sh/lsf.sh
|
||||||
. ~/sh/z/z.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}"
|
||||||
|
}
|
||||||
|
|
2
install
2
install
|
@ -48,7 +48,7 @@ for f in .bashrc .zshrc shrc.zsh .vimrc .conkyrc .inputrc .screenrc .xinitrc; do
|
||||||
hardlink "$f" "$r"
|
hardlink "$f" "$r"
|
||||||
done
|
done
|
||||||
|
|
||||||
for d in sh .vim; do
|
for d in sh .vim .mpv; do
|
||||||
dotless "$d"
|
dotless "$d"
|
||||||
r="$rc/$REPLY"
|
r="$rc/$REPLY"
|
||||||
softlink "$d" "$r"
|
softlink "$d" "$r"
|
||||||
|
|
9
mpv/config
Normal file
9
mpv/config
Normal 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
|
Loading…
Add table
Reference in a new issue