From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id AE7DF49993 for ; Thu, 27 Feb 2025 22:58:18 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C7A6868DABF; Fri, 28 Feb 2025 00:58:16 +0200 (EET) Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id CC95568D363 for ; Fri, 28 Feb 2025 00:58:09 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 1D08B43287 for ; Thu, 27 Feb 2025 22:58:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1740697089; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UHgiWdql10rriM6sJQ5l3bdRJZ7scKbkGmNpmWyXgLE=; b=DowvJkGwPmTULN0tnaBl79iQCd2Ub3XHtncbKGWbzPdf6zTjaiTTzn7kiRmQcCD71pC724 b9U9FoqjK4hm6yiAsXX6dwN4qYUbj31D5QGU3o9Xf9txNguEIvMh0tcjpucAKat5FrbzTW S3x7MIHGrik4yjqbZOGmdl5TRgUJMHDkyWMhVao1U+xOYZXrVPQBOU4EVJH4Br1siwSfwN +oTB9411Cc48FBaEsCBJz0ETtCgXCjiNWMjFdkJa3vFx5yJP9BpEP4gFWHbAMQovn3pSjw fVcBS9ovyWKIvuhh1hK6V9Kh1RAgVccRKHho1xMH/cWSVzvagLzqSGZYxcedYg== Date: Thu, 27 Feb 2025 23:58:08 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250227225808.GJ4991@pb2> References: <20250226003856.GB4991@pb2> MIME-Version: 1.0 In-Reply-To: X-GND-State: clean X-GND-Score: -90 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdekkeejgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdluddtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtjeenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhepleekgefgffeiudefjeeuffejudehtddtudeltdehveevvedtieeulefhtdeutdeknecukfhppeeguddrieeirdeijedruddufeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeguddrieeirdeijedruddufedphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepfhhfmhhpvghgqdguvghvvghlsehffhhmphgvghdrohhrgh X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH] avformat/hls: Revert "reduce default max reload to 3" X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: multipart/mixed; boundary="===============5628105354200490540==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============5628105354200490540== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kjD4Z2VxQkJQWGs9" Content-Disposition: inline --kjD4Z2VxQkJQWGs9 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 26, 2025 at 11:38:29PM +0000, Soft Works wrote: >=20 >=20 > > -----Original Message----- > > From: ffmpeg-devel On Behalf Of > > Michael Niedermayer > > Sent: Mittwoch, 26. Februar 2025 01:39 > > To: FFmpeg development discussions and patches > devel@ffmpeg.org> > > Subject: Re: [FFmpeg-devel] [PATCH] avformat/hls: Revert "reduce default > > max reload to 3" > >=20 > > Hi > >=20 > > On Fri, Feb 07, 2025 at 02:39:56AM +0000, Soft Works wrote: > > > > > > > > > > -----Original Message----- > > > > From: Steven Liu > > > > Sent: Friday, February 7, 2025 3:24 AM > > > > To: FFmpeg development discussions and patches > > > devel@ffmpeg.org> > > > > Cc: softworkz > > > > Subject: Re: [FFmpeg-devel] [PATCH] avformat/hls: Revert "reduce > > > > default max reload to 3" > > > > > > > > softworkz =E4=BA=8E2025=E5=B9=B41=E6=9C=881= 9=E6=97=A5=E5=91=A8=E6=97=A5 16:52=E5=86=99=E9=81=93 > > =EF=BC=9A > > > > > > > > > > From: softworkz > > > > > > > > > > This change has caused regressions for many users and consumers. > > > > > Playlist reloads only happen when a playlist doesn't indicate that > > > > it > > > > > has ended (via #EXT-X-ENDLIST), which means that the addition of > > > > future > > > > > segments is still expected. > > > > > It is well possible that an HLS server is temporarily unable to > > > > serve > > > > > further segments but resumes after some time, either indicating a > > > > > discontinuity or even by fully catching up. > > > > > With a segment length of 3s, a max_reload value of 1000 correspon= ds > > > > to > > > > > a duration of 50 minutes which appears to be a reasonable default. > > > > > > Hi Steven, > > > > > > thanks for reviewing > > > > > > > I have no opinion about this, lgtm > > > > > > Neither do I. As this is a reversion, I meant to say that the origina= l value > > wasn't irrational as it might have appeared when the change to 3 was m= ade. > > > Whether it's 100, 1000 or 10000 might be debatable, just 3 is way too= low, > > so without any strong reason towards 100 or 10000, I think that going b= ack > > to the original value makes the most sense. > >=20 > > If 3 is too small and 1000 is too large then try the value in the middle > > sqrt(3*1000) =3D ~50 >=20 > How about=20 >=20 > (3 + 1000) / 2 =3D ~501 >=20 > or=20 >=20 > sin((asin(0.003) + asin(1)) /2) * 1000 =3D ~708 >=20 > =F0=9F=98=8A our goal is to bisect the space to find a point more people are happy with 999 and 1000 differ less than 3 and 4 do, or in other words we care alot mo= re about +1 in the low numbers. If we knew 900 is too small and 1000 is ok we would not test 950, it no longer makes a difference but if we knew 10 is too small and 100 is ok we would want to test something between because it could reduce the time the player is stuck by 80% based on above we should average in something like logarithmic space thus e^ ((log(3) + log(1000))/2) which is again about 50 This detail matters here because the cost of bisecting by pushing changes to master is bigger than a make call my choice was not arbitrary :) thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB You can kill me, but you cannot change the truth. --kjD4Z2VxQkJQWGs9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZ8Dt/AAKCRBhHseHBAsP q2ndAJ4nS08DvxOQGwS8Ow3OlfLqYRjt+QCgirhQwTZoTWGJLtzxswzwIKeHkq0= =YfNe -----END PGP SIGNATURE----- --kjD4Z2VxQkJQWGs9-- --===============5628105354200490540== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". --===============5628105354200490540==--