Note:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Package:Mpv"

From Funtoo
Jump to navigation Jump to search
(Corrected some typos, updated the config file paths to reflect the changes made to mpv.)
Line 6: Line 6:
}}
}}
mpv is a fork of mplayer2, to learn more about the differences take a look at their [https://github.com/mpv-player/mpv/blob/master/DOCS/man/changes.rst docs].
mpv is a fork of mplayer2, to learn more about the differences take a look at their [https://github.com/mpv-player/mpv/blob/master/DOCS/man/changes.rst docs].
Currently there is only mpv version 0.6.1 availabe in Funtoo
Currently there is the version 0.11 available in Funtoo.
{{fancynote|Read the [https://github.com/mpv-player/mpv/wiki/FFmpeg-versus-Libav mpv wiki] to understand ffmpeg vs libav especially in regard to mpv.
{{fancynote|Read the [https://github.com/mpv-player/mpv/wiki/FFmpeg-versus-Libav mpv wiki] to understand ffmpeg vs libav especially in regard to mpv.
If you are interested you  might even read the article [http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html The FFmpeg/Libav situation] }}
If you are interested you  might even read the article [http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html The FFmpeg/Libav situation] }}
Line 14: Line 14:
</console>
</console>
==General configuration==
==General configuration==
mpv does not come with a graphical user interface (beside the video display). All settings are placed in a config file, a short example is provided below:
mpv does not come with a graphical user interface (besides the video display). All settings are placed in a config file, a short example is provided below:
{{File|name=~/.mpv/config|body=
{{File|name=~/.config/mpv/mpv.conf|body=
# Save the video position on quit
# Save the video position on quit
save-position-on-quit
save-position-on-quit
Line 31: Line 31:
==Input configuration==
==Input configuration==
You may create a separate file called ''input.conf'' for customizing the shortcuts for mpv. The example below binds the key "n" to skip to the next video in the current playlist and the key "p" to skip to the previous video:
You may create a separate file called ''input.conf'' for customizing the shortcuts for mpv. The example below binds the key "n" to skip to the next video in the current playlist and the key "p" to skip to the previous video:
{{File|name=~/.mpv/input.conf|body=
{{File|name=~/.config/mpv/input.conf|body=
n playlist_next
n playlist_next
p playlist_prev
p playlist_prev

Revision as of 23:46, December 28, 2015

Mpv

   Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

mpv is a fork of mplayer2, to learn more about the differences take a look at their docs. Currently there is the version 0.11 available in Funtoo.

   Note

Read the mpv wiki to understand ffmpeg vs libav especially in regard to mpv. If you are interested you might even read the article The FFmpeg/Libav situation

Installation

root #  emerge media-video/mpv

General configuration

mpv does not come with a graphical user interface (besides the video display). All settings are placed in a config file, a short example is provided below:

   ~/.config/mpv/mpv.conf
# Save the video position on quit
save-position-on-quit

# Use the vdpau driver for hardware decoding (for nvidia cards)
hwdec=vdpau

# Video output driver. A list can be displayed via: mpv -vo=help
vo=opengl

The config file is completely optional, but mpv is highly customizable. It is suggested that you take a look at the man page:

root #  man mpv

Input configuration

You may create a separate file called input.conf for customizing the shortcuts for mpv. The example below binds the key "n" to skip to the next video in the current playlist and the key "p" to skip to the previous video:

   ~/.config/mpv/input.conf
n playlist_next
p playlist_prev

The man page provides information about all possible bindings.