From e8b8edca1a4f486e45f36b30b88e9717bdaef106 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 12 Dec 2023 00:26:05 +0100 Subject: adaptive transcode still too aggressive --- web/script/player/profiles.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'web/script') diff --git a/web/script/player/profiles.ts b/web/script/player/profiles.ts index eef28c4..ad965f8 100644 --- a/web/script/player/profiles.ts +++ b/web/script/player/profiles.ts @@ -46,8 +46,9 @@ export class ProfileSelector { const sup_remux = await this.remux_supported(track); const min_prof = sup_remux ? -1 : 0 const co = profile.value?.order ?? min_prof - const current_bitrate = profile_byterate(profs[co], 5000 * 1000) - const next_bitrate = profile_byterate(profs[co - 1], 5000 * 1000) + // TODO use actual bitrate as a fallback. the server should supply it. + const current_bitrate = profile_byterate(profs[co], 500 * 1000) + const next_bitrate = profile_byterate(profs[co - 1], 500 * 1000) // console.log({ current_bitrate, next_bitrate, co, bandwidth: this.bandwidth.value * 8 }); if (!sup_remux && !profile.value) profile.value = profs[co]; if (current_bitrate > this.bandwidth.value * PROFILE_DOWN_FAC && co + 1 < profs.length) { -- cgit v1.2.3-70-g09d2