2012-10-11 00:04:08 +00:00
|
|
|
mpv is a fork of mplayer2, which is a fork of MPlayer.
|
|
|
|
|
2013-10-12 23:18:50 +00:00
|
|
|
mpv as a whole is licensed as GPL version 2 or later (see LICENSE). Most source
|
|
|
|
files are GPLv2+, but some files are available under a more liberal license,
|
2015-07-24 21:53:31 +00:00
|
|
|
such as LGPLv2.1+, BSD, MIT, ISC, and possibly others. Look at the copyright
|
2013-10-12 23:18:50 +00:00
|
|
|
header of each source file, and grep the sources for "Copyright" if you need
|
2017-02-16 10:43:02 +00:00
|
|
|
to know details. C source files without Copyright notice are licensed as
|
|
|
|
LGPLv2.1+. Also see the list of files with specific licenses below (not all
|
|
|
|
files can have a standard license header).
|
2015-07-24 21:53:31 +00:00
|
|
|
|
|
|
|
All new contributions must be LGPLv2.1+ licensed, or if the changes are done on
|
|
|
|
GPL code, must come with the implicit agreement that the project can relicense
|
|
|
|
the code to LGPLv2.1+ at a later point without asking the contributor. (This
|
2017-09-21 11:50:18 +00:00
|
|
|
is a safeguard for making potential relicensing of remaining code to LGPLv2.1+
|
2015-07-26 18:23:41 +00:00
|
|
|
easier.) Using a more liberal license compatible to LGPLv2.1+ is also ok.
|
2003-12-09 08:35:55 +00:00
|
|
|
|
2013-10-12 23:18:50 +00:00
|
|
|
For information about authors and contributors, consult the git log, which
|
|
|
|
contains the complete SVN and CVS history as well.
|
2010-01-04 13:01:44 +00:00
|
|
|
|
2013-10-12 23:18:50 +00:00
|
|
|
Note that mplayer2 as a whole is licensed under GPLv3+. This is because it uses
|
|
|
|
a copy of talloc (part of Samba), which is LGPLv3+, and the next compatible
|
|
|
|
license for this mix is GPLv3+.
|
2003-12-09 08:35:55 +00:00
|
|
|
|
2013-10-12 23:18:50 +00:00
|
|
|
MPlayer as a whole is licensed under GPLv2 (incompatible to GPLv3!), because
|
|
|
|
some files are licensed to GPLv2 (and _not_ any later version of the license).
|
|
|
|
In particular, this affects the file libmpdemux/demux_ty_osd.c. It is disabled
|
|
|
|
under mplayer2, and has been removed from mpv.
|
2015-07-24 21:53:31 +00:00
|
|
|
|
|
|
|
"v2.1+" in this context means "version 2.1 or later".
|
2017-02-16 10:43:02 +00:00
|
|
|
|
2017-05-11 06:12:14 +00:00
|
|
|
Some libraries are GPLv2+ or GPLv3+ only. Building mpv with Samba support makes
|
|
|
|
it GPLv3+.
|
|
|
|
|
2017-10-05 13:54:10 +00:00
|
|
|
mpv can be built as LGPLv2.1+ with the --enable-preliminary-lgpl2 configure
|
2017-09-21 11:50:18 +00:00
|
|
|
option. This is a very new switch and it hasn't been confirmed yet whether
|
|
|
|
really all GPL code is excluded (thus preliminary). In addition, it disables
|
|
|
|
a number of useful features, some of them quite central:
|
|
|
|
- no audio filtering, which breaks: --volume, --af, replaygain, pitch
|
|
|
|
correction, fine control about downmix/upmix/resampling behavior
|
|
|
|
- Linux X11 video output
|
|
|
|
- Linux audio output via ALSA (PulseAudio works)
|
|
|
|
- BSD audio output via OSS
|
vaapi: change license to LGPL
Originally mpv vaapi support was based on the MPlayer-vaapi patches.
These were never merged in upstream MPlayer. The license headers
indicated they were GPL-only. Although the actual author agreed to
relicensing, the company employing him to write this code did not, so
the original code is unusable to us.
Fortunately, vaapi support was refactored and rewritten several times,
meaning little code is actually left. The previous commits removed or
moved that to GPL-only code. Namely, vo_vaapi.c remains GPL-only. The
other code went away or became unnecessary mainly because libavcodec
itself gained the ability to manage the hw decoder, and libavutil
provides code to manage vaapi surfaces. We also changed to mainly using
EGL interop, making any of the old rendering code unnecessary.
hwdec_vaglx.c is still GPL. It's possibly relicensable, because much of
it was changed, but I'm not too sure and further investigation would be
required. Also, this has been disabled by default for a while now, so
bothering with this is a waste of time. This commit simply disables it
at compile time as well in LGPL mode.
2017-09-29 16:44:47 +00:00
|
|
|
- NVIDIA/Linux hardware decoding (vdpau, although CUDA usually works)
|
2017-09-21 11:50:18 +00:00
|
|
|
- many builtin video filters (use libavfilter instead)
|
|
|
|
- automatic rotation and stereoscopic video handling
|
|
|
|
- Linux TV input
|
|
|
|
- the --frames option
|
|
|
|
- the add/cycle and sub-add/audio-add/sub-remove/audio-remove commands
|
|
|
|
- video format conversion (if not supported by the VO)
|
|
|
|
- minor features: jack, DVD, CDDA, SMB, CACA, legacy direct3d VO
|
|
|
|
Some of these will be fixed in the future. The lack of the add/cycle commands
|
|
|
|
makes this particularly useless for CLI mode, and most of the appeal of LGPL
|
|
|
|
is for libmpv anyway. Thus it's not recommended to build mpv CLI in LGPL mode
|
|
|
|
at all.
|
|
|
|
|
2017-02-16 10:43:02 +00:00
|
|
|
Source files with specific licenses:
|
Copyright: small updates
The I binding was removed from input.conf (although it's probably not
copyrightable, but still).
bootstrap.py has a bunch of authors which probably make the licensing
situation a pain - but it's not integral part of the build system or the
source code, so it doesn't matter for a LGPL core.
I checked and cleaned up the build system in the last few commits. There
was the possibility that parts of it were based on actual code of the
old "configure" file, in particular with the waftools/fragments/ files
(it turned out some were, some even not covered by LGPL agreements).
This was checked, so I'm confident only the commit mentioned in the
Copyright file holds back proper LGPL licensing of it. (And I guess I
have to wait for a reply.)
I checked the English translations. There used to be help_mp-en.h (or
help_mp.h earlier), which was part of the source code, and which
contained most terminal and GUI messages. This was done for the purpose
of localization, but all localizations were dropped at one point in
mplayer2 development. At this point, the message defines were moved back
to the source code. (While in the years before that, they were moved
from the source code to the file where applicable.) I didn't check
help_mp-en.h when it was merged back. There was the possibility that
someone might have changed one of the English messages (i.e. added his
copyright to it), which then was copied back to the source code, without
accounting for that copyright. Upon checking the history now, it seems
this didn't happen for any code that we want to relicense to LGPL (in
fact, it happened to some messages in the DVD code only).
2017-06-22 11:12:36 +00:00
|
|
|
- etc/input.conf is LGPLv2.1+
|
2017-06-17 13:08:46 +00:00
|
|
|
- etc/builtin.conf is LGPLv2.1+
|
|
|
|
- etc/encoding-profiles.conf is LGPLv2.1+
|
2017-06-26 11:24:57 +00:00
|
|
|
- all mpv icons and derived files are LGPLv2.1+ (mpv-icon-8bit-16x16.png etc.)
|
2017-06-17 13:08:46 +00:00
|
|
|
- everything else under etc/ is unknown
|
2017-02-16 10:43:02 +00:00
|
|
|
- everything under DOCS/man/ is GPLv2+
|
2017-04-21 11:37:33 +00:00
|
|
|
- sub/osd_font.otf is LGPLv2.1+
|
2017-06-17 12:25:40 +00:00
|
|
|
- version.sh is LGPLv2+
|
Copyright: small updates
The I binding was removed from input.conf (although it's probably not
copyrightable, but still).
bootstrap.py has a bunch of authors which probably make the licensing
situation a pain - but it's not integral part of the build system or the
source code, so it doesn't matter for a LGPL core.
I checked and cleaned up the build system in the last few commits. There
was the possibility that parts of it were based on actual code of the
old "configure" file, in particular with the waftools/fragments/ files
(it turned out some were, some even not covered by LGPL agreements).
This was checked, so I'm confident only the commit mentioned in the
Copyright file holds back proper LGPL licensing of it. (And I guess I
have to wait for a reply.)
I checked the English translations. There used to be help_mp-en.h (or
help_mp.h earlier), which was part of the source code, and which
contained most terminal and GUI messages. This was done for the purpose
of localization, but all localizations were dropped at one point in
mplayer2 development. At this point, the message defines were moved back
to the source code. (While in the years before that, they were moved
from the source code to the file where applicable.) I didn't check
help_mp-en.h when it was merged back. There was the possibility that
someone might have changed one of the English messages (i.e. added his
copyright to it), which then was copied back to the source code, without
accounting for that copyright. Upon checking the history now, it seems
this didn't happen for any code that we want to relicense to LGPL (in
fact, it happened to some messages in the DVD code only).
2017-06-22 11:12:36 +00:00
|
|
|
- bootstrap.py is unknown (probably GPLv2+ or LGPLv2+)
|
2017-06-29 12:41:11 +00:00
|
|
|
- the build system (wscript, waftools/*) is LGPLv2+, some parts BSD
|
2017-05-05 04:53:23 +00:00
|
|
|
|
2017-09-21 11:50:18 +00:00
|
|
|
The following files are still GPL:
|
2017-05-05 06:38:30 +00:00
|
|
|
|
2017-09-21 11:50:18 +00:00
|
|
|
audio/filter/* will be replaced with new filter chain
|
|
|
|
audio/filter/af_format.c mostly LGPL (except af glue code)
|
|
|
|
audio/filter/af_lavc3enc.c as above
|
|
|
|
audio/filter/af_lavfi.c as above
|
|
|
|
audio/filter/af_scaletempo.c as above
|
|
|
|
audio/filter/af_rubberband.c as above
|
|
|
|
audio/out/ao_alsa.c chaotic history, original author did not decide
|
audio/out: change license of some core files to LGPL
All contributors of the current code have agreed. ao.c requires a
"driver" entry for each audio output - we assume that if someone who
didn't agree to LGPL added a line, it's fine for ao.c to be LGPL
anyway. If the affected audio output is not disabled at compilation
time, the resulting binary will be GPL anyway, and ootherwise the
code is not included.
The audio output code itself was inspired or partially copied from
libao in 7a2eec4b59f4 (thus why MPlayer's audio code is named libao2).
Just to be sure we got permission from Aaron Holtzman, Jack Moffitt, and
Stan Seibert, who according to libao's SVN history and README are the
initial author. (Something similar was done for libvo, although the
commit relicensing it forgot to mention it.)
242aa6ebd40: anders mostly disagreed with the LGPL relicensing, but we
got permission for this particular commit.
0ef8e555735: nick could not be reached, but the include statement was
removed again anyway.
879e05a7c17: iive agreed to LGPL v3+ only, but this line of code was
removed anyway, so ao_null.c can be LGPL v2.1+.
9dd8f241ac2: patch author could not be reached, but the corresponding
code (old slave mode interface) was completely removed later.
2017-05-20 09:35:25 +00:00
|
|
|
audio/out/ao_jack.c will stay GPL
|
2017-05-05 06:38:30 +00:00
|
|
|
audio/out/ao_oss.c will stay GPL
|
2017-09-21 11:50:18 +00:00
|
|
|
audio/audio.* needed by af code only
|
2017-05-05 06:38:30 +00:00
|
|
|
demux/demux_tv.c will stay GPL
|
|
|
|
stream/ai_* will stay GPL (TV code)
|
|
|
|
stream/audio_in.* will stay GPL (TV code)
|
|
|
|
stream/dvb* must stay GPL
|
|
|
|
stream/frequencies.* must stay GPL
|
|
|
|
stream/stream_cdda.c unknown
|
|
|
|
stream/stream_dvb.* must stay GPL
|
|
|
|
stream/stream_dvd.c unknown
|
|
|
|
stream/stream_dvd_common.* unknown
|
|
|
|
stream/stream_dvdnav.c unknown
|
2017-05-11 06:12:14 +00:00
|
|
|
stream/stream_smb.c will stay GPLv3
|
2017-05-05 06:38:30 +00:00
|
|
|
stream/stream_tv.c will stay GPL
|
|
|
|
stream/tv* will stay GPL
|
|
|
|
video/filter/vf_crop.c will be deleted
|
|
|
|
video/filter/vf_dsize.c will be deleted
|
|
|
|
video/filter/vf_expand.c will be deleted
|
|
|
|
video/filter/vf_flip.c will be deleted
|
|
|
|
video/filter/vf_format.c will be deleted
|
|
|
|
video/filter/vf_gradfun.c will be deleted
|
|
|
|
video/filter/vf_mirror.c will be deleted
|
|
|
|
video/filter/vf_noformat.c will be deleted
|
|
|
|
video/filter/vf_pullup.c will be deleted
|
|
|
|
video/filter/vf_rotate.c will be deleted
|
|
|
|
video/filter/vf_scale.c will be deleted
|
|
|
|
video/filter/vf_stereo3d.c will be deleted
|
|
|
|
video/filter/vf_sub.c will be deleted
|
|
|
|
video/filter/vf_yadif.c will be deleted
|
af_format: change license to LGPL
This case is a bit weird, because MPlayer certainly also has a file
named af_format.c. Both appear to have the function of converting audio
data between sample formats.
However, mpv's af_format.c is a rewrite, and doesn't actually do
conversion by itself. It's similar to vf_format.c, and forces the
generic filter chain code to insert conversion filters, instead of doing
conversion explicitly.
mpv's current af_format.c started out as af_force.c in d9582ad0a41. It
was renamed to af_format.c in e60b8f181d, while the old af_format.c was
split into two new filters. In 943c785619 the filename was changed to
af_format.c as well.
The new af_format.c does not contain any libaf code, except for some
potentially copy & pasted skeleton and boilerplate code. (We don't
account for this in per-filter file licenses, as the old libaf code
has to be removed fully, at which point the filters will have to be
ported to another framework, which will removed that boilerplate code.)
The old filters based on af_format.c were progressively replaced and
removed. Support for non-native endian and formats with signedness
different from native FFmpeg was completely removed in 831d7c3c400b.
The old 24 bit conversion code was removed in 552dc0d564 (made
unnecessary by 5a9f817bfde8).
Also list hwdec_vaglx.c as GPL-only, which doesn't have anything to do
with this commit.
2017-05-11 09:00:15 +00:00
|
|
|
video/out/opengl/hwdec_vaglx.c GPL
|
2017-05-05 06:38:30 +00:00
|
|
|
video/out/vo_caca.c unknown
|
|
|
|
video/out/vo_direct3d.c unknown
|
|
|
|
video/out/vo_vaapi.c probably impossible (some company's code)
|
|
|
|
video/out/vo_vdpau.c probably impossible (nVidia's code)
|
|
|
|
video/out/vo_x11.c probably impossible
|
|
|
|
video/out/vo_xv.c probably impossible
|
|
|
|
video/out/x11_common.* probably impossible
|
|
|
|
video/vdpau.c hard (GPL-only parts must be ifdefed)
|
|
|
|
video/vdpau.h unknown
|
|
|
|
video/vdpau_mixer.* actual code must be rewritten
|
2017-09-21 11:50:18 +00:00
|
|
|
|
|
|
|
The following files contain some optional GPL code:
|
|
|
|
|
|
|
|
input/cmd_list.c potentially some commands
|
|
|
|
demux/demux_mkv.c some verbose message
|
|
|
|
options/options.c --frames option
|
|
|
|
options/parse_commandline.c dvd:// expansion
|
|
|
|
player/audio.c libaf glue code
|
|
|
|
player/loadfile.c --frames option (minor but probably fatal)
|
|
|
|
player/osd.c OSD level 3
|
2017-10-05 13:54:10 +00:00
|
|
|
player/command.c add/cycle command, possibly sub-add command
|