From: Sergey Matveev Date: Thu, 23 Apr 2020 21:58:17 +0000 (+0300) Subject: mpv configuration X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=25bbd44e6f7304712e87bf0c55a462e51a75a5dd mpv configuration --- diff --git a/bin/bin/mencoder.sh b/bin/bin/mencoder.sh deleted file mode 100755 index 758b4f7..0000000 --- a/bin/bin/mencoder.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -ex - -mencoder -mc 0 -noskip -oac pcm -ovc copy -o "$1".avi "$1" -mplayer -noframedrop -ao pcm:fast:file="$1".wav -novideo "$1".avi -sox "$1".wav -c 2 -r 48000 -e signed-integer -b 16 "$1".wav.wav -mv "$1".wav.wav "$1".wav -normalize --peak "$1".wav -opusenc "$1".wav "$1".opus -rm "$1".wav -opts="mbd=2:trell:dia=6:predia=6:cmp=6:subcmp=6:preme=2:vb_strategy=2:v4mv:cbp:mv0:qns=2" -opts="mbd=2:trell:dia=6:predia=6:cmp=6:subcmp=6:preme=2:vb_strategy=2:v4mv" -for vpass in 1 2; do - mencoder \ - -mc 0 -noskip \ - -nosound \ - -passlogfile "$1".log \ - -ovc lavc \ - -lavcopts vcodec=libvpx:$opts:autoaspect:vpass=$vpass \ - -vf scale=960:540 \ - -o "$1".vp8 "$1".avi -done -mkvmerge --webm -o "$1".webm "$1".opus "$1".vp8 -rm "$1".opus "$1".vp8 "$1".log "$1".avi diff --git a/bin/bin/mplayeraf.sh b/bin/bin/mplayeraf.sh deleted file mode 100755 index f33a70d..0000000 --- a/bin/bin/mplayeraf.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -mplayer -af volnorm "$@" diff --git a/bin/bin/mplayervo.sh b/bin/bin/mplayervo.sh deleted file mode 100755 index 3c81849..0000000 --- a/bin/bin/mplayervo.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -mplayer -vo vdpau "$@" diff --git a/bin/bin/mplayervoaf.sh b/bin/bin/mplayervoaf.sh deleted file mode 100755 index f2a6265..0000000 --- a/bin/bin/mplayervoaf.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -mplayer -vo vdpau -af volnorm "$@" diff --git a/mplayer/.mplayer/config b/mplayer/.mplayer/config deleted file mode 100644 index 882497f..0000000 --- a/mplayer/.mplayer/config +++ /dev/null @@ -1,11 +0,0 @@ -vo=xv -zoom=1 -framedrop=1 -hardframedrop=1 -cache=16384 -lavdopts=threads=2 -autosync=30 -utf8=1 - -[vo.vdpau] -vc=ffh264vdpau,ffhevcvdpau,ffodivxvdpau,ffmpeg1vdpau,ffmpeg2vdpau diff --git a/mplayer/.mplayer/mencoder.conf b/mplayer/.mplayer/mencoder.conf deleted file mode 100644 index 37d46db..0000000 --- a/mplayer/.mplayer/mencoder.conf +++ /dev/null @@ -1,3 +0,0 @@ -oac=lavc=yes -ovc=lavc=yes -lavcopts=vhq=yes:trell=yes:v4mv=yes diff --git a/mpv/.mpv/config b/mpv/.mpv/config new file mode 100644 index 0000000..9f08734 --- /dev/null +++ b/mpv/.mpv/config @@ -0,0 +1,20 @@ +vo=gpu +profile=gpu-hq +hwdec=vaapi +hwdec-codecs=h264,hevc,vp8,mpeg2video,vc1 +scale=ewa_lanczossharp +cscale=ewa_lanczossharp +cache=yes +cache-secs=60 +display-tags=* +#osd-fractions +ytdl=no +gapless-audio=yes +autosync=30 + +[extao] +audio-device=oss//dev/dsp3 +oss-mixer-device=/dev/mixer3 + +[volnorm] +af=lavfi=[acompressor=threshold=-25dB:ratio=3:makeup=8dB] diff --git a/mpv/.mpv/input.conf b/mpv/.mpv/input.conf new file mode 100644 index 0000000..1b8d4f6 --- /dev/null +++ b/mpv/.mpv/input.conf @@ -0,0 +1,3 @@ +PGUP seek 600 +PGDWN seek -600 +ENTER playlist-next force