←back to thread

1113 points Bluestein | 8 comments | | HN request time: 0.443s | source | bottom
1. coppsilgold ◴[] No.41277590[source]
MPV has versatile scripts. For example you can cut and crop a video you are watching[1].

You can also introduce hotkeys for functionalities I have never seen in another player.

I use this (input.conf) sometimes to normalize the brightness and colors of a scene I'm watching (may not work when using hardware decoding):

    n vf toggle normalize=smoothing=100
Or rotate a video:

    Ctrl+r no-osd cycle-values video-rotate "90" "180" "270" "0"
[1] <https://github.com/occivink/mpv-scripts>
replies(2): >>41277633 #>>41277800 #
2. sweeter ◴[] No.41277633[source]
it also has a robust Lua scripting interface. I made a tool in Golang and Lua that allows Mpv to treat torrent files and magnet links as if they were http links. You can then stream a torrent directly.

People also don't realize that mpv not only has the ability to stream youtube videos but you can also search youtube on the CLI using mpv `mpv ytdl://ytsearch:query`

it can also play videos directly in the terminal using ascii, sixel or kitty image protocol (which is by far the highest quality)

replies(4): >>41277651 #>>41277666 #>>41278396 #>>41280517 #
3. abhishekjha ◴[] No.41277651[source]
Do you have an example?
replies(1): >>41277770 #
4. Bluestein ◴[] No.41277666[source]
> I made a tool in Golang and Lua that allows Mpv to treat torrent files and magnet links as if they were http links. You can then stream a torrent directly.

Increíble. Consider putting this up somewhere folks can find it.-

> it can also play videos directly in the terminal using ascii

Beats Star Wars over telnet :)

5. ftk_ ◴[] No.41277770{3}[source]
Not OP but also wrote a similar thing for mpv.

https://github.com/ftk/mpv-confluence/tree/torrserver

6. Madeindjs ◴[] No.41277800[source]
I personally use MPV to play my music libraries containing mainly FLAC file and I wrote a plugin [1] using JS to send my listens to listenbrainz.org . It's damn simple, but it worked for the past few months!

[1]: https://gist.github.com/madeindjs/f33225cf4d8fdc9f61e0fe3ebe...

7. 369548684892826 ◴[] No.41278396[source]
There are lua hooks for play/pause/stop which is great for dimming room lights when the video starts.
8. tvshtr ◴[] No.41280517[source]
it's crazy what you can do with its plugin scripts. MPV Android also supports them. I wrote one which turns off keyboard backlight and maxes brightness for HDR.

Also I'm using it to stream from Gerbera and to sync progress seamlessly between phone and PC.