Difference between pages "Package:Mpv" and "Package:Layman"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
 
m
 
Line 1: Line 1:
{{Ebuild
{{Ebuild
|Summary=Video player based on MPlayer/mplayer2.
|Summary=Tool to manage Gentoo overlays
|CatPkg=media-video/mpv
|CatPkg=app-portage/layman
|Maintainer=Oleg
|Homepage=http://layman.sourceforge.net/
|Homepage=http://mpv.io/
}}
}}
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].
Layman is an "overlay" external repository management tool.
Currently there is only mpv version 0.6.1 availabe 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.
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] }}
==Installation==
<console>
###i##  emerge media-video/mpv
</console>
==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:
{{File|name=~/.mpv/config|body=
# Save the video position on quit
save-position-on-quit


# Use the vdpau driver for hardware decoding (for nvidia cards)
=== Installation ===
hwdec=vdpau
<console>###i## emerge layman</console>
[[make.conf]] must source laymans overlays for emerge to pull in packages from external sources.  This line needs to be below everything else in make.conf.
<console>###i## echo "source /var/lib/layman/make.conf" >> /etc/portage/make.conf</console>


# Video output driver. A list can be displayed via: mpv -vo=help
=== Using Layman ===
vo=opengl
Fetch, and display a list of overlays:
<console>###i## layman -L</console>
 
Add an overlay to your system:
<console>###i## layman -a <overlay name></console>
 
Delete an overlay from your system:
<console>###i## layman -d <overlay name></console>
 
==== Masking Overlay Packages ====
Overlays have the power to override distro packages.  To avoid conflicts, mask everything in the overlay, and unmask the packages that are necessary to your system.
 
{{file|name=/etc/portage/package.mask|lang=|desc=mask all packages in an overlay|body=
*/*::overlay-name
}}
}}
The config file is completely optional, but mpv is highly customizable. It is suggested that you  take a look at the man page:
 
<console>
{{file|name=/etc/portage/package.unmask|lang=|desc=unmask packages to be used|body=
###i##  man mpv
cat-egory/pack-age1
</console>
cat-egory/pack-age2
==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:
{{File|name=~/.mpv/input.conf|body=
n playlist_next
p playlist_prev
}}
}}
The man page provides information about all possible bindings.
 
==== Sync ====
 
Sync a specific overlays ebuilds:
<console>###i## layman -s <overlay name></console>
 
Sync all overlays:
<console>###i## layman -S</console>
 
Sync all overlays via eix:
<console>###i## eix-sync</console>
 
=== Troubleshooting ===
Problem:
Warning: an installed db file was not found at: ['/var/lib/layman/cache***.xml']
 
Solution:
<console>###i## layman -L</console>
 
{{EbuildFooter}}
{{EbuildFooter}}

Revision as of 12:00, February 3, 2015

Layman

   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.

Layman is an "overlay" external repository management tool.

Installation

root # emerge layman

make.conf must source laymans overlays for emerge to pull in packages from external sources. This line needs to be below everything else in make.conf.

root # echo "source /var/lib/layman/make.conf" >> /etc/portage/make.conf

Using Layman

Fetch, and display a list of overlays:

root # layman -L

Add an overlay to your system:

root # layman -a <overlay name>

Delete an overlay from your system:

root # layman -d <overlay name>

Masking Overlay Packages

Overlays have the power to override distro packages. To avoid conflicts, mask everything in the overlay, and unmask the packages that are necessary to your system.

   /etc/portage/package.mask - mask all packages in an overlay
*/*::overlay-name
   /etc/portage/package.unmask - unmask packages to be used
cat-egory/pack-age1
cat-egory/pack-age2

Sync

Sync a specific overlays ebuilds:

root # layman -s <overlay name>

Sync all overlays:

root # layman -S

Sync all overlays via eix:

root # eix-sync

Troubleshooting

Problem: Warning: an installed db file was not found at: ['/var/lib/layman/cache***.xml']

Solution:

root # layman -L