Mpv

>plays videos
>plays music
>shows pictures
>can play youtube videos
Is there anything mpv can't do? What else it can do besides that?
Oh, I know, it doesn't have that pan and scan numpad keybinds like mpc-hc has. They were super intuitive and easy to use, can mpv do that? Is it just a matter of keybinds or it just doesn't have that pns capabilities mpc-hc had? It'd also kill it as an image viewer if it had that.
It has ezpz gamma/contrast/saturation/brightness adjustment, though, which I like very much.

Attached: 50128.png (256x256, 57K)

Other urls found in this thread:

github.com/occivink/mpv-scripts/commit/2aef3c2fcd422f23da17ee704d5e72c1c50e8772
github.com/occivink/mpv-image-viewer
github.com/occivink/mpv-gallery-view
mpv.io/manual/master/#options-screen
github.com/mpv-player/mpv/issues/5781
github.com/jgreco/mpv-txt/
github.com/mpv-player/mpv/wiki/Applications-using-mpv
glowmpv.github.io/
github.com/422658476/MPV-EASY-Player
github.com/rossy/mpv-repl
rg3.github.io/youtube-dl/download.html
github.com/jgreco/mpv-txt
pastebin.com/BUQHRFVa
github.com/mpv-player/mpv/blob/master/TOOLS/umpv
potplayerclub.pl/
twitter.com/SFWRedditImages

It can't enable a gui either

>pan and scan
There are like 3 scripts for this, some based around mouse, some not.

KP8 add video-pan-y 0.05
KP4 add video-pan-x 0.05
KP2 add video-pan-y -0.05
KP6 add video-pan-x -0.05

uses numpads 2, 4, 6 and 8

>Is there anything mpv can't do?
Madvr

link to mouse based pan script?

mpv does madVR better than madVR itself.

Attached: 1512318437624.gif (500x516, 152K)

Used to be part of occivink's mpv-scripts, but he pulled it out in github.com/occivink/mpv-scripts/commit/2aef3c2fcd422f23da17ee704d5e72c1c50e8772
He has a new repo called mpv-image-viewer, which has drag-to-pan in it:
github.com/occivink/mpv-image-viewer
Coupled with github.com/occivink/mpv-gallery-view MPV is a really comfy image viewer

Can you select on which screen mpv should open up?

Attached: 100x.png (314x300, 36K)

mpv.io/manual/master/#options-screen

>ufr

mein negro

it can't do a stable release for windows in the year 2018

it can't do a GUI

it can't do a volume scroller and not some retarded shortcuts to adjust volume

For this sort of thing, it would be really nice if this issue were cleared up: github.com/mpv-player/mpv/issues/5781
>Cannot use the input-conf option from within an extension Auto Profile.
(This would allow setting custom input config based on file extension)

I mean, the "mvi alias" solution is fine I guess, but I'd prefer to just invoke mpv like normal.

Did anyone manage to write a working, system independent solution for reading to and from clipboard in mpv scripts? I don't care how, I just want it to goddamn work. Be it lua, js or whatever.

lewd bunny for attention

Attached: 32215289_1799005680166274_638749168348692480_n.png (680x960, 261K)

awww yisss epub support github.com/jgreco/mpv-txt/

requires calibre to be installed, but it works

Attached: party.gif (129x111, 42K)

This is really all that it misses.

Use utils.subprocess(...)

On linux call out to xclip; on MacOS call out to pbcopy. On windows install gentoo.

???
github.com/mpv-player/mpv/wiki/Applications-using-mpv
glowmpv.github.io/
github.com/422658476/MPV-EASY-Player

check out github.com/rossy/mpv-repl

And which is good? Tried mpc-qt and its still pretty early stage... not sure if contributing to mpv will look good for github resume

in other words:

function get_clipboard(clip)
if platform == 'linux' then
local res = utils.subprocess({ args = {
'xclip', '-selection', clip and 'clipboard' or 'primary', '-out'
} })
if not res.error then
return res.stdout
end
elseif platform == 'windows' then
local res = utils.subprocess({ args = {
'powershell', '-NoProfile', '-Command', [[& {
Trap {
Write-Error -ErrorRecord $_
Exit 1
}
$clip = ""
if (Get-Command "Get-Clipboard" -errorAction SilentlyContinue) {
$clip = Get-Clipboard -Raw -Format Text -TextFormatType UnicodeText
} else {
Add-Type -AssemblyName PresentationCore
$clip = [Windows.Clipboard]::GetText()
}
$clip = $clip -Replace "`r",""
$u8clip = [System.Text.Encoding]::UTF8.GetBytes($clip)
[Console]::OpenStandardOutput().Write($u8clip, 0, $u8clip.Length)
}]]
} })
if not res.error then
return res.stdout
end
elseif platform == 'macos' then
local res = utils.subprocess({ args = { 'pbpaste' } })
if not res.error then
return res.stdout
end
end
return ''
end

mpv is going to go the way of MPC-HC. It's inevitable after reaching perfection. Should have taken a page from VLC's book and created perpetually faulty programming so you have something to "fix" to keep updates pumping out.

