diff options
author | wm4 <wm4@nowhere> | 2019-09-13 17:16:18 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-13 17:32:19 +0200 |
commit | b30e85508a305d668db8419556d295a65ab08707 (patch) | |
tree | fa48444a183c97fd5081aa0206c5adece43eaf32 /wscript | |
parent | 162e0f5ad92116d1a4fb740d087da2a152686b73 (diff) | |
download | mpv-b30e85508a305d668db8419556d295a65ab08707.tar.bz2 mpv-b30e85508a305d668db8419556d295a65ab08707.tar.xz |
Remove classic Linux analog TV support, and DVB runtime controls
Linux analog TV support (via tv://) was excessively complex, and
whenever I attempted to use it (cameras or loopback devices), it didn't
work well, or would have required some major work to update it. It's
very much stuck in the analog past (my favorite are the frequency tables
in frequencies.c for analog TV channels which don't exist anymore).
Especially cameras and such work fine with libavdevice and better than
tv://, for example:
mpv av://v4l2:/dev/video0
(adding --profile=low-latency --untimed even makes it mostly realtime)
Adding a new input layer that targets such "modern" uses would be
acceptable, if anyone is interested in it. The old TV code is just too
focused on actual analog TV.
DVB is rather obscure, but has an active maintainer, so don't remove it.
However, the demux/stream ctrl layer must go, so remove controls for
channel switching. Most of these could be reimplemented by using the
normal method for option runtime changes.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 49 |
1 files changed, 6 insertions, 43 deletions
@@ -409,6 +409,12 @@ iconv support use --disable-iconv.", 'name': '--libarchive', 'desc': 'libarchive wrapper for reading zip files and more', 'func': check_pkg_config('libarchive >= 3.0.0'), + }, { + 'name': '--dvbin', + 'desc': 'DVB input module', + 'deps': 'gpl', + 'func': check_true, + 'default': 'disable', } ] @@ -874,47 +880,6 @@ hwaccel_features = [ } ] -radio_and_tv_features = [ - { - 'name': '--tv', - 'desc': 'TV interface', - 'deps': 'gpl', - 'func': check_true, - 'default': 'disable', - }, { - 'name': 'sys_videoio_h', - 'desc': 'videoio.h', - 'func': check_cc(header_name=['sys/time.h', 'sys/videoio.h']), - 'deps': 'tv', - }, { - 'name': 'videodev', - 'desc': 'videodev2.h', - 'func': check_cc(header_name=['sys/time.h', 'linux/videodev2.h']), - 'deps': 'tv && !sys_videoio_h', - }, { - 'name': '--tv-v4l2', - 'desc': 'Video4Linux2 TV interface', - 'deps': 'tv && (sys_videoio_h || videodev)', - 'func': check_true, - }, { - 'name': '--libv4l2', - 'desc': 'libv4l2 support', - 'func': check_pkg_config('libv4l2'), - 'deps': 'tv-v4l2', - }, { - 'name': '--audio-input', - 'desc': 'audio input support', - 'deps': 'tv-v4l2', - 'func': check_true - } , { - 'name': '--dvbin', - 'desc': 'DVB input module', - 'deps': 'gpl', - 'func': check_true, - 'default': 'disable', - } -] - standalone_features = [ { 'name': 'win32-executable', @@ -1003,7 +968,6 @@ def options(opt): opt.parse_features('audio outputs', audio_output_features) opt.parse_features('video outputs', video_output_features) opt.parse_features('hwaccels', hwaccel_features) - opt.parse_features('tv features', radio_and_tv_features) opt.parse_features('standalone app', standalone_features) group = opt.get_option_group("optional features") @@ -1076,7 +1040,6 @@ def configure(ctx): ctx.parse_dependencies(video_output_features) ctx.parse_dependencies(libav_dependencies) ctx.parse_dependencies(hwaccel_features) - ctx.parse_dependencies(radio_and_tv_features) if ctx.options.LUA_VER: ctx.options.enable_lua = True |