1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-30 03:32:50 +00:00
Command line video player
Go to file
Uoti Urpala 2ba8b91a97 build, codec-cfg.c: simplify builtin codecs.conf handling
The player can read codec mapping (codecs.conf) from an external file
or use embedded defaults. Before, the defaults were stored in the
player binary in the form of final already-parsed data structures.
Simplify things by storing the text of the codecs.conf file instead,
and parse that at runtime the same way an external file would be
parsed.

To create the previous parsed form, the build system first compiled a
separate binary named "codec-cfg", which parsed etc/codecs.conf and
then wrote the results as a C data structure that could be compiled
into the program. The new simple conversion of codecs.conf into a C
string is handled by the new script TOOLS/file2string.py.

After removing the codec-cfg binary, HOST_CC is no longer used for
anything. Remove the --host-cc configure option and associated logic.

Also remove the codec2html and codec-cfg-test functionality. Building
those was already broken and nobody cared.

There was a broken 3-character-long "fourcc" entry in etc/codecs.conf.
This happened to be accepted before but triggered a parse error after
the changes. Remove the broken entry and make the parsing functions
explicitly test for this error.
2012-07-16 21:08:42 +03:00
debian debian: remove leftover references to deleted OSD menu files 2011-11-14 20:24:39 +02:00
DOCS build, codec-cfg.c: simplify builtin codecs.conf handling 2012-07-16 21:08:42 +03:00
drivers
etc build, codec-cfg.c: simplify builtin codecs.conf handling 2012-07-16 21:08:42 +03:00
ffmpeg_files build: switch to libavutil bswap.h and intreadwrite.h 2012-02-01 22:46:27 +02:00
input options: support parsing values into substructs 2012-07-16 21:08:42 +03:00
libaf af: fix crash when trying to use volume controls with AC3 pass-through 2012-03-09 20:48:54 +02:00
libao2 ao_arts, ao_esd: remove these AOs 2012-05-06 18:29:48 +03:00
libmpcodecs ad_mpg123: update libmpg123 API use 2012-05-07 01:10:25 +03:00
libmpdemux build: use python3 to generate some files previously in git 2012-07-16 21:08:42 +03:00
libvo build: use python3 to generate some files previously in git 2012-07-16 21:08:42 +03:00
loader build: remove OS/2 support 2012-04-06 17:45:56 +03:00
osdep OSX, input: implement wakeup in response to Cocoa events 2012-04-26 21:03:10 +03:00
rpm libmenu: remove OSD menu functionality (--menu) 2011-10-25 07:05:47 +03:00
stream stream_cdda: print CDTEXT if available 2012-04-28 03:25:04 +03:00
sub font_load_ft.c: fix possible crash with recent Fontconfig 2012-05-17 17:38:00 +03:00
timeline windows support: unicode filenames 2012-03-09 20:48:54 +02:00
TOOLS build, codec-cfg.c: simplify builtin codecs.conf handling 2012-07-16 21:08:42 +03:00
.gitignore build, codec-cfg.c: simplify builtin codecs.conf handling 2012-07-16 21:08:42 +03:00
asxparser.c
asxparser.h
AUTHORS
av_log.c stream_ffmpeg: fix broken line from 30afc64532 2012-04-18 01:27:55 +03:00
av_log.h terminal output: show libav version numbers in verbose mode 2011-10-01 20:03:49 +03:00
av_opts.c Update Libav API uses 2012-02-01 22:46:27 +02:00
av_opts.h
bstr.c build, codec-cfg.c: simplify builtin codecs.conf handling 2012-07-16 21:08:42 +03:00
bstr.h build, codec-cfg.c: simplify builtin codecs.conf handling 2012-07-16 21:08:42 +03:00
cfg-mplayer.h options: support parsing values into substructs 2012-07-16 21:08:42 +03:00
codec-cfg.c build, codec-cfg.c: simplify builtin codecs.conf handling 2012-07-16 21:08:42 +03:00
codec-cfg.h
command.c audio: fix unmute-at-end logic 2012-04-11 03:52:34 +03:00
command.h
configure build, codec-cfg.c: simplify builtin codecs.conf handling 2012-07-16 21:08:42 +03:00
Copyright
cpudetect.c build: remove OS/2 support 2012-04-06 17:45:56 +03:00
cpudetect.h
cpuinfo.c
defaultopts.c options: support parsing values into substructs 2012-07-16 21:08:42 +03:00
defaultopts.h
fmt-conversion.c configure, build: require at least Libav 0.7 2011-12-22 01:27:45 +02:00
fmt-conversion.h
LICENSE
m_config.c options: make option struct the talloc parent of options 2012-07-16 21:08:42 +03:00
m_config.h options: support parsing values into substructs 2012-07-16 21:08:42 +03:00
m_option.c options: fix specifying string options without parameter 2012-07-16 21:08:42 +03:00
m_option.h options: make option struct the talloc parent of options 2012-07-16 21:08:42 +03:00
m_property.c commands: osd_show_property_text: fix \xNN escapes 2011-08-05 03:46:06 +03:00
m_property.h
m_struct.c options: make option struct the talloc parent of options 2012-07-16 21:08:42 +03:00
m_struct.h
Makefile build, codec-cfg.c: simplify builtin codecs.conf handling 2012-07-16 21:08:42 +03:00
mangle.h
metadata.h
mixer.c mixer: support native audio driver mute 2012-04-11 03:56:28 +03:00
mixer.h mixer: support native audio driver mute 2012-04-11 03:56:28 +03:00
mp_core.h audio: fix unmute-at-end logic 2012-04-11 03:52:34 +03:00
mp_fifo.c input: allow unicode keys and reassign internal key codes 2012-03-25 22:30:37 +03:00
mp_fifo.h input: allow unicode keys and reassign internal key codes 2012-03-25 22:30:37 +03:00
mp_msg.c cosmetics: misc minor cleanups 2012-03-25 22:30:37 +03:00
mp_msg.h windows: fix format string attributes on MinGW 2012-03-01 00:22:29 +02:00
mp_osd.h
mpbswap.h build: switch to libavutil bswap.h and intreadwrite.h 2012-02-01 22:46:27 +02:00
mpcommon.c
mpcommon.h windows: fix format string attributes on MinGW 2012-03-01 00:22:29 +02:00
mplayer.c options: support parsing values into substructs 2012-07-16 21:08:42 +03:00
mplayer.h
options.h options, x11+cocoa: add option --cursor-autohide-delay 2012-03-25 22:30:37 +03:00
parser-cfg.c windows support: unicode filenames 2012-03-09 20:48:54 +02:00
parser-cfg.h
parser-mpcmd.c options: change -v parsing 2012-05-07 23:51:58 +03:00
parser-mpcmd.h options: change -v parsing 2012-05-07 23:51:58 +03:00
path.c win32: get_path(): fix undefined behavior 2012-04-28 21:47:53 +03:00
path.h windows support: unicode filenames 2012-03-09 20:48:54 +02:00
playtree.c build: fix --enable-debug, remove some "#ifdef MP_DEBUG" 2011-07-30 19:03:20 +03:00
playtree.h
playtreeparser.c build: fix --enable-debug, remove some "#ifdef MP_DEBUG" 2011-07-30 19:03:20 +03:00
playtreeparser.h
pnm_loader.c
pnm_loader.h
README
screenshot.c screenshot: fix dependency on sizeof(AVFrame) 2012-04-15 17:48:12 +03:00
screenshot.h core: add screenshot mode for actual VO window contents 2011-11-25 23:56:28 +02:00
subopt-helper.c subopt-helper: support "no-" prefix to negate suboptions 2011-11-14 20:24:39 +02:00
subopt-helper.h
talloc.c talloc.[ch]: remove "type safety" hack that violates C types 2011-08-19 03:01:16 +03:00
talloc.h windows: fix format string attributes on MinGW 2012-03-01 00:22:29 +02:00
version.sh Update copyright year 2012-01-28 13:49:13 +02:00

Compiling with full features requires development files for several
external libraries. Below is a list of some important requirements. For
more information see the output of './configure --help' for a list of options,
or look at the list of enabled and disabled features printed after running
'./configure'. If you think you have support for some feature installed
but configure fails to detect it, the file config.log may contain information
about the reasons for the failure.

Libraries specific to particular video output methods
(you'll want at least one of VDPAU, GL or Xv):
 - libvdpau (for VDPAU output, best choice for NVIDIA cards)
 - libGL (OpenGL output)
 - libXv (XVideo output)
general:
 - libasound   (ALSA audio output)
 - various general X development libraries
 - libfreetype
 - libfontconfig
 - libass
 - FFmpeg libraries (libavutil libavcodec libavformat libswscale libpostproc)

Most of the above libraries are available in suitable versions on normal
Linux distributions. However FFmpeg is an exception (distro versions may be
too old to work at all or work well). For that reason you may want to use
the separately available build wrapper that first compiles FFmpeg libraries
and libass, and then compiles the player statically linked against those.