Mpv

All things mpv - not dead yet edition

Attached: out.png (4096x4096, 328K)

Other urls found in this thread:

youtube.com/user/VideoLANorg/videos
gist.github.com/Shudouken/3796ec60ebd6d42f5d00
youtube.com/watch?v=kQ8fxENEGtk
github.com/ekisu/mpv-webm
github.com/occivink/mpv-scripts#encodelua
github.com/haasn/libplacebo/commit/6c5c652a7a2baeb1fb8be74ca8794ce510b86ac2
wiki.gentoo.org/wiki/VAAPI
wiki.archlinux.org/index.php/Hardware_video_acceleration#Configuring_VA-API
github.com/wm4/libinsanity
github.com/4e6/mpv-reload
github.com/wiiaboo/mpv-scripts/blob/master/mines.lua
twitter.com/NSFWRedditImage

What does "MPV" stand for?

can you please stick with a format when you make a new thread?

My Pretty Velociraptor

What is Google?

Just started using MPV today and trying to figure things out. How much anti-ringing should I use for scaling? Got the Webm script and the Autoload script for playing files in a folder. Anything else that's essential/recommended? I have no idea what to do about those external shaders or whatever yet. What do?

Attached: 1533403651675.jpg (550x509, 33K)

Malware.

use profile=gpu-hq everything else is a meme

VLC 2018 dev day talks are up on youtube

youtube.com/user/VideoLANorg/videos

When using mpv + ytdl to watch certain sites like xvideo/chaturbate, it seems it only buffers up to 10 seconds, while other sites it buffers until the specified cache value.
Any idea how to fix it?
This is my cache config
[protocol.http]
cache=yes
cache-default=300000
cache-backbuffer=20000
pause

[protocol.https]
cache=yes
cache-default=300000
cache-backbuffer=20000
pause
Using the latest youtube-dl.

Attached: Bowsette-Mangaka-Illustrations-3.jpg (937x1200, 140K)

Convert script.
gist.github.com/Shudouken/3796ec60ebd6d42f5d00
What webm script?

haasn-chan's talk
youtube.com/watch?v=kQ8fxENEGtk

github.com/ekisu/mpv-webm

Haasn is cute. CUTE!

How is this better than the convert script?

No shitty dependencies, for one.

The one the other user linked. I guess the you linked has more options but I only want the webm function, so thanks anyway.

I mean, does it uses the video data stored on local cache?
Or uses the original source?

>I mean, does it uses the video data stored on local cache?
Scripts can't do that, they all re-read the file or re-fetch the stream

I see, well the older conversion script couldn't convert from youtube directly, and had to use the ffmpeg version.
Also the cropping function for the webm script seems to bug on certain DE, XFCE for example.

Yeah, and that's why you shouldn't use the script that rely on external dependencies. Instead, use this one
github.com/ekisu/mpv-webm
or this one
github.com/occivink/mpv-scripts#encodelua

TheAMM's mpv_thumbnail_script keeps on crashing my UI, leaving me without any OSD. Not every time but often enough to annoy me.

pls help.

Why, are you trying to parse these thread OPs or something?

no I want to filter them but I don't want to make 100 rules

My filter is: /mpv/i;op:only;highlight;top:yes;boards:g;

works every time desu.

don't want to filter legit threads talking about whatever but including the mpv word

How do I make it so that mpv closes/exits whenever I press middle mouse button on it?

0.30.0 soon

what is the proper way to handle playlists? i got myself few aliases for bash i just use when want to play given playlist
any better than that?

What's your youtube-dl configs?

I like his voice.

Miss, Post Vagene

Why do you need a config for it?

I am pretty new to Linux.
Please share top quality settings and explain to me how exactly do I use RAVU (and which version).

My setup is pretty damn beefy (2700X + Vega 64) and I'm upscaling everyhtiung to 4k so I want everything to look fine and crisp.

Ahahaha, it's funny because I'm actually a woman.

Why not?

MPV
Mpv Plays Videos

.config/mpv/input.conf
shift+s screenshot each-frame
Shift+UP seek 600
Shift+DOWN seek -600
= cycle video-unscaled
- cycle-values window-scale 2 .5 3 1
WHEEL_UP add volume 5
WHEEL_DOWN add volume -5
WHEEL_LEFT ignore
WHEEL_RIGHT ignore


.config/mpv/script-opts/stats.conf
font=monospace
border_size=0


