MPV

  archlinux, multimedia

Installation

yaourt -S mpv

Version

mpv 0.27.2 (C) 2000-2017 mpv/MPlayer/mplayer2 projects

built on Wed Feb 14 14:00:12 CET 2018

ffmpeg library versions:
libavutil       55.78.100
libavcodec      57.107.100
libavformat     57.83.100
libswscale      4.8.100
libavfilter     6.107.100
libswresample   2.9.100
ffmpeg version: 3.4.2
Tree du dossier de configuration (~/.config/mpv)
.
├── input.conf
├── lua-settings
│   ├── convert_script.conf
│   ├── encode_slice.conf
│   ├── encode_webm.conf
│   └── encode_webmsound.conf
├── mpv.conf
├── scripts
│   ├── acompressor.lua
│   ├── easycrop.lua
│   ├── encode.lua
│   ├── streamcache.lua
│   ├── unpause.lua
│   └── xrandr.lua
├── shaders
│   ├── ravu-r4.hook
│   └── SSimDownscaler.glsl

Fichier mpv.conf

# Video

vo=opengl
profile=opengl-hq
#gpu-api=opengl
gpu-shader-cache-dir=/tmp/mpv-shaders/
opengl-pbo=yes
#fbo-format=auto
sigmoid-slope=10.0
scale=ewa_lanczossharp
scale-radius=3
scale-antiring=0.8
cscale-antiring=0.9
cscale=ewa_lanczossoft
dscale=mitchell
target-prim=bt.709
target-trc=bt.1886
video-sync=display-resample
interpolation=yes
interpolation-threshold=0.2
blend-subtitles=no
deband-iterations=2
deband-range=12
temporal-dither=yes
hwdec=no
keepaspect-window=no
video-aspect=0
geometry=50%:50%
framedrop=vo
volume=70
#opengl-shaders="/home/yishan/.config/mpv/shaders/adaptive-sharpen-2pass.glsl"
#opengl-shaders="/home/yishan/.config/mpv/shaders/KrigBilateral.glsl"
#opengl-shaders="/home/yishan/.config/mpv/shaders/adaptive-antiringing.glsl"
#opengl-shaders="/home/yishan/.config/mpv/shaders/ravu-r4.hook"
#glsl-shaders="/home/yishan/.config/mpv/shaders/ravu-r4.hook"
#glsl-shaders="/home/yishan/.config/mpv/shaders/SSimDownscaler.glsl"

# Cache
cache=auto
cache-default=2500000
cache-initial=5000
cache-secs=500000

# Multithreaded decoding 
vd-lavc-threads=4

# Audio
ao=pulse
pulse-buffer=50
audio-channels=2
volume-max=100
audio-pitch-correction=no
af-add=rubberband
audio-display=no

# Subs
sub-ass-force-style=Kerning=yes
demuxer-mkv-subtitle-preroll
sub-font="Source Sans Pro Semibold"
sub-font-size=52
sub-margin-y=24
sub-color="#FFFFFF"
sub-border-color="#000000"
sub-border-size=2
sub-shadow-offset=1.25
sub-shadow-color="#303030"
sub-spacing=0
slang=fr,fre,en,eng
alang=en,eng,fr,fre
sub-scale-by-window=no

# Screenshots
screenshot-format=png
screenshot-png-compression=0
screenshot-png-filter=0
screenshot-tag-colorspace=yes
screenshot-high-bit-depth=yes
screenshot-directory=/tmp

# Colors!
msg-color=yes

# Rice osd
script-opts=osc-layout=bottombar,osc-scalefullscreen=0.7,osc-scalewindowed=0.7
osd-bar-align-y=0.85
osd-color='#F6F6C9'
osd-border-size=0
osd-bar-w=100
osd-bar-h=0.1
osd-font="Linux Libertine O"
osd-font-size=25

# Other
ytdl=yes
ytdl-format=HTTP_MP4_SQ_1/bestvideo[vcodec=VP9][height>=1440]+bestaudio/bestvideo[tbr<13000][height>720]+bestaudio/best[height>480]/bestvideo[height=480]+bestaudio/best
term-playing-msg='Resolution: ${width}x${height}, Framerate: ${container-fps} Hz'
save-position-on-quit
keep-open
quiet

### profiles

[extension.webm]
loop-file=inf

[protocol.http]
force-window=immediate
cache=2500000				# size in KB
cache-initial=5000
cache-backbuffer=250000
cache-secs=200
cache-pause
cache-file=TMP
cache-file-size=5000000

[protocol.https]
profile=protocol.http

[image]
mute=yes
scale=ewa_lanczossharp
background=0.1
input-conf=~/.config/mpv/input-image.conf
video-unscaled=yes
title="mvi - ${?media-title:${media-title}}${!media-title:No file}"
image-display-duration=inf
loop-file=yes
save-position-on-quit=no


profile-desc="Audio-only content" 
force-window=no 
no-video 
ytdl-format=bestaudio/best 
save-position-on-quit=no 

[dac] 
profile-desc="usb dac" 
audio-device=[hw:0,0] 
audio-format=s32 
audio-display=no 
 
[low] 
profile-desc="low profile" 
vo=xv 
deband=no 
hwdec=no 
 
#[upscale] 
#profile-desc=cond:get('width', math.huge) <= 1280 
#scale=ewa_lanczossharp 
#cscale=ewa_lanczossoft 
#vf=vapoursynth=/home/yishan/.config/mpv/vapoursynth/nnedi3.vpy

Fichier input.conf

\ script-message-to acompressor toggle-acompressor
e script-message-to encode set-timestamp encode_webm
E script-message-to encode set-timestamp encode_webmsound

 

Installation de l’extension « Open With » pour Firefox

Configuration