/mpv/ weekend thread

>install
mpv.io/installation/
>manual
mpv.io/manual/master/
>scripts
github.com/mpv-player/mpv/wiki/user-scripts
>frontends
github.com/mpv-player/mpv/wiki/Applications-using-mpv

what's the haps folks?

Commits on Oct 22, 2018
vo_gpu: vulkan: hwdec_cuda: Add support for Vulkan interop
vo_gpu: vulkan: Add a function to get the device UUID
vo_gpu: vulkan: Add arbitrary user data for an ra_vk_buf
vo_gpu: vulkan: Add support for exporting buffer memory

Attached: screen-watch?v=ESxn1cLz-Ig_2018-10-19-00:01:53.jpg (3840x2160, 1.5M)

Other urls found in this thread:

github.com/422658476/MPV-EASY-Player
github.com/422658476/MPV-EASY-Player/tree/master/mpv-easy-data/osc-style
hastebin.com/ceresoxuju.rb
github.com/ekisu/mpv-webm
github.com/occivink/mpv-scripts#encodelua
ffmpeg.org/ffmpeg-filters.html#elbg
github.com/mpv-player/mpv/issues/6172
non-gnu.uvt.nl/debian
mpv.io/manual/master/#options-audio-files
github.com/jonniek/mpv-playlistmanager
spit.mixtape.moe/view/raw/40c84747
github.com/mpv-player/mpv/issues/5126
twitter.com/SFWRedditImages

so someone posted this the other day
-- When a new file is loaded -> wait 0.5s, then displays the OSC for 5 seconds
local OSC_SECONDS = 3
mp.add_hook("on_preloaded", 100, function()
mp.add_timeout(0.5, function()
mp.command("script-message osc-visibility always no-osd")
mp.add_timeout(OSC_SECONDS, function()
mp.command("script-message osc-visibility auto no-osd")
end)
end)
end)


how do i make it so it displays stats (i) rather than osd?

pls respond ;_;

mp.add_hook("on_preloaded", 100, function()
mp.add_timeout(0.5, function()
mp.command("script-message display-stats 5")
end)
end)

