1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 07:42:17 +00:00
Command line video player
Go to file
wm4 ac266da658 vo_opengl: handle chroma location
Use the video decoder chroma location flags and render chroma locations
other than centered. Until now, we've always used the intuitive and
obvious centered chroma location, but H.264 uses something else.

FFmpeg provides a small overview in libavcodec/avcodec.h:

-----------
/**
 *  X   X      3 4 X      X are luma samples,
 *             1 2        1-6 are possible chroma positions
 *  X   X      5 6 X      0 is undefined/unknown position
 */
enum AVChromaLocation{
    AVCHROMA_LOC_UNSPECIFIED = 0,
    AVCHROMA_LOC_LEFT        = 1, ///< mpeg2/4, h264 default
    AVCHROMA_LOC_CENTER      = 2, ///< mpeg1, jpeg, h263
    AVCHROMA_LOC_TOPLEFT     = 3, ///< DV
    AVCHROMA_LOC_TOP         = 4,
    AVCHROMA_LOC_BOTTOMLEFT  = 5,
    AVCHROMA_LOC_BOTTOM      = 6,
    AVCHROMA_LOC_NB             , ///< Not part of ABI
};
-----------

The visual difference is literally minimal, but since videophiles
apparently consider this detail as quality mark of a video renderer,
support it anyway. We don't bother with chroma locations other than
centered and left, though.

Not sure about correctness, but it's probably ok.
2013-06-28 21:20:41 +02:00
audio ao_wasapi0: add new wasapi event mode ao 2013-06-18 13:16:58 +02:00
compat compat: remove an unused symbol 2013-04-26 20:45:39 +02:00
core core: add libquvi 0.9 support 2013-06-28 15:47:35 +02:00
demux video: add a new method to configure filters and VOs 2013-06-28 20:34:46 +02:00
DOCS vo_opengl: handle chroma location 2013-06-28 21:20:41 +02:00
etc core: add libquvi 0.9 support 2013-06-28 15:47:35 +02:00
osdep OSX: fix compilation with 10.7 SDK 2013-06-19 21:24:26 +02:00
stream stream: redo memory streams 2013-06-28 15:40:15 +02:00
sub core: rename mplayer.h and quvi.c 2013-06-28 15:40:28 +02:00
TOOLS ildetect: $ILDETECT_RUN_INTERLACED_ONLY to only run the job if not progressive 2013-06-21 06:22:13 +02:00
video vo_opengl: handle chroma location 2013-06-28 21:20:41 +02:00
.gitignore
.travis.yml travis: run travis on 'ci' branch 2013-06-03 21:34:41 +02:00
AUTHORS
configure configure: prefer libquvi 0.4.x over libquvi 0.9.x 2013-06-28 15:51:20 +02:00
Copyright
LICENSE
Makefile core: add libquvi 0.9 support 2013-06-28 15:47:35 +02:00
README.md add Travis-CI integration 2013-05-19 20:41:40 +02:00
talloc.c
talloc.h
travis-deps add Travis-CI integration 2013-05-19 20:41:40 +02:00
version.sh

mpv

Build Status

Overview

mpv is a movie player based on MPlayer and mplayer2. It supports a wide variety of video file formats, audio and video codecs, and subtitle types.

If you are wondering what's different from mplayer2 and MPlayer you can read more about the changes.

Compilation

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.

Essential dependencies (incomplete list):

  • gcc or clang
  • X development headers (xlib, X extensions, libvdpau, libGL, libXv, ...)
  • Audio output development headers (libasound, pulseaudio)
  • fribidi, freetype, fontconfig development headers (for libass)
  • libass
  • FFmpeg libraries (libavutil libavcodec libavformat libswscale libpostproc)
  • libjpeg
  • libquvi if you want to play Youtube videos directly
  • libx264 if you want to use encoding (has to be explicitly enabled when compiling ffmpeg)

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 (mpv-build) that first compiles FFmpeg libraries and libass, and then compiles the player statically linked against those.

If you are running Mac OSX and using homebrew we provide homebrew-mpv, an up to date formula that compiles mpv with sensible dependencies and defaults for OSX.

Bug reports

Please use the issue tracker provided by GitHub to send us bug reports or feature requests.

Contributing

For small changes you can just send us pull requests through GitHub. For bigger changes come and talk to us on IRC before you start working on them. It will make code review easier for both parties later on.

Contacts

You can find us on IRC in #mpv-player on irc.freenode.net