cdda-speed=1
#gpu-context=wayland
hwdec=auto
vo=vdpau
#fs=yes
autofit-larger=90%x90%
autofit-smaller=50%x50%
ytdl-format=(bestvideo[ext=mp4][height

ytdl-format=bestvideo[height

in input.conf
MBTN_MID quit

What does Mpv stand for?

github.com/haasn/libplacebo/commit/6c5c652a7a2baeb1fb8be74ca8794ce510b86ac2

Attached: 05d.jpg (450x338, 22K)

wat

i only have a papercut issue with mpv; the fugly icon. they really need to design a proper icon, that isn't flat and/or minimalistic

>atomnuker's talk
>codec called ffv2 but has nothing to do with ffv1 and isn't designed for lossless
>code is a copy/paste of the daala features that got rejected for AV1
>when asked about this, insults the guy asking the question
10/10

which mpv dev could be behind this post

Any config for old hardware?
Like Thinkpad T420/X220

Attached: 1537264094736.gif (444x250, 1.18M)

how to start mpv in maximized window? (windows 10)

mpv is trash. dark screen on my mac.

hwdec=vaapi
video-sync=display-resample
interpolation=yes
tscale=oversample

profile=gpu-hq

On GNU/Linux? I thought vaapi is for windows.

it's reverse, vaapi won't work on windows
you can just use auto, that would select based on OS

Where's the folder for the shaders on Linux?
I couldn't find the instructions where to put them even after some googling.

wiki.gentoo.org/wiki/VAAPI
profile=gpu-hq seems a bit too heavy for my x220 though

No hardware decoding available.
Am I missing something?

Remove debanding.

hw decode works on 8-bit h264 videos only.

That helped, thanks.

I mean I'm getting an error about using vaapi.

There's no folder for it

vainfo tool works?

It's a recursive acronym.

libva info: VA-API version 0.38.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

I don't have the drivers, do I ?

i965-va-driver in debian likes, others might package it with libva

I'm using arch, and libva is installed.

>/usr/lib/dri/i965_drv_video.so
Driver might not be in that path nowadays i think, you might need to create a symlink

Or do this
wiki.archlinux.org/index.php/Hardware_video_acceleration#Configuring_VA-API

guys, can mpv run scripts before quitting?

Yes, register for the "shutdown" event.

thanks

Another question, is there a script that looks at mpv.conf before closing the windows and replaces the line volume=\d+ with the current volume level?

Don't think so, no. But it shouldn't be too hard to create I guess.

I'm tired of having to set the volume every time I open a file. is there anybody in here that takes requests? it's be nice having a script to remember the volume level

If there's none you could do quiete easy by yourself, by just replacing the standard volume in the config file.

Here you go:
[script]
mp.register_event("shutdown", function()
local home = os.getenv("HOME")
local file = io.open(home .. "/.config/mpv/mpv.conf", "r+")
if file == nil then
return
end
local content = file:read("*a")
local volume = tostring(math.floor(mp.get_property_number("volume")))
local rep = string.gsub(content, "volume=%d+\n", "volume=" .. volume .. "\n")
if rep ~= content then
file:seek("set")
file:write(rep)
end
file:close()
end)
[/script]

great, thanks

its code not script doublenigger

Yeah well I remember too late, fuck it.

github.com/wm4/libinsanity

What did wm4 mean by this?

random shit, some of it pointless

#toggle a background for subtitles
ctrl+b cycle-values sub-back-color "#FF000000" "#00000000" ; cycle-values sub-shadow-offset "8" "0"; cycle-values sub-border-size "0" "2.5"

ctrl+r cycle-values video-rotate 90 180 270 0

#mirror the video
ctrl+f no-osd vf toggle hflip

#remove grain, could be useful, makes films look like yify rips
ctrl+g vf toggle "lavfi=[hqdn3d]"

#deinterlacing, this is supposed to be better than mpvs default?
ctrl+i vf toggle "lavfi-bwdif"

#toggle between mono and stereo, useful for those youtube videos where the audio is only playing in one ear as switching to mono gives audio in both sides
ctrl+m cycle-values audio-channels "mono" "stereo"

#mutes the center audio channel?, on some streams i this mutes commentary and gives you just game audio, depending on how the stream is setup
ctrl+M af toggle "lavfi=[pan=1c|c0=c0+-1*c1]"

#normalizes audio
ctrl+n af toggle "lavfi=[dynaudnorm=f=200:g=5:r=0.1]"

#fixes color in some videos
ctrl+t cycle-values target-trc bt.1886 gamma2.2 srgb

#cycle between shaders
ctrl+x cycle-values glsl-shaders "~~/adaptive-sharpen.glsl" "~~/SSimSuperRes.glsl" "~~/SSimDownscaler.glsl" ""

#you can clip livestreams with this
alt+r cycle-values record-file "/path/${filename}.ts" ""

#refresh the stream/video if your connection drops
F5 write-watch-later-config; loadfile ${path}

#download the video you're watching
ctrl+s run youtube-dl "${path}"; show-text "Saving ${media-title}"

#change quality of youtube video
ctrl+q cycle-values ytdl-format "bestvideo+bestaudio/best" "bestvideo[width

>forks ffmpeg
>forks libass
>forks libc
>forks mplayer2
What next?

>#change quality of youtube video
ctrl+q cycle-values ytdl-format "bestvideo+bestaudio/best" "bestvideo[width

do you think there is a way to do this with playlists?

Also I've been using this: github.com/4e6/mpv-reload
which I see says it preserves playlists but in my experience doesn't.

nevermind on that reload.lua part, I was using a very old version of it.

only thing i miss from the old zekhul script is you could combine multiple different time segments in the video into a single webm, and do streamcopy mkvs without reencoding the video.

Works here with cache-default=4000000
cache-backbuffer=250000
demuxer-max-bytes=1147483647
cache-secs=500
You're not talking about actual livestreams are you?

I figured it out!

ctrl+q cycle-values ytdl-format "bestvideo[height

>forks life

Oh shit, thanks guys, I've been wanting something like this for sooo long but never figured out how

x keypress x

Attached: 1510890489849.jpg (640x474, 44K)

A-user no!

Not how I pictured him

does it work on mojave?

>redditpv
no thanks

absolute brainlet here, how good is mpv as a music player with --no-video

Audio is complete shit

>make webms on demand
>cropped screenshot right from the player
>mouse/keypresses configurable to do literally everything
>play and download from almost any site
>various settings to fix and adjust videos
Is this the emacs of video players? What are some other exotic things I could do with mpv?

Attached: 68966185_p1.jpg (1240x1754, 581K)

code sounds like coc

play minesweeper
github.com/wiiaboo/mpv-scripts/blob/master/mines.lua