/mpv/ experts and devs (I'm almost certain some devs are in these threads)....

I have disabled border (top toolbar) in mpv because I use a laptop and every vertical pixel is important to me. However, one thing I miss is a way to close the mpv without a keyboard.

Other players, such as IINA have an overlay thta brings up window widgets when you move your mouse near the top of the player window.

mpv has an awesome OSD at the bottom of the screen but it can't do what IINA does and you can't close/min/max the window with it.

Is there a way to have something like this in mpv?

Attached: 1518162051257.png (1169x710, 946K)

mpv-easy has an OSC with a close/minimize button on it. I'm not sure how you set it up because it's all in Chinese.
github.com/422658476/MPV-EASY-Player
I bind my middle mouse click to quit instead.

Attached: mpv-easy.png (880x515, 18K)

Thanks! I don't want chinkshit on my laptop tho. I only compile and run from the official mpv repo.

it's just a repo for a bunch of lua scripts you can use with mpv... you can see all the code yourself

just started looking at these...

github.com/422658476/MPV-EASY-Player/tree/master/mpv-easy-data/osc-style

I can't figure out which of these controls the top bar...

so use i3 fgt

Does mpv have an option for posterize? Please respond.

hastebin.com/ceresoxuju.rb
Is a script for mpv to create webm/gif/mkv copy
The issue is, if I create a webm from a stream, then trying to create a second webm from the same stream it overwrite the old saved webm created with the same name, how to make the filename for the new webm different?

Attached: 1540337211625.jpg (848x1200, 112K)

what's a good config for an older laptop?

Why do people still use this bullshit script

Because it uses ffmpeg, and allow to create webm straight from the web stream.

These two just do the same thing better
github.com/ekisu/mpv-webm
github.com/occivink/mpv-scripts#encodelua

No, it's not the same.
It uses ffmpeg and allow you to set various variables like height, subs,audio, and even do two passes.

Convince me to use mpv instead of VLC

just do it

hwdec=auto
vo=vdpau
autofit-larger=90%x90%
autofit-smaller=50%x50%

stop
Stop playback and clear playlist. With default settings, this is essentially like quit. Useful for the client API: playback can be stopped without terminating the player.


i add a binding to shift+space to this, and it quits the window. how do i make it stop but keep window open?

[rebuilding font cache]

What?

keep-open=yes?

>input: Command 'keep-open=yes' not found.

also fails with
keep-open yes or just keep-open

Are you putting it in mpv.conf?

Attached: manual.png (1370x588, 108K)

well no, i'm trying to do a keybind to stop when pressing a key
i already have
>keep-open=yes
>keep-open-pause=yes
in mpv.conf
so shouldnt for instance
>ESC stop
stop playback, and leave the window open? instead, it quits mpv

How do I get mpv to switch to dgpu on osx automatically? I've read through all of the github comments and none of the provided commands work.

Is Mojave breaking it?

Also how do I check if the resizers are activated without comparing it autistically using screenshots?

honestly i'm seeing no difference playing a youtube video with keep-open-pause yes/no

both just pause video at EOF where "no" should actually stop the video right?

i'm starting to think mpv doesnt actually have a "stop" function, just pause+quit or pause

in smplayer, for example, if i press the stop button (or keybind), playback stops, video closes, window remains open (showing a blank video window). this is what i'm trying to do in mpv.

Let's try again.
I believe what you're looking for is idle=yes in mpv.conf.
You can tell if the scalers and custom shaders are working by pressing shift+i and then going to the second page by pressing 2 to see the timings. It displays what timings for all computations it's currently doing. Can't really help you with the gpu issue, I've no experience with that OS.

idle=yes
force-window=yes

this did it, pressing ESC now shows the "drop files or URLs to play here" which is what i wanted

now i removed the keep-open/keep-open-pause and it works perfectly, which begs the question wtf is the point of these options if idle does the job better?
i'm guessing keep-open refers to an actual video file and not to the mpv process itself?

Keep-open keeps the file itself open, so you can replay. idle closes the file, but not mpv so you can drag new things into it for example.

>so you can replay
is it that costly to just re-open the file?

When using this format
mpv 'url1' 'url2' 'url3'
How to know which file is playing?

I suppose keep-open imitates the behavior of other players. It's also great for streams, since you might want to rewatch, now that the video is cached.
The last part of the url is the file name in stats (shift+i).

>It's also great for streams
good point

>The last part of the url is the file name in stats
The name is gibberish, I was looking for something like the number of the URL.

You can make button display the playlist with [key] show-text "${playlist}" in input.conf. Do they get added in a random order, what's the problem?

--hwdec=nvdec-copy
--profile=gpu-hq
--gamma-factor=1.1
--scale=ewa_lanczossharp
--cscale=ewa_lanczossharp
--video-sync=display-resample
--interpolation
--tscale=oversample
--gpu-debug
--gpu-api=vulkan
--spirv-compiler=nvidia
--vulkan-async-compute
--gpu-context=angle

>--spirv-compiler=nvidia
nvidia spirv compiler no longer works, use auto

Why angle over winvk for gpu-context when using vulkan?

Worst config ever

It's difficult to explain but I'll try.
I'm using mpv to watch several videos, so i used mpv url1 url2 url3 etc to watch it, the videos are not named properly, but I've put the URLs in correct order, so I want to know what is the current number of the URL.
For example there's 10 files in the play list, and I'm watch No.6.

f8

Still can't make Vulkan work on Linux. Shaderc fails to build.
At least with the never kernel amdgpu dpm world better with mpv - much faster.

what distro?

It's not a keybind in my input.config

it's default to show playlist
F8
Show the playlist and the current position in it (useful only if a UI window is used, broken on the terminal).

Xubuntu.

>Xubuntu.
well there's your problem

?

Have you tried the ppa found on the mpv page? I use that one and vulkan works for me (on kubuntu and now KDE neon).

almost any other distro is better for packaging/updates/etc

It shouldn't work for you. Check logs for errors
Has nothing to do with actual shaderc building.

you can use an ffmpeg filter
ffmpeg.org/ffmpeg-filters.html#elbg

>height, subs,audio, and even do two passes.
mpv-webm can do that

i noticed libshaderc is in fedoras repos now

>tfw can't use vulkan because of an nvidia bug
github.com/mpv-player/mpv/issues/6172

When will they fix it?

>interpolation

post better

How do I install the latest mpv under debian? apt pinning has me very confused. I have "deb non-gnu.uvt.nl/debian stretch main" as a repo

I have a weird bug... after I suspend my laptop and then wake it up, all mpv windows are frozen. I have to xkill them and restart and I lose my position.
Latest gi head compiled version...
Is that a known issue or am I doing something wrong?

Attached: 1528960539455.jpg (1115x1080, 132K)

haasnterpolation when!?

how do you get mediainfo or the alternatives to work on mpv windows version?

Best anime config?

figure it the best config for your system

#vid#
profile=gpu-hq
vo=gpu
hwdec=cuda
video-sync=display-resample
scale=ewa_lanczossharp
cscale=ewa_lanczossharp

this but remove hwdec and ewa_memescale

that hdwec gives me more performance but ill admit i just put those scaling settings since thats what the guide says are the best ones
are there actually better scaling options?

gpu-api=vulkan
profile=gpu-hq
scale=haasnsoft
cscale=haasnsoft
dscale=haasnsoft
deband-iterations=2
deband-range=12
interpolation=yes
tscale=oversample
video-sync=display-resample

>interpolation

Is there a setting for mpv to keep the same audio and subtitle tracks selected for all items in a playlist until close?

I'm watching a few episodes of a show and I need to keep manually select audio track 2, subtitle 3 when I skip to the next episode.

Is there a way to add my own audio track to a video?

mpv.io/manual/master/#options-audio-files

there's no way I can do it without going into the console?

use a gui like smplayer

you can put it in your mpv.conf

aid=2
sid=3

Will that effect any of the quality of the video or audio?

I think this has been an issue forever. I've just gotten use to killing whatever I was watching before hibernating.

question about playlistmanager.lua
github.com/jonniek/mpv-playlistmanager

how do I get it to just show the filename?
it shows file path from the directory I called mpv from

e.g. if I run mpv videos/show/*.mkv all the filenames will appear as "videos/show/s01e01.mkv" etc

I like haasnsoft for 480p releases but I found it too blurry for 720p -> 1080p

Then use ewa_lanczossoft.

>using a laptop
>wants a way to close mpv without a keyboard
>doesn't realize his own retardness.

>spit.mixtape.moe/view/raw/40c84747

You could bind a mouse button to quit.
Also, if the player is in full screen mode, the title bar will still be present if you move your mouse to the top of the screen.
Other than that, I don't think mpv has the auto-hiding title bar option

I'll try it thanks

it's a useful option to have. I use keep-open for [protocol.http] so that once I've cached a video it won't quit once it ends. Also useful if I'm watching a network stream, that way if it reaches the "end" it will pause and wait for more to load instead of quitting.

>scale=ewa_hanning
>scale-radius=3.2383154841662362
>scale-blur=1.055
who are you trying to fool? that's haasnsoft
>gpu-shader
no wonder you labeled them as a "Meme"

>that's haasnsoft
With less blur.
>gpu-shader
That's explain why I did never see any difference with then on.

If you click on the title in the OSC it should display the title and which item it is

[3/13] Title.mkv

>I think this has been an issue forever. I've just gotten use to killing whatever I was watching before hibernating.
Any idea what causes this behavior? VLC, and other players I tried (notably the xplayer) don't have this issue. After a suspend/wake, they both work fine.

been using mpv to play radio streams more again lately, and on most I get the Invalid audio PTS: sometime -> -sometime this seems to be this issue github.com/mpv-player/mpv/issues/5126 but no fix is ever given.
any of you lads know any workarounds for this? seeing track titles on track change would be neato

Attached: pls_respond.png (398x183, 5K)

Is it an ffmpeg issue?

Attached: 1.png (1410x249, 39K)

Does mpv progressively eat up a lot of ram when listening to a radio stream for you too?

it might be something that would better be fixed in ffmpeg than mpv, but I hoped someone else ran into this before and found some sort of work around. I've seen this for as long as I can remember with different systems and versions

now that I check, yes it seems to. will keep watch of that for a while to be sure. normally I switch streams every now and then(playlist of different m3u files), which seems to reset it so I never noticed it.

cache?

It happens with any kind of config for me, even an empty one.

default still use cache...