Skip to content

Commit

Permalink
Update setup wizard for old and low powered devices
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
MoojMidge committed Mar 17, 2024
1 parent 31d8e81 commit a23d53e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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])
Expand Down

0 comments on commit a23d53e

Please sign in to comment.