I don't use one. It' pointless for me.

Userscripts are mpv's true killer feature, and the reason it will never die.

I already got it working on linux, that's why I'm asking for a platform independent solution.

>On windows install gentoo.
I'm pretty sure that my setup at work is already weird enough for a C# codemonkey.

Thanks, I'll look into it.

>gui

Attached: 1504084677702.jpg (215x235, 8K)

you could bind volume control to mouse wheel,
but who would want that?

Or just put your curser over the volume icon and scroll

>you could bind volume control to mouse wheel,
>but who would want that?
That's what I do. what's wrong with it? Is there something better I should be using the mouse wheel for?

Every time I drag a youtube link on my mpv it closes automatically.
What i'm doing wrong?

Attached: DMPN6lZXkAEC_1M.jpg (600x600, 42K)

Do you have youtube-dl installed?

How do I use this program on Android? There's no way to play an entire folder of media and basically no media controls. Its the only program that can display APNGs on Android without shitting its pants though.

Install youtube-dl/put it in the mpv folder

>using windows in the year 2018

How sad.

Oh... I thought it was a native feature.
This one? rg3.github.io/youtube-dl/download.html

Attached: DOygLGMXUAIaM_x.jpg (800x432, 39K)

Like this?

Attached: scrot_2018-05-14-19:46:13_1366x768.png (570x115, 9K)

It's 2018, user. There still isn't an alternative.

Like this ;^)

Attached: 01.png (802x272, 31K)

did that user finish the volume slider script?

Nevermind, I installed it via Pip.

Attached: scrot_2018-05-14-19:57:10_1366x768.png (707x144, 25K)

should be available in your distro's repos as well

>windows
>distro repos
jej good joke

Is there a way I can get mpv to display a mirror image? You know, so I can read subtitles when viewing my computer through a mirror.

I'm thinking maybe a video filter or an option or something?

Attached: 1518345237705.jpg (710x639, 41K)

IT'S TOO LATE DIEGO

ctrl+f vf toggle sub,hflip

Nice. Is there a way to make this apply to subtitles too though? I gather that's what the "sub" part is supposed to do, but it says
[sub] This filter is deprecated and will be removed (no replacement)

Only way I can think of is extracting the sub and then using something like

--no-sub-visibility --lavfi-complex="[vid1] subtitles=subs.ass,hflip [vo]"


But that requires you to make a script or extract the subs manually each time.. also no fonts..

the subtitles in question are mov_text, inserted into an mp4 file from an SRT file. does that make any difference?

works for me
try ctrl+f vf toggle sub; vf toggle hflip

Attached: uu.jpg (1280x720, 423K)

