From 77f273bc66b5fd975686b699bb72b6dea1c23624 Mon Sep 17 00:00:00 2001 From: tiyn Date: Sat, 6 Apr 2024 17:55:22 +0200 Subject: [PATCH] video: added mpv --- wiki/jellyfin.md | 2 +- wiki/mpv.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ wiki/video.md | 6 +++++- 3 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 wiki/mpv.md diff --git a/wiki/jellyfin.md b/wiki/jellyfin.md index 8d3fba8..e96e78a 100644 --- a/wiki/jellyfin.md +++ b/wiki/jellyfin.md @@ -11,7 +11,7 @@ The software can be setup via [Docker](/wiki/docker.md) with the ## Usage -This section addresses various features of invidious. +This section addresses various features of Jellyfin. ### Live TV and DVR diff --git a/wiki/mpv.md b/wiki/mpv.md new file mode 100644 index 0000000..e82525c --- /dev/null +++ b/wiki/mpv.md @@ -0,0 +1,47 @@ +# mpv + +[mpv](https://mpv.io/) is a cross-platform command line video player. +It is mainly used for [movies and tv shows](/wiki/video.md) but can handle any kind of local or +remote video file. + +## Setup + +On most [Linux](/wiki/linux.md) distributions mpv can be installed with the `mpv` package. +Alternatively and for [Windows](/wiki/windows.md) it can be installed via +[GitHub](https://github.com/mpv-player/mpv). + +## Usage + +This section addresses various features of mpv. + +### Enable Previews + +Using the [mpv thumbnail script](https://github.com/TheAMM/mpv_thumbnail_script) a preview can be +added to mpv. +This section will describe the Linux-way to install this feature. +It is also available in a similar way for MacOS and Windows. + +The scripts need to be compiled freshly to ensure they're working with the current mpv version. +Then they will be added to the corresponding folder of the mpv settings. + +```sh +git clone https://github.com/TheAMM/mpv_thumbnail_script +cd mpv_thumbnail_script +make +cp mpv_thumbnail_script_client_osc.lua mpv_thumbnail_script_server.lua ~/.config/mpv/scripts +``` + +Afterwards create the file `~/.config/mpv/script-opts/mpv_thumbnail_script.conf` with the following +text. + +```txt +autogenerate=yes +autogenerate_max_duration=14400 +mpv_no_sub=yes +``` + +And finally add the following lines to the file `~/.config/mpv/mpv.conf` + +```txt +osc=no +``` diff --git a/wiki/video.md b/wiki/video.md index e9c539c..a5323ef 100644 --- a/wiki/video.md +++ b/wiki/video.md @@ -11,7 +11,7 @@ your needs. In general you need to consider if you want the video directly on your pc or access a server for it. -## Server/Client +## Players If you want to keep your system clean of much data, you can use this kind of setup. There are differences depending on your preffered client interface. @@ -19,6 +19,10 @@ There are differences depending on your preffered client interface. - [Plex](https://www.plex.tv) is a dockerizable media streaming service with web-interface. - [Jellyfin](./jellyfin.md) is a foss dockerizable media streaming service with web-interface. +For local video files a simple video player can be used. + +- [mpv](./mpv.md) is a cross-platform command line video player. + ## Scan DVDs/Blu-Rays You can convert your DVDs and Blu-Rays to files on your computer.