From a23d53e73b0e16422f5f1900420d5b1c1660e749 Mon Sep 17 00:00:00 2001 From: MoojMidge <56883549+MoojMidge@users.noreply.github.com> Date: Sat, 16 Mar 2024 18:55:55 +1100 Subject: [PATCH] Update setup wizard for old and low powered devices - Disable MPEG-DASH for old devices as adaptive 720p H264 streams are not always available - This allows non-adaptive 720p streams to be used instead without InputStream.Adaptive - InputStream.Adaptive still used for live streams - Enable VP9 for low powered as adaptive 720p/1080p H264 streams are not always available - 1080p VP9 should be possible on a RPI4 --- .../lib/youtube_plugin/youtube/helper/yt_setup_wizard.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/lib/youtube_plugin/youtube/helper/yt_setup_wizard.py b/resources/lib/youtube_plugin/youtube/helper/yt_setup_wizard.py index cbc37eb6e..347adde71 100644 --- a/resources/lib/youtube_plugin/youtube/helper/yt_setup_wizard.py +++ b/resources/lib/youtube_plugin/youtube/helper/yt_setup_wizard.py @@ -381,7 +381,7 @@ def process_performance_settings(_provider, context, step, steps): } stream_features = { 'old': ['avc1', 'mp4a', 'filter'], - 'low': ['avc1', 'vorbis', 'mp4a', 'ssa', 'ac-3', 'ec-3', 'dts', 'filter'], + 'low': ['avc1', 'vp9', 'vorbis', 'mp4a', 'ssa', 'ac-3', 'ec-3', 'dts', 'filter'], 'medium': ['avc1', 'vp9', 'hdr', 'hfr', 'no_hfr_max', 'vorbis', 'mp4a', 'ssa', 'ac-3', 'ec-3', 'dts', 'filter'], 'high': ['avc1', 'vp9', 'hdr', 'hfr', 'vorbis', 'mp4a', 'ssa', 'ac-3', 'ec-3', 'dts', 'filter'], 'recent': ['avc1', 'vp9', 'av01', 'hdr', 'hfr', 'vorbis', 'mp4a', 'ssa', 'ac-3', 'ec-3', 'dts', 'filter'], @@ -396,6 +396,11 @@ def process_performance_settings(_provider, context, step, steps): 'max': 50, } + if device_type == 'old': + settings.use_isa(True) + settings.use_mpd_videos(False) + settings.live_stream_type(2) + settings.mpd_video_qualities(video_qualities[device_type]) settings.stream_features(stream_features[device_type]) settings.items_per_page(num_items[device_type])