From 053044741713eddc4aea024fb0c175aa01fc092d Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 12 Dec 2013 01:44:28 +0100 Subject: Add prelimimary (basic, possibly broken) dvdnav support This readds a more or less completely new dvdnav implementation, though it's based on the code from before commit 41fbcee. Note that this is rather basic, and might be broken or not quite usable in many cases. Most importantly, navigation highlights are not correctly implemented. This would require changes in the FFmpeg dvdsub decoder (to apply a different internal CLUT), so supporting it is not really possible right now. And in fact, I don't think I ever want to support it, because it's a very small gain for a lot of work. Instead, mpv will display fake highlights, which are an approximate bounding box around the real highlights. Some things like mouse input or switching audio/subtitles stream using the dvdnav VM are not supported. Might be quite fragile on transitions: if dvdnav initiates a transition, and doesn't give us enough mpeg data to initialize video playback, the player will just quit. This is added only because some users seem to want it. I don't intend to make mpv a good DVD player, so the very basic minimum will have to do. How about you just convert your DVD to proper video files? --- wscript_build.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wscript_build.py') diff --git a/wscript_build.py b/wscript_build.py index a15c5c161a..a5f92b1f9f 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -169,6 +169,7 @@ def build(ctx): ( "mpvcore/player/audio.c" ), ( "mpvcore/player/command.c" ), ( "mpvcore/player/configfiles.c" ), + ( "mpvcore/player/dvdnav.c" ), ( "mpvcore/player/loadfile.c" ), ( "mpvcore/player/main.c" ), ( "mpvcore/player/misc.c" ), @@ -239,6 +240,7 @@ def build(ctx): ( "stream/stream_dvb.c", "dvbin" ), ( "stream/stream_dvd.c", "dvdread" ), ( "stream/stream_dvd_common.c", "dvdread" ), + ( "stream/stream_dvdnav.c", "dvdnav" ), ( "stream/stream_edl.c" ), ( "stream/stream_file.c" ), ( "stream/stream_lavf.c" ), -- cgit v1.2.3