build: install encoding-profiles.conf into the system data directory
fd4e3af740 originally started installing
it, and we've been doing it ever since then. The value of having all of
these encoding profiles predefined by default is pretty dubious since a
lot of them are pretty old ('MP4 for Nokia N900' being a shining
example) and mpv is not really a good encoding tool anyways. Let's treat
it like the other conf files in etc and install it in the data directory
for reference. If someone really uses these, they can copy the file over
locally to their mpv config directory and it'll still work fine.
This commit is contained in:
1 parent
329c5294aa
commit
08d7d049d1
4 files changed
+8
-13
No files matched your search
+3
-6
@@ -97,12 +97,9 @@ Device targets
|
|||||||
As the options for various devices can get complex, profiles can be used.
|
As the options for various devices can get complex, profiles can be used.
|
||||||
|
|
||||||
An example profile file for encoding is provided in
|
An example profile file for encoding is provided in
|
||||||
etc/encoding-profiles.conf in the source tree. This file is installed and loaded
|
etc/encoding-profiles.conf in the source tree. mpv will read any file
|
||||||
by default. If you want to modify it, you can replace and it with your own copy
|
named ``encoding-profiles.conf`` in either the local or system
|
||||||
by doing::
|
configuration directories.
|
||||||
|
|
||||||
mkdir -p ~/.mpv
|
|
||||||
cp /etc/mpv/encoding-profiles.conf ~/.mpv/encoding-profiles.conf
|
|
||||||
|
|
||||||
Keep in mind that the default profile is the playback one. If you want to add
|
Keep in mind that the default profile is the playback one. If you want to add
|
||||||
options that apply only in encoding mode, put them into a ``[encoding]``
|
options that apply only in encoding mode, put them into a ``[encoding]``
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
`encoding-profiles.conf` is no longer installed by default into the system configuration directory and is instead installed in the data directory
|
||||||
@@ -6,10 +6,9 @@
|
|||||||
# encoding profile file #
|
# encoding profile file #
|
||||||
#########################
|
#########################
|
||||||
#
|
#
|
||||||
# Note: by default, this file is installed to /etc/mpv/encoding-profiles.conf
|
# Note: This file contains predefined encoding-related profiles that were
|
||||||
# (or a different location, depending on --prefix). mpv will load it by
|
# installed and loaded by default in old versions of mpv. Consider this a
|
||||||
# default on program start. If ~/.mpv/encoding-profiles.conf exists, this file
|
# historical reference.
|
||||||
# will be loaded instead.
|
|
||||||
#
|
#
|
||||||
# Then, list all profiles by
|
# Then, list all profiles by
|
||||||
# mpv --profile=help | grep enc-
|
# mpv --profile=help | grep enc-
|
||||||
|
|||||||
+1
-3
@@ -1781,9 +1781,8 @@ endif
|
|||||||
|
|
||||||
if get_option('cplayer')
|
if get_option('cplayer')
|
||||||
datadir = get_option('datadir')
|
datadir = get_option('datadir')
|
||||||
confdir = get_option('sysconfdir')
|
|
||||||
|
|
||||||
conf_files = ['etc/mpv.conf', 'etc/input.conf',
|
conf_files = ['etc/mpv.conf', 'etc/encoding-profiles.conf', 'etc/input.conf',
|
||||||
'etc/mplayer-input.conf', 'etc/restore-old-bindings.conf',
|
'etc/mplayer-input.conf', 'etc/restore-old-bindings.conf',
|
||||||
'etc/restore-osc-bindings.conf']
|
'etc/restore-osc-bindings.conf']
|
||||||
install_data(conf_files, install_dir: join_paths(datadir, 'doc', 'mpv'))
|
install_data(conf_files, install_dir: join_paths(datadir, 'doc', 'mpv'))
|
||||||
@@ -1798,7 +1797,6 @@ if get_option('cplayer')
|
|||||||
install_data('etc/mpv.fish', install_dir: fish_install_dir, rename: 'mpv.fish')
|
install_data('etc/mpv.fish', install_dir: fish_install_dir, rename: 'mpv.fish')
|
||||||
|
|
||||||
install_data('etc/mpv.metainfo.xml', install_dir: join_paths(datadir, 'metainfo'))
|
install_data('etc/mpv.metainfo.xml', install_dir: join_paths(datadir, 'metainfo'))
|
||||||
install_data('etc/encoding-profiles.conf', install_dir: join_paths(confdir, 'mpv'))
|
|
||||||
|
|
||||||
foreach size: ['16x16', '32x32', '64x64', '128x128']
|
foreach size: ['16x16', '32x32', '64x64', '128x128']
|
||||||
icon_dir = join_paths(datadir, 'icons', 'hicolor', size, 'apps')
|
icon_dir = join_paths(datadir, 'icons', 'hicolor', size, 'apps')
|
||||||
|
|||||||
Reference in new issue
Block a user