2008-06-17 11:40:04 +00:00
# MPlayer Makefile
#
# copyright (c) 2008 Diego Biurrun
# Rewritten entirely from a set of Makefiles written by Arpi and many others.
#
# This file is part of MPlayer.
#
# MPlayer is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# MPlayer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with MPlayer; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
2001-02-24 20:28:24 +00:00
i n c l u d e c o n f i g . m a k
2008-05-09 17:51:44 +00:00
###### variable declarations #######
2012-02-27 14:29:21 +00:00
SRCS_AUDIO_INPUT-$(ALSA) += stream/ai_alsa1x.c
2009-04-20 13:51:47 +00:00
SRCS_AUDIO_INPUT-$(OSS) += stream/ai_oss.c
SRCS_COMMON-$(AUDIO_INPUT) += $( SRCS_AUDIO_INPUT-yes)
2008-04-24 13:38:12 +00:00
SRCS_COMMON-$(CDDA) += stream/stream_cdda.c \
stream/cdinfo.c
SRCS_COMMON-$(CDDB) += stream/stream_cddb.c
SRCS_COMMON-$(DVBIN) += stream/dvb_tune.c \
stream/stream_dvb.c
SRCS_COMMON-$(DVDREAD) += stream/stream_dvd.c \
stream/stream_dvd_common.c
2008-04-25 08:25:17 +00:00
2010-10-31 00:19:56 +00:00
SRCS_COMMON-$(FTP) += stream/stream_ftp.c
SRCS_COMMON-$(GIF) += libmpdemux/demux_gif.c
SRCS_COMMON-$(HAVE_SYS_MMAN_H) += libaf/af_export.c osdep/mmap_anon.c
SRCS_COMMON-$(LADSPA) += libaf/af_ladspa.c
2011-01-26 17:40:52 +00:00
SRCS_COMMON-$(LIBASS) += libmpcodecs/vf_ass.c \
sub/ass_mp.c \
2011-01-16 18:03:08 +00:00
sub/sd_ass.c \
2009-11-17 16:09:17 +00:00
2010-07-05 17:04:46 +00:00
SRCS_COMMON-$(LIBBLURAY) += stream/stream_bluray.c
2009-04-02 19:01:57 +00:00
SRCS_COMMON-$(LIBBS2B) += libaf/af_bs2b.c
2009-04-20 13:51:47 +00:00
2012-02-27 16:18:49 +00:00
SRCS_COMMON-$(LIBPOSTPROC) += libmpcodecs/vf_pp.c
2008-04-24 13:38:12 +00:00
SRCS_COMMON-$(LIBSMBCLIENT) += stream/stream_smb.c
2010-05-30 12:37:34 +00:00
2012-01-11 21:29:06 +00:00
SRCS_COMMON-$(MACOSX_FINDER) += osdep/macosx_finder_args.m
2012-04-16 07:26:10 +00:00
SRCS_COMMON-$(COCOA) += libvo/osx_common.c \
libvo/cocoa_common.m \
osdep/cocoa_events.m
2008-11-30 13:22:34 +00:00
SRCS_COMMON-$(MNG) += libmpdemux/demux_mng.c
2010-06-30 09:55:14 +00:00
SRCS_COMMON-$(MPG123) += libmpcodecs/ad_mpg123.c
2009-04-20 13:52:14 +00:00
2008-04-08 18:25:30 +00:00
SRCS_COMMON-$(NEED_GETTIMEOFDAY) += osdep/gettimeofday.c
SRCS_COMMON-$(NEED_GLOB) += osdep/glob-win.c
SRCS_COMMON-$(NEED_SETENV) += osdep/setenv.c
SRCS_COMMON-$(NEED_SHMEM) += osdep/shmem.c
SRCS_COMMON-$(NEED_STRSEP) += osdep/strsep.c
SRCS_COMMON-$(NEED_VSSCANF) += osdep/vsscanf.c
2010-07-17 13:14:53 +00:00
SRCS_COMMON-$(NETWORKING) += stream/stream_netstream.c \
2008-04-24 13:38:12 +00:00
stream/asf_mmst_streaming.c \
stream/asf_streaming.c \
stream/cookies.c \
stream/http.c \
stream/network.c \
stream/udp.c \
stream/tcp.c \
stream/stream_udp.c \
2009-02-10 15:34:44 +00:00
SRCS_COMMON-$(PRIORITY) += osdep/priority.c
2008-04-24 13:38:12 +00:00
SRCS_COMMON-$(PVR) += stream/stream_pvr.c
SRCS_COMMON-$(RADIO) += stream/stream_radio.c
SRCS_COMMON-$(RADIO_CAPTURE) += stream/audio_in.c
SRCS_COMMON-$(STREAM_CACHE) += stream/cache2.c
2008-04-24 22:05:43 +00:00
2008-04-24 13:38:12 +00:00
SRCS_COMMON-$(TV) += stream/stream_tv.c stream/tv.c \
stream/frequencies.c stream/tvi_dummy.c
SRCS_COMMON-$(TV_BSDBT848) += stream/tvi_bsdbt848.c
2009-12-09 17:52:18 +00:00
2008-04-24 13:38:12 +00:00
SRCS_COMMON-$(TV_V4L2) += stream/tvi_v4l2.c stream/audio_in.c
SRCS_COMMON-$(VCD) += stream/stream_vcd.c
SRCS_COMMON-$(VSTREAM) += stream/stream_vstream.c
osd: use libass for OSD rendering
The OSD will now be rendered with libass. The old rendering code, which
used freetype/fontconfig and did text layout manually, is disabled. To
re-enable the old code, use the --disable-libass-osd configure switch.
Some switches do nothing with the new code enabled, such as -subalign,
-sub-bg-alpha, -sub-bg-color, and many more. (The reason is mostly that
the code for rendering unstyled subtitles with libass doesn't make any
attempts to support them. Some of them could be supported in theory.)
Teletext rendering is not implemented in the new OSD rendering code. I
don't have any teletext sources for testing, and since teletext is
being phased out world-wide, the need for this is questionable.
Note that rendering is extremely inefficient, mostly because the libass
output is blended with the extremely strange mplayer OSD format. This
could be improved at a later point.
Remove most OSD rendering from vo_aa.c, because that was extremely
hacky, can't be made work with osd_libass, and didn't work anyway in
my tests.
Internally, some cleanup is done. Subtitle and OSD related variable
declarations were literally all over the place. Move them to sub.h and
sub.c, which were hoarding most of these declarations already. Make the
player core in mplayer.c free of concerns like bitmap font loading.
The old OSD rendering code has been moved to osd_ft.c. The font_load.c
and font_load_ft.c are only needed and compiled if the old OSD
rendering code is configured.
2012-03-22 05:26:37 +00:00
2012-07-28 20:00:31 +00:00
SRCS_COMMON-$(DUMMY_OSD) += sub/osd_dummy.c
osd: use libass for OSD rendering
The OSD will now be rendered with libass. The old rendering code, which
used freetype/fontconfig and did text layout manually, is disabled. To
re-enable the old code, use the --disable-libass-osd configure switch.
Some switches do nothing with the new code enabled, such as -subalign,
-sub-bg-alpha, -sub-bg-color, and many more. (The reason is mostly that
the code for rendering unstyled subtitles with libass doesn't make any
attempts to support them. Some of them could be supported in theory.)
Teletext rendering is not implemented in the new OSD rendering code. I
don't have any teletext sources for testing, and since teletext is
being phased out world-wide, the need for this is questionable.
Note that rendering is extremely inefficient, mostly because the libass
output is blended with the extremely strange mplayer OSD format. This
could be improved at a later point.
Remove most OSD rendering from vo_aa.c, because that was extremely
hacky, can't be made work with osd_libass, and didn't work anyway in
my tests.
Internally, some cleanup is done. Subtitle and OSD related variable
declarations were literally all over the place. Move them to sub.h and
sub.c, which were hoarding most of these declarations already. Make the
player core in mplayer.c free of concerns like bitmap font loading.
The old OSD rendering code has been moved to osd_ft.c. The font_load.c
and font_load_ft.c are only needed and compiled if the old OSD
rendering code is configured.
2012-03-22 05:26:37 +00:00
SRCS_COMMON-$(LIBASS_OSD) += sub/osd_libass.c
2009-04-20 14:02:40 +00:00
SRCS_COMMON = asxparser.c \
2009-10-31 21:03:48 +00:00
av_log.c \
2011-12-11 05:48:26 +00:00
av_opts.c \
2010-05-20 20:50:18 +00:00
bstr.c \
2009-04-20 14:02:40 +00:00
codec-cfg.c \
cpudetect.c \
2009-05-08 20:50:26 +00:00
defaultopts.c \
2009-04-20 14:02:40 +00:00
fmt-conversion.c \
m_config.c \
m_option.c \
m_struct.c \
2010-03-09 17:10:06 +00:00
mp_msg.c \
2009-04-20 14:02:40 +00:00
mpcommon.c \
2012-09-01 19:32:03 +00:00
version.c \
2009-04-20 14:02:40 +00:00
parser-cfg.c \
2010-03-20 23:38:27 +00:00
path.c \
mplayer: turn playtree into a list, and change per-file option handling
Summary:
- There is no playtree anymore. It's reduced to a simple list.
- Options are now always global. You can still have per-file options,
but these are optional and require special syntax.
- The slave command pt_step has been removed, and playlist_next
and playlist_prev added. (See etc/input.conf changes.)
This is a user visible incompatible change, and will break slave-mode
applications.
- The pt_clear slave command is renamed to playlist_clear.
- Playtree entries could have multiple files. This is not the case
anymore, and playlist entries have always exactly one entry. Whenever
something adds more than one file (like ASX playlists or dvd:// or
dvdnav:// on the command line), all files are added as separate
playlist entries.
Note that some of the changes are quite deep and violent. Expect
regressions.
The playlist parsing code in particular is of low quality. I didn't try
to improve it, and merely spent to least effort necessary to keep it
somehow working. (Especially ASX playlist handling.)
The playtree code was complicated and bloated. It was also barely used.
Most users don't even know that mplayer manages the playlist as tree,
or how to use it. The most obscure features was probably specifying a
tree on command line (with '{' and '}' to create/close tree nodes). It
filled the player code with complexity and confused users with weird
slave commands like pt_up.
Replace the playtree with a simple flat playlist. Playlist parsers that
actually return trees are changed to append all files to the playlist
pre-order.
It used to be the responsibility of the playtree code to change per-file
config options. Now this is done by the player core, and the playlist
code is free of such details.
Options are not per-file by default anymore. This was a very obscure and
complicated feature that confused even experienced users. Consider the
following command line:
mplayer file1.mkv file2.mkv --no-audio file3.mkv
This will disable the audio for file2.mkv only, because options are
per-file by default. To make the option affect all files, you're
supposed to put it before the first file.
This is bad, because normally you don't need per-file options. They are
very rarely needed, and the only reasonable use cases I can imagine are
use of the encode backend (mplayer encode branch), or for debugging. The
normal use case is made harder, and the feature is perceived as bug.
Even worse, correct usage is hard to explain for users.
Make all options global by default. The position of an option isn't
significant anymore (except for options that compensate each other,
consider --shuffle --no-shuffle).
One other important change is that no options are reset anymore if a
new file is started. If you change settings with slave mode commands,
they will not be changed by playing a new file. (Exceptions include
settings that are too file specific, like audio/subtitle stream
selection.)
There is still some need for per-file options. Debugging and encoding
are use cases that profit from per-file options. Per-file profiles (as
well as per-protocol and per-VO/AO options) need the implementation
related mechanisms to backup and restore options when the playback file
changes.
Simplify the save-slot stuff, which is possible because there is no
hierarchical play tree anymore. Now there's a simple backup field.
Add a way to specify per-file options on command line. Example:
mplayer f1.mkv -o0 --{ -o1 f2.mkv -o2 f3.mkv --} f4.mkv -o3
will have the following options per file set:
f1.mkv, f4.mkv: -o0 -o3
f2.mkv, f3.mkv: -o0 -o3 -o1 -o2
The options --{ and --} start and end per-file options. All files inside
the { } will be affected by the options equally (similar to how global
options and multiple files are handled). When playback of a file starts,
the per-file options are set according to the command line. When
playback ends, the per-file options are restored to the values when
playback started.
2012-07-31 19:33:26 +00:00
playlist.c \
playlist_parser.c \
2009-04-20 14:02:40 +00:00
subopt-helper.c \
2009-05-08 20:50:26 +00:00
talloc.c \
2009-04-20 14:02:40 +00:00
libaf/af.c \
libaf/af_center.c \
libaf/af_channels.c \
libaf/af_delay.c \
libaf/af_dummy.c \
libaf/af_equalizer.c \
libaf/af_extrastereo.c \
libaf/af_format.c \
libaf/af_hrtf.c \
libaf/af_karaoke.c \
2011-12-11 05:48:26 +00:00
libaf/af_lavcac3enc.c \
libaf/af_lavcresample.c \
2009-04-20 14:02:40 +00:00
libaf/af_pan.c \
libaf/af_resample.c \
libaf/af_scaletempo.c \
libaf/af_sinesuppress.c \
libaf/af_sub.c \
libaf/af_surround.c \
libaf/af_sweep.c \
libaf/af_tools.c \
libaf/af_volnorm.c \
libaf/af_volume.c \
libaf/filter.c \
libaf/format.c \
libaf/reorder_ch.c \
libaf/window.c \
libmpcodecs/ad.c \
2011-12-11 05:48:26 +00:00
libmpcodecs/ad_ffmpeg.c \
2012-09-02 17:30:34 +00:00
libmpcodecs/ad_pcm.c \
2012-09-08 10:05:13 +00:00
libmpcodecs/ad_dvdpcm.c \
2011-10-12 17:23:08 +00:00
libmpcodecs/ad_spdif.c \
2009-04-20 14:02:40 +00:00
libmpcodecs/dec_audio.c \
libmpcodecs/dec_video.c \
libmpcodecs/img_format.c \
libmpcodecs/mp_image.c \
libmpcodecs/pullup.c \
libmpcodecs/vd.c \
2011-12-11 05:48:26 +00:00
libmpcodecs/vd_ffmpeg.c \
2009-04-20 14:02:40 +00:00
libmpcodecs/vf.c \
libmpcodecs/vf_crop.c \
libmpcodecs/vf_delogo.c \
libmpcodecs/vf_divtc.c \
2012-08-23 10:32:13 +00:00
libmpcodecs/vf_dlopen.c \
2009-04-20 14:02:40 +00:00
libmpcodecs/vf_down3dright.c \
libmpcodecs/vf_dsize.c \
libmpcodecs/vf_eq2.c \
libmpcodecs/vf_expand.c \
libmpcodecs/vf_flip.c \
libmpcodecs/vf_format.c \
2009-07-07 02:01:36 +00:00
libmpcodecs/vf_gradfun.c \
2009-04-20 14:02:40 +00:00
libmpcodecs/vf_hqdn3d.c \
libmpcodecs/vf_ilpack.c \
libmpcodecs/vf_mirror.c \
libmpcodecs/vf_noformat.c \
libmpcodecs/vf_noise.c \
libmpcodecs/vf_phase.c \
libmpcodecs/vf_pullup.c \
libmpcodecs/vf_rotate.c \
libmpcodecs/vf_scale.c \
2011-12-11 05:48:26 +00:00
libmpcodecs/vf_screenshot.c \
2009-04-20 14:02:40 +00:00
libmpcodecs/vf_softpulldown.c \
2010-10-22 17:46:12 +00:00
libmpcodecs/vf_stereo3d.c \
2009-04-20 14:02:40 +00:00
libmpcodecs/vf_swapuv.c \
libmpcodecs/vf_unsharp.c \
libmpcodecs/vf_vo.c \
libmpcodecs/vf_yadif.c \
libmpdemux/asfheader.c \
libmpdemux/aviheader.c \
libmpdemux/aviprint.c \
libmpdemux/demuxer.c \
libmpdemux/demux_asf.c \
libmpdemux/demux_avi.c \
EDL: add support for new EDL file format
The timeline code previously added to support Matroska ordered
chapters allows constructing a playback timeline from segments picked
from multiple source files. Add support for a new EDL format to make
this machinery available for use with file formats other than Matroska
and in a manner easier to use than creating files with ordered
chapters.
Unlike the old -edl option which specifies an additional file with
edits to apply to the video file given as the main argument, the new
EDL format is used by giving only the EDL file as the file to play;
that file then contains the filename(s) to use as source files where
actual video segments come from. Filename paths in the EDL file are
ignored. Currently the source files are only searched for in the
directory of the EDL file; support for a search path option will
likely be added in the future.
Format of the EDL files
The first line in the file must be "mplayer EDL file, version 2".
The rest of the lines belong to one of these classes:
1) lines specifying source files
2) empty lines
3) lines specifying timeline segments.
Lines beginning with '<' specify source files. These lines first
contain an identifier used to refer to the source file later, then the
filename separated by whitespace. The identifier must start with a
letter. Filenames that start or end with whitespace or contain
newlines are not supported.
On other lines '#' characters delimit comments. Lines that contain
only whitespace after comments have been removed are ignored.
Timeline segments must appear in the file in chronological order. Each
segment has the following information associated with it:
- duration
- output start time
- output end time (= output start time + duration)
- source id (specifies the file the content of the segment comes from)
- source start time (timestamp in the source file)
- source end time (= source start time + duration)
The output timestamps must form a continuous timeline from 0 to the
end of the last segment, such that each new segment starts from the
time the previous one ends at. Source files and times may change
arbitrarily between segments.
The general format for lines specifying timeline segments is
[output time info] source_id [source time info]
source_id must be an identifier defined on a '<' line. Both the time
info parts consists of zero or more of the following elements:
1) timestamp
2) -timestamp
3) +duration
4) *
5) -*
, where "timestamp" and "duration" are decimal numbers (computations
are done with nanosecond precision). Whitespace around "+" and "-" is
optional. 1) and 2) specify start and end time of the segment on
output or source side. 3) specifies duration; the semantics are the
same whether this appears on output or source side. 4) and 5) are
ignored on the output side (they're always implicitly assumed). On the
source side 4) specifies that the segment starts where the previous
segment _using this source_ ended; if there was no previous segment
time 0 is used. 5) specifies that the segment ends where the next
segment using this source starts.
Redundant information may be omitted. It will be filled in using the
following rules:
- output start for first segment is 0
- two of [output start, output end, duration] imply third
- two of [source start, source end, duration] imply third
- output start = output end of previous segment
- output end = output start of next segment
- if "*", source start = source end of earlier segment
- if "-*", source end = source start of a later segment
As a special rule, a last zero-duration segment without a source
specification may appear. This will produce no corresponding segment
in the resulting timeline, but can be used as syntax to specify the
end time of the timeline (with effect equal to adding -time on the
previous line).
Examples:
----- begin -----
mplayer EDL file, version 2
< id1 filename
0 id1 123
100 id1 456
200 id1 789
300
----- end -----
All segments come from the source file "filename". First segment
(output time 0-100) comes from time 123-223, second 456-556, third
789-889.
----- begin -----
mplayer EDL file, version 2
< f filename
f 60-120
f 600-660
f 30- 90
----- end -----
Play first seconds 60-120 from the file, then 600-660, then 30-90.
----- begin -----
mplayer EDL file, version 2
< id1 filename1
< id2 filename2
+10 id1 *
+10 id2 *
+10 id1 *
+10 id2 *
+10 id1 *
+10 id2 *
----- end -----
This plays time 0-10 from filename1, then 0-10 from filename1, then
10-20 from filename1, then 10-20 from filename2, then 20-30 from
filename1, then 20-30 from filename2.
----- begin -----
mplayer EDL file, version 2
< t1 filename1
< t2 filename2
t1 * +2 # segment 1
+2 t2 100 # segment 2
t1 * # segment 3
t2 *-* # segment 4
t1 3 -* # segment 5
+0.111111 t2 102.5 # segment 6
7.37 t1 5 +1 # segment 7
----- end -----
This rather pathological example illustrates the rules for filling in
implied data. All the values can be determined by recursively applying
the rules given above, and the full end result is this:
+2 0-2 t1 0-2 # segment 1
+2 2-4 t2 100-102 # segment 2
+0.758889 4-4.758889 t1 2-2.758889 # segment 3
+0.5 4.4758889-5.258889 t2 102-102.5 # segment 4
+2 5.258889-7.258889 t1 3-5 # segment 5
+0.111111 7.258889-7.37 t2 102.5-102.611111 # segment 6
+1 7.37-8.37 t1 5-6 # segment 7
2011-02-14 11:05:35 +00:00
libmpdemux/demux_edl.c \
2012-01-01 16:45:24 +00:00
libmpdemux/demux_cue.c \
2011-12-11 05:48:26 +00:00
libmpdemux/demux_lavf.c \
2009-04-20 14:02:40 +00:00
libmpdemux/demux_mf.c \
libmpdemux/demux_mkv.c \
2012-09-07 12:26:02 +00:00
libmpdemux/demux_mpg.c \
2012-09-07 12:42:25 +00:00
libmpdemux/demux_ts.c \
2012-09-07 12:26:02 +00:00
libmpdemux/mp3_hdr.c \
libmpdemux/parse_es.c \
libmpdemux/mpeg_hdr.c \
2009-04-20 14:02:40 +00:00
libmpdemux/demux_rawaudio.c \
libmpdemux/demux_rawvideo.c \
libmpdemux/ebml.c \
libmpdemux/extension.c \
libmpdemux/mf.c \
libmpdemux/mp_taglists.c \
libmpdemux/video.c \
libvo/osd.c \
2011-10-27 10:07:10 +00:00
libvo/eosd_packer.c \
2012-08-26 16:00:26 +00:00
libvo/bitmap_packer.c \
2010-12-20 03:53:28 +00:00
osdep/numcores.c \
2012-02-03 07:05:11 +00:00
osdep/io.c \
2009-04-20 14:02:40 +00:00
osdep/$( GETCH) \
osdep/$( TIMER) \
stream/stream.c \
2011-12-11 05:48:26 +00:00
stream/stream_ffmpeg.c \
2009-04-20 14:02:40 +00:00
stream/stream_file.c \
stream/stream_mf.c \
stream/stream_null.c \
stream/url.c \
2011-01-16 18:03:08 +00:00
sub/dec_sub.c \
2011-01-26 17:40:52 +00:00
sub/find_sub.c \
2011-02-26 19:47:49 +00:00
sub/find_subfiles.c \
2012-08-16 15:21:21 +00:00
sub/sd_lavc.c \
2011-01-26 17:40:52 +00:00
sub/spudec.c \
2011-12-10 20:39:43 +00:00
sub/sub.c \
2010-05-18 22:05:25 +00:00
sub/subassconvert.c \
2011-01-26 17:40:52 +00:00
sub/subreader.c \
sub/vobsub.c \
EDL: add support for new EDL file format
The timeline code previously added to support Matroska ordered
chapters allows constructing a playback timeline from segments picked
from multiple source files. Add support for a new EDL format to make
this machinery available for use with file formats other than Matroska
and in a manner easier to use than creating files with ordered
chapters.
Unlike the old -edl option which specifies an additional file with
edits to apply to the video file given as the main argument, the new
EDL format is used by giving only the EDL file as the file to play;
that file then contains the filename(s) to use as source files where
actual video segments come from. Filename paths in the EDL file are
ignored. Currently the source files are only searched for in the
directory of the EDL file; support for a search path option will
likely be added in the future.
Format of the EDL files
The first line in the file must be "mplayer EDL file, version 2".
The rest of the lines belong to one of these classes:
1) lines specifying source files
2) empty lines
3) lines specifying timeline segments.
Lines beginning with '<' specify source files. These lines first
contain an identifier used to refer to the source file later, then the
filename separated by whitespace. The identifier must start with a
letter. Filenames that start or end with whitespace or contain
newlines are not supported.
On other lines '#' characters delimit comments. Lines that contain
only whitespace after comments have been removed are ignored.
Timeline segments must appear in the file in chronological order. Each
segment has the following information associated with it:
- duration
- output start time
- output end time (= output start time + duration)
- source id (specifies the file the content of the segment comes from)
- source start time (timestamp in the source file)
- source end time (= source start time + duration)
The output timestamps must form a continuous timeline from 0 to the
end of the last segment, such that each new segment starts from the
time the previous one ends at. Source files and times may change
arbitrarily between segments.
The general format for lines specifying timeline segments is
[output time info] source_id [source time info]
source_id must be an identifier defined on a '<' line. Both the time
info parts consists of zero or more of the following elements:
1) timestamp
2) -timestamp
3) +duration
4) *
5) -*
, where "timestamp" and "duration" are decimal numbers (computations
are done with nanosecond precision). Whitespace around "+" and "-" is
optional. 1) and 2) specify start and end time of the segment on
output or source side. 3) specifies duration; the semantics are the
same whether this appears on output or source side. 4) and 5) are
ignored on the output side (they're always implicitly assumed). On the
source side 4) specifies that the segment starts where the previous
segment _using this source_ ended; if there was no previous segment
time 0 is used. 5) specifies that the segment ends where the next
segment using this source starts.
Redundant information may be omitted. It will be filled in using the
following rules:
- output start for first segment is 0
- two of [output start, output end, duration] imply third
- two of [source start, source end, duration] imply third
- output start = output end of previous segment
- output end = output start of next segment
- if "*", source start = source end of earlier segment
- if "-*", source end = source start of a later segment
As a special rule, a last zero-duration segment without a source
specification may appear. This will produce no corresponding segment
in the resulting timeline, but can be used as syntax to specify the
end time of the timeline (with effect equal to adding -time on the
previous line).
Examples:
----- begin -----
mplayer EDL file, version 2
< id1 filename
0 id1 123
100 id1 456
200 id1 789
300
----- end -----
All segments come from the source file "filename". First segment
(output time 0-100) comes from time 123-223, second 456-556, third
789-889.
----- begin -----
mplayer EDL file, version 2
< f filename
f 60-120
f 600-660
f 30- 90
----- end -----
Play first seconds 60-120 from the file, then 600-660, then 30-90.
----- begin -----
mplayer EDL file, version 2
< id1 filename1
< id2 filename2
+10 id1 *
+10 id2 *
+10 id1 *
+10 id2 *
+10 id1 *
+10 id2 *
----- end -----
This plays time 0-10 from filename1, then 0-10 from filename1, then
10-20 from filename1, then 10-20 from filename2, then 20-30 from
filename1, then 20-30 from filename2.
----- begin -----
mplayer EDL file, version 2
< t1 filename1
< t2 filename2
t1 * +2 # segment 1
+2 t2 100 # segment 2
t1 * # segment 3
t2 *-* # segment 4
t1 3 -* # segment 5
+0.111111 t2 102.5 # segment 6
7.37 t1 5 +1 # segment 7
----- end -----
This rather pathological example illustrates the rules for filling in
implied data. All the values can be determined by recursively applying
the rules given above, and the full end result is this:
+2 0-2 t1 0-2 # segment 1
+2 2-4 t2 100-102 # segment 2
+0.758889 4-4.758889 t1 2-2.758889 # segment 3
+0.5 4.4758889-5.258889 t2 102-102.5 # segment 4
+2 5.258889-7.258889 t1 3-5 # segment 5
+0.111111 7.258889-7.37 t2 102.5-102.611111 # segment 6
+1 7.37-8.37 t1 5-6 # segment 7
2011-02-14 11:05:35 +00:00
timeline/tl_edl.c \
2011-02-14 07:34:39 +00:00
timeline/tl_matroska.c \
2012-01-01 16:45:24 +00:00
timeline/tl_cue.c \
2009-04-20 14:02:40 +00:00
$( SRCS_COMMON-yes)
2008-04-24 13:38:12 +00:00
2008-04-06 23:09:06 +00:00
2012-02-27 14:29:21 +00:00
SRCS_MPLAYER-$(ALSA) += libao2/ao_alsa.c
2008-05-18 11:53:00 +00:00
SRCS_MPLAYER-$(APPLE_IR) += input/appleir.c
2008-04-06 23:09:06 +00:00
SRCS_MPLAYER-$(APPLE_REMOTE) += input/ar.c
2008-12-03 14:48:31 +00:00
SRCS_MPLAYER-$(CACA) += libvo/vo_caca.c
2009-05-04 14:53:47 +00:00
SRCS_MPLAYER-$(COREAUDIO) += libao2/ao_coreaudio.c
2012-04-16 07:26:10 +00:00
SRCS_MPLAYER-$(COREVIDEO) += libvo/vo_corevideo.m
2008-12-03 14:48:31 +00:00
SRCS_MPLAYER-$(DIRECT3D) += libvo/vo_direct3d.c libvo/w32_common.c
2012-10-05 13:17:16 +00:00
SRCS_MPLAYER-$(DSOUND) += libao2/ao_dsound.c
2012-09-23 13:39:49 +00:00
SRCS_MPLAYER-$(GL) += libvo/gl_common.c libvo/vo_opengl.c \
2012-09-23 13:39:08 +00:00
libvo/vo_opengl_old.c pnm_loader.c
2012-09-14 15:51:26 +00:00
SRCS_MPLAYER-$(ENCODING) += libvo/vo_lavc.c libao2/ao_lavc.c encode_lavc.c
2008-12-03 14:48:31 +00:00
SRCS_MPLAYER-$(GL_WIN32) += libvo/w32_common.c
2009-12-19 13:46:34 +00:00
SRCS_MPLAYER-$(GL_X11) += libvo/x11_common.c
2008-04-11 17:45:02 +00:00
2008-12-03 12:05:47 +00:00
SRCS_MPLAYER-$(JACK) += libao2/ao_jack.c
2008-04-06 23:09:06 +00:00
SRCS_MPLAYER-$(JOYSTICK) += input/joystick.c
2012-10-13 15:09:35 +00:00
SRCS_MPLAYER-$(LIBQUVI) += quvi.c
2008-04-30 14:42:16 +00:00
SRCS_MPLAYER-$(LIRC) += input/lirc.c
2008-12-03 12:05:47 +00:00
SRCS_MPLAYER-$(OPENAL) += libao2/ao_openal.c
SRCS_MPLAYER-$(OSS) += libao2/ao_oss.c
SRCS_MPLAYER-$(PULSE) += libao2/ao_pulse.c
2012-04-27 09:26:04 +00:00
SRCS_MPLAYER-$(PORTAUDIO) += libao2/ao_portaudio.c
2011-06-24 13:56:43 +00:00
SRCS_MPLAYER-$(RSOUND) += libao2/ao_rsound.c
2009-02-16 20:58:13 +00:00
SRCS_MPLAYER-$(VDPAU) += libvo/vo_vdpau.c
2011-01-31 01:44:50 +00:00
libvo, libao: remove useless video and audio output drivers
Some of these have only limited use, and some of these have no use at
all. Remove them. They make maintainance harder and nobody needs them.
It's possible that many of the removed drivers were very useful a dozen
of years ago, but now it's 2012.
Note that some of these could be added back, in case they were more
useful than I thought. But right now, they are just a burden.
Reason for removal for each module:
vo_3dfx, vo_dfbmga, vo_dxr3, vo_ivtv, vo_mga, vo_s3fb,
vo_tdfxfb, vo_xmga, vo_tdfx_vid:
All of these are for very specific and outdated hardware. Some
of them require non-standard kernel drivers or do direct HW
access.
vo_dga: the most crappy and ancient way to get fast output on X.
vo_aa: there's vo_caca for the same purpose.
vo_ggi: this never lived, and is entirely useless.
vo_mpegpes: for DVB cards, I can't test this and it's crappy.
vo_fbdev, vo_fbdev2: there's vo_directfb2
vo_bl: what is this even? But it's neither important, nor alive.
vo_svga, vo_vesa: you want to use this? You can't be serious.
vo_wii: I can't test this, and who the hell uses this?
vo_xvr100: some Sun thing.
vo_xover: only useful in connection with xvr100.
ao_nas: still alive, but I doubt it has any meaning today.
ao_sun: Sun.
ao_win32: use ao_dsound or ao_portaudio instead.
ao_ivtv: removed along vo_ivtv.
Also get rid of anything SDL related. SDL 1.x is total crap for video
output, and will be replaced with SDL 2.x soon (perhaps), so if you
want to use SDL, write output drivers for SDL 2.x.
Additionally, I accidentally damaged Sun support, which made me
completely remove Sun/Solaris support. Nobody cares about this anyway.
Some left overs from previous commits removing modules were cleaned up.
2012-07-28 18:20:17 +00:00
SRCS_MPLAYER-$(X11) += libvo/vo_x11.c libvo/x11_common.c
2008-12-03 14:48:31 +00:00
SRCS_MPLAYER-$(XV) += libvo/vo_xv.c
2006-11-20 13:00:26 +00:00
2009-05-21 08:46:24 +00:00
SRCS_MPLAYER = command.c \
2009-04-20 14:02:40 +00:00
m_property.c \
2009-05-21 08:46:24 +00:00
mixer.c \
2009-04-20 14:02:40 +00:00
mp_fifo.c \
2009-05-21 08:46:24 +00:00
mplayer.c \
2009-04-20 14:02:40 +00:00
parser-mpcmd.c \
2011-10-06 18:46:01 +00:00
screenshot.c \
2012-08-06 15:46:42 +00:00
image_writer.c \
2009-04-20 14:02:40 +00:00
input/input.c \
libao2/ao_null.c \
libao2/ao_pcm.c \
2009-05-21 08:46:24 +00:00
libao2/audio_out.c \
2009-04-20 14:02:40 +00:00
libvo/aspect.c \
2011-10-23 20:49:47 +00:00
libvo/csputils.c \
2012-03-30 23:13:38 +00:00
libvo/filter_kernels.c \
2009-04-20 14:02:40 +00:00
libvo/geometry.c \
libvo/video_out.c \
libvo/vo_null.c \
2012-08-06 15:52:17 +00:00
libvo/vo_image.c \
2009-04-20 14:02:40 +00:00
$( SRCS_MPLAYER-yes)
2008-04-30 13:58:26 +00:00
COMMON_LIBS += $( COMMON_LIBS-yes)
2007-03-24 19:59:36 +00:00
2008-04-30 13:58:26 +00:00
OBJS_COMMON += $( addsuffix .o, $( basename $( SRCS_COMMON) ) )
OBJS_MPLAYER += $( addsuffix .o, $( basename $( SRCS_MPLAYER) ) )
2012-10-20 14:45:05 +00:00
OBJS_MPLAYER-$(PE_EXECUTABLE) += osdep/mpv-rc.o
2008-04-30 13:58:26 +00:00
OBJS_MPLAYER += $( OBJS_MPLAYER-yes)
2007-03-24 19:59:36 +00:00
2008-08-07 12:35:34 +00:00
MPLAYER_DEPS = $( OBJS_MPLAYER) $( OBJS_COMMON) $( COMMON_LIBS)
2012-01-11 21:29:06 +00:00
DEP_FILES = $( patsubst %.S,%.d,$( patsubst %.cpp,%.d,$( patsubst %.c,%.d,$( SRCS_COMMON:.m= .d) $( SRCS_MPLAYER:.m= .d) ) ) )
2007-03-24 19:59:36 +00:00
2012-10-11 00:04:08 +00:00
ALL_PRG-$(MPLAYER) += mpv$( EXESUF)
2008-04-29 08:53:08 +00:00
manpage: merge new manpage
About a year ago, ubitux converted most of the old manpage from the
hard to maintain nroff format to reStructuredText. This was not merged
back into the master repository immediately. The argument was that the
new manpage still required work to be done. However, progress was very
slow. Even worse: the old manpage wasn't updated, because it was
scheduled for deletion, and updating it would have meant useless work.
Now the situation is that the new manpage still isn't finished, and the
old manpage is grossly out of sync with the player. This is not helpful
for users. Additionally, keeping the new manpage in a separate branch,
while the normal development repository for code had the old manpage,
was very inconvenient, because you couldn't just update the
documentation in the same commit as the code.
Even though the new manpage isn't finished yet, merging it now seems to
be the best course of action. Squash-merge the manpage development
branch [1], revision e89f5dd3f2, which branches from the mplayer2
master branch after revision 159102e0cb.
Committers:
* Clément Bœsch <ubitux@gmail.com> (Initial conversion to RST.)
* Uoti Urpala <uau@mplayer2.org> (Many updates.)
* Myself (Minor edits.)
Most text of the manpage has been directly taken from the old manpage,
because this is a conversion, not a complete rewrite.
[1] http://git.mplayer2.org/uau/mplayer2.git/log/?h=man
2012-08-02 19:37:33 +00:00
INSTALL_TARGETS-$(MPLAYER) += check_rst2man \
2012-10-11 00:04:08 +00:00
install-mpv \
install-mpv-man \
install-mpv-msg
2007-03-24 19:59:36 +00:00
2012-10-11 00:04:08 +00:00
INSTALL_NO_MAN_TARGETS-$(MPLAYER) += install-mpv \
install-mpv-msg
manpage: merge new manpage
About a year ago, ubitux converted most of the old manpage from the
hard to maintain nroff format to reStructuredText. This was not merged
back into the master repository immediately. The argument was that the
new manpage still required work to be done. However, progress was very
slow. Even worse: the old manpage wasn't updated, because it was
scheduled for deletion, and updating it would have meant useless work.
Now the situation is that the new manpage still isn't finished, and the
old manpage is grossly out of sync with the player. This is not helpful
for users. Additionally, keeping the new manpage in a separate branch,
while the normal development repository for code had the old manpage,
was very inconvenient, because you couldn't just update the
documentation in the same commit as the code.
Even though the new manpage isn't finished yet, merging it now seems to
be the best course of action. Squash-merge the manpage development
branch [1], revision e89f5dd3f2, which branches from the mplayer2
master branch after revision 159102e0cb.
Committers:
* Clément Bœsch <ubitux@gmail.com> (Initial conversion to RST.)
* Uoti Urpala <uau@mplayer2.org> (Many updates.)
* Myself (Minor edits.)
Most text of the manpage has been directly taken from the old manpage,
because this is a conversion, not a complete rewrite.
[1] http://git.mplayer2.org/uau/mplayer2.git/log/?h=man
2012-08-02 19:37:33 +00:00
2008-04-28 17:54:14 +00:00
DIRS = . \
2008-04-13 21:20:29 +00:00
input \
2008-04-09 18:15:21 +00:00
libaf \
2008-04-23 09:33:51 +00:00
libao2 \
2008-04-24 13:04:50 +00:00
libmpcodecs \
2008-04-24 22:05:43 +00:00
libmpdemux \
2008-04-23 10:07:50 +00:00
libvo \
2008-04-08 18:25:30 +00:00
osdep \
2008-04-24 13:38:12 +00:00
stream \
2011-01-16 18:03:08 +00:00
sub \
2011-02-14 07:34:39 +00:00
timeline \
2002-09-22 13:04:19 +00:00
2012-10-11 00:04:08 +00:00
MOFILES := $( MSG_LANGS:%= locale/%/LC_MESSAGES/mpv.mo)
2010-03-28 11:49:09 +00:00
2008-07-05 09:07:24 +00:00
ALLHEADERS = $( foreach dir,$( DIRS) ,$( wildcard $( dir) /*.h) )
2009-04-20 00:18:59 +00:00
ADDSUFFIXES = $( foreach suf,$( 1) ,$( addsuffix $( suf) ,$( 2) ) )
ADD_ALL_DIRS = $( call ADDSUFFIXES,$( 1) ,$( DIRS) )
ADD_ALL_EXESUFS = $( 1) $( call ADDSUFFIXES,$( EXESUFS_ALL) ,$( 1) )
2009-04-20 00:16:53 +00:00
2011-06-30 21:18:52 +00:00
###### brief build output #######
i f n d e f V
$( eval override CC = @printf "CC \t $ $ @\n "; $ ( CC ) )
$( eval override RM = @$ ( RM ) )
e n d i f
2008-05-09 17:51:44 +00:00
###### generic rules #######
2010-03-28 11:49:09 +00:00
all : $( ALL_PRG -yes ) locales
2002-09-22 13:04:19 +00:00
manpage: merge new manpage
About a year ago, ubitux converted most of the old manpage from the
hard to maintain nroff format to reStructuredText. This was not merged
back into the master repository immediately. The argument was that the
new manpage still required work to be done. However, progress was very
slow. Even worse: the old manpage wasn't updated, because it was
scheduled for deletion, and updating it would have meant useless work.
Now the situation is that the new manpage still isn't finished, and the
old manpage is grossly out of sync with the player. This is not helpful
for users. Additionally, keeping the new manpage in a separate branch,
while the normal development repository for code had the old manpage,
was very inconvenient, because you couldn't just update the
documentation in the same commit as the code.
Even though the new manpage isn't finished yet, merging it now seems to
be the best course of action. Squash-merge the manpage development
branch [1], revision e89f5dd3f2, which branches from the mplayer2
master branch after revision 159102e0cb.
Committers:
* Clément Bœsch <ubitux@gmail.com> (Initial conversion to RST.)
* Uoti Urpala <uau@mplayer2.org> (Many updates.)
* Myself (Minor edits.)
Most text of the manpage has been directly taken from the old manpage,
because this is a conversion, not a complete rewrite.
[1] http://git.mplayer2.org/uau/mplayer2.git/log/?h=man
2012-08-02 19:37:33 +00:00
%.1 : %.rst
rst2man $< $@
2010-02-23 23:33:10 +00:00
%.o : %.S
2010-07-01 23:18:16 +00:00
$( CC) $( DEPFLAGS) $( CFLAGS) -c -o $@ $<
2010-02-23 23:33:10 +00:00
2008-12-06 02:41:45 +00:00
%.o : %.c
2010-07-01 23:18:16 +00:00
$( CC) $( DEPFLAGS) $( CFLAGS) -c -o $@ $<
2008-04-29 08:53:08 +00:00
2008-12-06 02:41:45 +00:00
%.o : %.cpp
2010-07-01 23:18:16 +00:00
$( CC) $( DEPFLAGS) $( CXXFLAGS) -c -o $@ $<
2008-04-29 08:53:08 +00:00
2008-12-06 02:41:45 +00:00
%.o : %.m
2010-07-01 23:18:16 +00:00
$( CC) $( DEPFLAGS) $( CFLAGS) -c -o $@ $<
2010-02-23 23:33:10 +00:00
2008-07-06 13:26:30 +00:00
%-rc.o : %.rc
$( WINDRES) -I. $< $@
2012-10-11 00:04:08 +00:00
mpv$(EXESUF) : $( MPLAYER_DEPS )
mpv$(EXESUF) : EXTRALIBS += $( EXTRALIBS_MPLAYER )
mpv$(EXESUF) :
2009-10-19 09:56:18 +00:00
$( CC) -o $@ $^ $( EXTRALIBS)
2008-08-07 12:35:34 +00:00
2012-07-28 16:48:59 +00:00
codec-cfg.c : codecs .conf .h
2012-07-01 23:35:57 +00:00
codecs.conf.h : TOOLS /file 2string .py etc /codecs .conf
./$^ >$@
2006-07-13 01:20:14 +00:00
2012-08-01 20:52:28 +00:00
input/input.c : input /input_conf .h
input/input_conf.h : TOOLS /file 2string .py etc /input .conf
./$^ >$@
2012-07-28 16:48:59 +00:00
libvo/vo_vdpau.c : libvo /vdpau_template .c
2012-07-01 23:09:03 +00:00
libvo/vdpau_template.c : TOOLS /vdpau_functions .py
./$< > $@
2012-07-28 16:48:59 +00:00
libmpdemux/ebml.c libmpdemux/demux_mkv.c : libmpdemux /ebml_types .h
2012-07-01 23:09:03 +00:00
libmpdemux/ebml_types.h : TOOLS /matroska .py
./$< --generate-header > $@
2012-07-28 16:48:59 +00:00
libmpdemux/ebml.c : libmpdemux /ebml_defs .c
2012-07-01 23:09:03 +00:00
libmpdemux/ebml_defs.c : TOOLS /matroska .py
./$< --generate-definitions > $@
2002-12-15 23:45:19 +00:00
2012-09-23 13:43:12 +00:00
libvo/vo_opengl.c : libvo /vo_opengl_shaders .h
libvo/vo_opengl_shaders.h : TOOLS /file 2string .py libvo /vo_opengl_shaders .glsl
2012-07-28 15:31:55 +00:00
./$^ >$@
2012-03-30 23:13:38 +00:00
2012-07-28 21:03:19 +00:00
sub/osd_libass.c : sub /osd_font .h
sub/osd_font.h : TOOLS /file 2string .py sub /osd_font .pfb
./$^ >$@
2008-05-09 17:47:19 +00:00
# ./configure must be rerun if it changed
config.mak : configure
@echo "############################################################"
@echo "####### Please run ./configure again - it's changed! #######"
@echo "############################################################"
2011-02-19 17:01:07 +00:00
version.h .version : version .sh
./$<
# Force version.sh to run to potentially regenerate version.h
- i n c l u d e . v e r s i o n
2008-04-29 08:35:58 +00:00
2010-06-14 11:16:30 +00:00
%$(EXESUF) : %.c
2010-06-14 11:24:55 +00:00
$( CC) $( CFLAGS) -o $@ $^
2008-07-04 14:35:44 +00:00
2010-03-28 11:49:09 +00:00
locales : $( MOFILES )
2012-10-11 00:04:08 +00:00
locale/%/LC_MESSAGES/mpv.mo : po /%.po
2010-03-28 11:49:09 +00:00
mkdir -p $( dir $@ )
msgfmt -c -o $@ $<
2010-09-04 00:20:08 +00:00
%.ho : %.h
$( CC) $( CFLAGS) -Wno-unused -c -o $@ -x c $<
checkheaders : $( ALLHEADERS :.h =.ho )
2008-04-19 09:43:53 +00:00
2001-02-24 20:28:24 +00:00
2008-05-09 17:51:44 +00:00
###### dependency declarations / specific CFLAGS ######
2006-07-13 01:20:14 +00:00
2012-10-20 14:45:05 +00:00
version.c osdep/mpv-rc.o : version .h
2008-04-08 18:25:30 +00:00
2012-10-20 14:45:05 +00:00
osdep/mpv-rc.o : osdep /mpv .exe .manifest
2010-07-04 07:13:18 +00:00
2008-04-27 11:46:56 +00:00
2008-05-27 11:31:57 +00:00
###### installation / clean / generic rules #######
2008-04-27 22:53:18 +00:00
manpage: merge new manpage
About a year ago, ubitux converted most of the old manpage from the
hard to maintain nroff format to reStructuredText. This was not merged
back into the master repository immediately. The argument was that the
new manpage still required work to be done. However, progress was very
slow. Even worse: the old manpage wasn't updated, because it was
scheduled for deletion, and updating it would have meant useless work.
Now the situation is that the new manpage still isn't finished, and the
old manpage is grossly out of sync with the player. This is not helpful
for users. Additionally, keeping the new manpage in a separate branch,
while the normal development repository for code had the old manpage,
was very inconvenient, because you couldn't just update the
documentation in the same commit as the code.
Even though the new manpage isn't finished yet, merging it now seems to
be the best course of action. Squash-merge the manpage development
branch [1], revision e89f5dd3f2, which branches from the mplayer2
master branch after revision 159102e0cb.
Committers:
* Clément Bœsch <ubitux@gmail.com> (Initial conversion to RST.)
* Uoti Urpala <uau@mplayer2.org> (Many updates.)
* Myself (Minor edits.)
Most text of the manpage has been directly taken from the old manpage,
because this is a conversion, not a complete rewrite.
[1] http://git.mplayer2.org/uau/mplayer2.git/log/?h=man
2012-08-02 19:37:33 +00:00
check_rst2man :
@which rst2man > /dev/null 2>& 1 || ( printf "\n\trst2man not found. You need the docutils (>= 0.7) to generate the manpages. Alternatively you can use 'install-no-man' rule.\n\n" && exit 1)
2008-05-18 17:35:54 +00:00
install : $( INSTALL_TARGETS -yes )
2007-01-30 11:00:54 +00:00
manpage: merge new manpage
About a year ago, ubitux converted most of the old manpage from the
hard to maintain nroff format to reStructuredText. This was not merged
back into the master repository immediately. The argument was that the
new manpage still required work to be done. However, progress was very
slow. Even worse: the old manpage wasn't updated, because it was
scheduled for deletion, and updating it would have meant useless work.
Now the situation is that the new manpage still isn't finished, and the
old manpage is grossly out of sync with the player. This is not helpful
for users. Additionally, keeping the new manpage in a separate branch,
while the normal development repository for code had the old manpage,
was very inconvenient, because you couldn't just update the
documentation in the same commit as the code.
Even though the new manpage isn't finished yet, merging it now seems to
be the best course of action. Squash-merge the manpage development
branch [1], revision e89f5dd3f2, which branches from the mplayer2
master branch after revision 159102e0cb.
Committers:
* Clément Bœsch <ubitux@gmail.com> (Initial conversion to RST.)
* Uoti Urpala <uau@mplayer2.org> (Many updates.)
* Myself (Minor edits.)
Most text of the manpage has been directly taken from the old manpage,
because this is a conversion, not a complete rewrite.
[1] http://git.mplayer2.org/uau/mplayer2.git/log/?h=man
2012-08-02 19:37:33 +00:00
install-no-man : $( INSTALL_NO_MAN_TARGETS -yes )
2007-01-30 11:02:19 +00:00
install-dirs :
2008-12-06 01:57:08 +00:00
if test ! -d $( BINDIR) ; then $( INSTALL) -d $( BINDIR) ; fi
if test ! -d $( CONFDIR) ; then $( INSTALL) -d $( CONFDIR) ; fi
if test ! -d $( LIBDIR) ; then $( INSTALL) -d $( LIBDIR) ; fi
2007-01-30 11:00:54 +00:00
2008-05-18 17:16:43 +00:00
install-% : %$( EXESUF ) install -dirs
2008-05-18 16:01:46 +00:00
$( INSTALL) -m 755 $( INSTALLSTRIP) $< $( BINDIR)
2007-01-30 11:00:54 +00:00
2012-10-11 00:04:08 +00:00
install-mpv-man : $( foreach lang ,$ ( MAN_LANGS ) ,install -mpv -man -$ ( lang ) )
install-mpv-msg : $( foreach lang ,$ ( MSG_LANGS ) ,install -mpv -msg -$ ( lang ) )
2008-08-07 12:35:34 +00:00
2012-10-11 00:04:08 +00:00
install-mpv-man-en : DOCS /man /en /mpv .1
2008-12-06 01:57:08 +00:00
if test ! -d $( MANDIR) /man1 ; then $( INSTALL) -d $( MANDIR) /man1 ; fi
2012-10-11 00:04:08 +00:00
$( INSTALL) -m 644 DOCS/man/en/mpv.1 $( MANDIR) /man1/
2008-05-18 17:05:16 +00:00
d e f i n e M P L A Y E R _ M A N _ R U L E
2012-10-11 00:04:08 +00:00
install-mpv-man-$(lang) : DOCS /man /$( lang ) /mpv .1
2008-12-06 01:57:08 +00:00
if test ! -d $( MANDIR) /$( lang) /man1 ; then $( INSTALL) -d $( MANDIR) /$( lang) /man1 ; fi
2012-10-11 00:04:08 +00:00
$( INSTALL) -m 644 DOCS/man/$( lang) /mpv.1 $( MANDIR) /$( lang) /man1/
2008-05-18 17:05:16 +00:00
e n d e f
2008-08-07 12:35:34 +00:00
$( foreach lang ,$ ( filter -out en ,$ ( MAN_LANG_ALL ) ) ,$ ( eval $ ( MPLAYER_MAN_RULE ) ) )
2007-01-30 11:00:54 +00:00
2010-03-28 11:49:09 +00:00
d e f i n e M P L A Y E R _ M S G _ R U L E
2012-10-11 00:04:08 +00:00
install-mpv-msg-$(lang) :
2010-03-28 11:49:09 +00:00
if test ! -d $( LOCALEDIR) /$( lang) /LC_MESSAGES ; then $( INSTALL) -d $( LOCALEDIR) /$( lang) /LC_MESSAGES ; fi
2012-10-11 00:04:08 +00:00
$( INSTALL) -m 644 locale/$( lang) /LC_MESSAGES/mpv.mo $( LOCALEDIR) /$( lang) /LC_MESSAGES/
2010-03-28 11:49:09 +00:00
e n d e f
$( foreach lang ,$ ( MSG_LANG_ALL ) ,$ ( eval $ ( MPLAYER_MSG_RULE ) ) )
2001-10-22 22:46:38 +00:00
uninstall :
2012-10-11 00:04:08 +00:00
$( RM) $( BINDIR) /mpv$( EXESUF)
$( RM) $( MANDIR) /man1/mpv.1
$( RM) $( foreach lang,$( MAN_LANGS) ,$( foreach man,mpv.1,$( MANDIR) /$( lang) /man1/$( man) ) )
$( RM) $( foreach lang,$( MSG_LANGS) ,$( LOCALEDIR) /$( lang) /LC_MESSAGES/mpv.1)
2001-10-22 22:46:38 +00:00
2008-04-30 17:54:02 +00:00
clean :
2012-07-14 04:32:57 +00:00
-$( RM) $( call ADD_ALL_DIRS,/*.o /*.d /*.a /*.ho /*~)
2012-10-11 00:04:08 +00:00
-$( RM) $( foreach lang,$( MAN_LANGS) ,$( foreach man,mpv.1,DOCS/man/$( lang) /$( man) ) )
manpage: merge new manpage
About a year ago, ubitux converted most of the old manpage from the
hard to maintain nroff format to reStructuredText. This was not merged
back into the master repository immediately. The argument was that the
new manpage still required work to be done. However, progress was very
slow. Even worse: the old manpage wasn't updated, because it was
scheduled for deletion, and updating it would have meant useless work.
Now the situation is that the new manpage still isn't finished, and the
old manpage is grossly out of sync with the player. This is not helpful
for users. Additionally, keeping the new manpage in a separate branch,
while the normal development repository for code had the old manpage,
was very inconvenient, because you couldn't just update the
documentation in the same commit as the code.
Even though the new manpage isn't finished yet, merging it now seems to
be the best course of action. Squash-merge the manpage development
branch [1], revision e89f5dd3f2, which branches from the mplayer2
master branch after revision 159102e0cb.
Committers:
* Clément Bœsch <ubitux@gmail.com> (Initial conversion to RST.)
* Uoti Urpala <uau@mplayer2.org> (Many updates.)
* Myself (Minor edits.)
Most text of the manpage has been directly taken from the old manpage,
because this is a conversion, not a complete rewrite.
[1] http://git.mplayer2.org/uau/mplayer2.git/log/?h=man
2012-08-02 19:37:33 +00:00
-$( RM) $( call ADD_ALL_DIRS,/*.o /*.a /*.ho /*~)
2012-10-11 00:04:08 +00:00
-$( RM) $( call ADD_ALL_EXESUFS,mpv)
2011-06-30 20:12:48 +00:00
-$( RM) $( MOFILES)
2012-08-01 21:21:55 +00:00
-$( RM) version.h
-$( RM) codecs.conf.h
-$( RM) input/input_conf.h
-$( RM) libvo/vdpau_template.c
-$( RM) libmpdemux/ebml_types.h libmpdemux/ebml_defs.c
2012-09-23 13:43:12 +00:00
-$( RM) libvo/vo_opengl_shaders.h
2012-08-01 21:21:55 +00:00
-$( RM) sub/osd_font.h
2006-08-03 17:31:30 +00:00
2012-07-28 16:32:26 +00:00
distclean : clean
2011-06-30 20:12:48 +00:00
-$( RM) -r locale
2012-08-01 21:21:55 +00:00
-$( RM) config.log config.mak config.h TAGS tags
2001-02-24 20:28:24 +00:00
2008-01-10 18:40:26 +00:00
TAGS :
2011-06-30 20:12:48 +00:00
$( RM) $@ ; find . -name '*.[chS]' -o -name '*.asm' | xargs etags -a
2008-01-10 18:40:26 +00:00
tags :
2011-06-30 20:12:48 +00:00
$( RM) $@ ; find . -name '*.[chS]' -o -name '*.asm' | xargs ctags -a
2008-01-10 18:40:26 +00:00
2012-08-13 10:08:22 +00:00
osxbundle :
@TOOLS/osxbundle.py mpv
2010-09-20 12:07:56 +00:00
- i n c l u d e $( DEP_FILES )
2008-04-24 21:58:45 +00:00
2012-07-28 16:22:17 +00:00
.PHONY : all locales *install *
2012-07-28 16:32:26 +00:00
.PHONY : checkheaders *clean .version
2010-06-22 13:15:34 +00:00
# Disable suffix rules. Most of the builtin rules are suffix rules,
# so this saves some time on slow systems.
.SUFFIXES :
2010-11-03 22:50:44 +00:00
# If a command returns failure but changed its target file, delete the
# (presumably malformed) file. Otherwise the file would be considered to
# be up to date if make is restarted.
.DELETE_ON_ERROR :