:(

Pretty sure the subtitle filter supports srt too?
input: Command vf: more than 0 arguments required.
input: Command was defined at input.conf:41.
input: Invalid command for key binding 'Ctrl+f': 'vf toggle sub; vf

did you copy it wrong? why does the error end at vf?
ctrl+f vf toggle sub; vf toggle hflip
on a single line.
i just tested it and it works for me and flips the subtitles.

dammit, I think the problem is there is no video stream in this file. only subtitles and audio.

it works for video files.

what kind of weirdo only watches subtitles through a mirror?

Not always, only sometimes. For instance when I'm shaving I like to put my computer on a shelf in back of me and watch it in the mirror.

You can shave and read subtitles properly at the same time?

You are crazy sir.

it's hard because they're all backwards in the mirror!

I think the obvious solution is for me to add a cursory video stream to these files, but I'll keep investigating this to see if there's another solution.

The lavfi-complex solution I mentioned works fine btw, just make a bash script to extract the sub to /tmp and start mpv with it...
e.g

#!/bin/bash

ffmpeg -i "$1" -vn -an /tmp/subs.ass
mpv "$1" --no-sub-visibility --lavfi-complex="[vid1] subtitles=/tmp/subs.ass,hflip [vo]"


untested but should be fine?

Without a video stream in the file, this doesn't display subs at all.

Oh sorry, I missed that you had no video stream.. But still for videos this will work.

And for just audio you could use the color filter.

Also, why would you watch bare subtitles in the mirror while shaving? Are you singing karaoke?

audio + subtitles = read-along audiobook

github.com/jgreco/mpv-txt

Okay, I wrote something that gets the job done (tested on windows, will check the linux clipboard setting later). In case someone would find it useful:

module (a bit too long to paste it here, it's modified function from github.com/rossy/mpv-repl and the other function I made for setting clipboard's content, all packed into a lua module:
pastebin.com/BUQHRFVa

example usage:
local mp = require 'mp'
local clipboard = require 'utilities.clipboard'

function load_file_from_clipboard()
local result = clipboard.get_clipboard(true)

if result and result ~= '' and result ~= 'error' then
mp.commandv('script-message', 'osd-visibility', 'auto')
mp.osd_message('Trying to open ' .. result)
mp.commandv('loadfile', result, 'replace')
elseif(result == 'error') then
mp.osd_message('Error getting clipboard contents!')
else
mp.osd_message('Clipboard is empty')
end
end

function copy_file_path_to_clipboard()
local filename = mp.get_property('path')
if filename then
mp.osd_message('Filename copied to clipboard: ' .. filename)
clipboard.set_clipboard(filename)
else
mp.osd_message('No file')
end
end

mp.register_script_message('load_file_from_clipboard', load_file_from_clipboard)
mp.register_script_message('copy_file_path_to_clipboard', copy_file_path_to_clipboard)


input.conf
Ctrl+v script_message load_file_from_clipboard
Alt+v script_message copy_file_path_to_clipboard


>inb4 use script-binding instead of script-message
Explain the difference first. I'm genuinely curious if there's any significant one.

One more thing, I'm pretty sure there was an option to have mpv display (in osc) filename on_load and error on_load_fail. How do I turn it on?
I hope this thread won't die until I wake up.

You can't confine it to one instance. So if you're playing a video (like a TV episode) and click a new one, now you have two episodes playing.

WHEEL_UP add volume 2
WHEEL_DOWN add volume -2
UP add volume 2
DOWN add volume -2

(This is a feature)

github.com/mpv-player/mpv/blob/master/TOOLS/umpv

i like to have ten pornos open tiled across my desktop

>implying I use Linux

I know right? How dare they expect me to be able to manage TWO videos at once on my screen.

how do I get it to not blow the window up when changing files? Say I watch a 1080p video and then a 4k video loads in it fucks with where I positioned it and goes off-screen. I don't like the geometry nor the autofit options as they still move the window around and resize it.

>>>gui
who let this basedboy in

Can someone explain why distortion like this happens? I'm not using hwdec or anything which is what I had heard causes this

Attached: 1520319340187.png (663x780, 1.05M)

Smooth tracking

your garbage CPU can't decode it, or the video is fucked, or mpv is just ass. If you can decode it without artifacts in another player, it's mpv. If you can't decode it without artifacts in any player, it's your cpu or the file itself. If other people can decode it without artifacts, it's your CPU.

Wintard here.
I don't get why people say this.

With MPC-HC, Potplayer and VLC you waste time hovering through countless context menus and Preferences screens just to find specific options.
Most of the time it's not even on the page or menu it should logically be found in.

Meanwhile you can just drop the text for how you want MPV to behave into notepad and it's done.
It's even portable so you have it exactly as you want forever.

linked .mkv's

What the fuck? It takes like 5 seconds to look at the options and select the thingy you want. Whereas with mpv, you need to read the fucking manual to find the text you need to paste into your config, or go googling for whatever script you need.

By all means, use mpv, but don't turn retarded trying to defend every little drawback

it's true though.
Just modifying the screenshot settings in Potplayer took me way more time than getting the same result in MPV, I've tested this recently when I needed a capture sent to a folder with subtitles included.

Can you program on it? no? discarded.

That's why I switched to GNU Emacs. I can do pretty much everything MPV does and much more.

>click through numerous menus trying to find the thing you want
>type ctrl + f and type a keyword or phrase you want
Yea no, mpv is easier.

I had this line in my input.conf

y vf toggle mirror

so that when I hit y the image would get mirrored across the y axis

I noticed it's not working anymore, and I'm not sure why.
I get the following error message.

vf] Opening video filter: [mirror]
[mirror] libavfilter filter 'mirror' not found!
[vf] Creating filter 'mirror' failed.

Anyone have any idea what happened?

I might add that toggle is from the misc.lua script package

nvm, guess it's always been hflip

no idea where I got mirror from, but it used to work

\thread

The OSC is a GUI. Prove me wrong.

Attached: 1511578529539.jpg (640x446, 87K)

I'm getting screen rearing when I'm using user shaders, can anybody share this experience with me?

>Is there anything mpv can't do?
Play a common video file. I just dropped mp4 file on freshly unpacked mpv and I see black window and audio only. Great!

Needs a playlist like cmus.

It has a playlist. Where does this meme that mpv has no playlist come from?

I think he means "gui playlist management"

Oh. well there are plenty of userscripts for that so he's still wrong.

It seems haasn is not going to release his motion interpolation algorithm. If you want the best and that you are not a freetard, just use PotPlayer FanPack here:
potplayerclub.pl/

Attached: fmod_1_0_5_ru_en_by_fmod-dbku0ri.png (1920x1080, 2.07M)

ultimate video player

>it's standard for every other media player
>mpv is the only (((major))) one I can think of which doesn't default to this
>mpv doesn't even allow you to set it as an option
>hurr durr why you am be so stupid

Thanks for the plug, I was wondering where the stars came from.

How the hell can anybody take a mediaplayer named after cannabis and promoted primarily by pajeets seriously?

>european website
>pajeets

MPV - ultimate video player

Being able to launch multiple instances at once is a feature, not a bug. It gives more power to the user.

>mpv doesn't even allow you to set it as an option
mpv provides umpv which does exactly what you want: github.com/mpv-player/mpv/blob/master/TOOLS/umpv

Did you even look?

>russian
>russia = asia
>asia = pajeet