-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Добавлено статья по MPV с описанием выхода из возможных проблем
- Loading branch information
1 parent
86035ec
commit eaf9c1b
Showing
3 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
# MPV | ||
|
||
MPV — Свободный легковесный кроссплатформенный медиаплеер. Поддерживает множество форматов медиафайлов и субтитров. | ||
|
||
![Draw attention to the window](/mpv/mpv.png) | ||
|
||
|
||
## Установка из репозитория | ||
|
||
**MPV** можно установить через терминал: | ||
|
||
::: code-group | ||
|
||
```shell[apt-get] | ||
su - | ||
apt-get update | ||
apt-get install mpv | ||
``` | ||
|
||
```shell[epm] | ||
epm -i mpv | ||
``` | ||
::: | ||
|
||
## Проблемы с замедлением видео | ||
|
||
При просмотре некоторых видео, особенно 4к, возможно замедление видеопотока, при этом звуковая дорожка идет без опозданий. Для выхода из этой ситуации существует два варианта. | ||
|
||
1. Использование профиля fast, для этого в терминале видео необходимо запустить с использование профиля fast | ||
|
||
```shell | ||
mpv --profile=fast video.mp4 | ||
``` | ||
|
||
2. Использование аппаратного декодирования. Для этого в фале настроек **mpv.conf** необходимо прописать **hwdec** и **vo** | ||
|
||
Для сессии X.org рекомендуется | ||
|
||
``` | ||
hwdec=vaapi | ||
vo=gpu-next | ||
``` | ||
|
||
Для сессии Wayland рекомендуется | ||
|
||
``` | ||
hwdec=vaapi | ||
vo=dmabuf-wayland | ||
``` | ||
|
||
## Проблемы с "потуханием" экрана при просмотре видео | ||
|
||
Для решения это проблемы существует два решения: | ||
|
||
1. В сессии X.org должно быть достаточно добавления одной опции в **mpv.conf** | ||
|
||
``` | ||
stop-screensaver | ||
``` | ||
|
||
В сессии Wayland сложнее, учитывая что MPV не совсем поддерживает wayland, то вышеописанная опция работать не будет. | ||
Видео нужно запускать с учетом **gnome-session-inhibit** | ||
|
||
```shell | ||
gnome-session-inhibit mpv video.mp4 | ||
``` | ||
|
||
Для этого можно прямо указать, как написано выше, либо заходим в **/usr/share/applications/mpv.desktop** и после **Exec=** перед **mpv** пишем **gnome-session-inhibit** | ||
|
||
2. Более простое решение | ||
|
||
:::info | ||
Ниже вариант предпочтительный | ||
::: | ||
|
||
Устанавливаем расширение для Gnome - Caffeine | ||
|
||
::: code-group | ||
|
||
```shell[apt-get] | ||
su - | ||
apt-get update | ||
apt-get install gnome-shell-extension-caffeine | ||
``` | ||
|
||
```shell[epm] | ||
epm -i gnome-shell-extension-caffeine | ||
``` | ||
|
||
Затем нужно перезапустить сессию и не забыть включить Caffeine |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.