From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 5683640118 for ; Sat, 16 Aug 2025 17:20:18 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 48C5468CF0A; Sat, 16 Aug 2025 20:20:11 +0300 (EEST) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id B1D0F68BC2E for ; Sat, 16 Aug 2025 20:20:04 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 0AA5B43917 for ; Sat, 16 Aug 2025 17:20:03 +0000 (UTC) Date: Sat, 16 Aug 2025 19:20:03 +0200 To: FFmpeg development discussions and patches Message-ID: <20250816172003.GT29660@pb2> References: <20250702144355.GE29660@pb2> <20250702171641.GF29660@pb2> <20250703155205.GK29660@pb2> <20250706143354.GA29660@pb2> <20250803213232.GH29660@pb2> MIME-Version: 1.0 In-Reply-To: X-GND-State: clean X-GND-Score: -70 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgddugeejgeefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdeftddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfpihgvuggvrhhmrgihvghruceomhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtqeenucggtffrrghtthgvrhhnpeeigeektdejudffjefhteegjedtgeettefggedthfejgfevhfetgeekjedtvdfhveenucfkphepgedurdeiiedrieehrddujeeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieehrddujeeipdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [RFC] Advanced Error Codes 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: , From: Michael Niedermayer via ffmpeg-devel Reply-To: FFmpeg development discussions and patches Cc: Michael Niedermayer Content-Type: multipart/mixed; boundary="===============4774921939882992768==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============4774921939882992768== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="EOWQjkk+rEEi2v5F" Content-Disposition: inline --EOWQjkk+rEEi2v5F Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Nicolas On Tue, Aug 12, 2025 at 04:43:29PM +0200, Nicolas George wrote: > Michael Niedermayer (HE12025-08-03): > > well, you may have deep call stacks > >=20 > > user_app->libavfilter->libavformat->libavcodec->decoder->jpeg_decoder->= =2E.. > >=20 > > and the user of the user_app needs to know what file had what failure > > so the error details must pass through all this. > >=20 > > Some of the API calls failing here can be final calls that are > > expected to leave nothing allocated on a failure return. > >=20 > > also other subsequent and prior errors may have occured in some contexts > > I thiink we want to be able to distingish what caused teh current error= from > > the previous or next >=20 > Before we dig deeper into the technical details, we need to clarify what > exactly you need to do. yes, also to clarify this from my side. This error code work originates from interrest of multiple companies in wanting improvments in the error codes. This interrest is far from clear, and there where intermediaries between me and the companies who want this. So it involves some guesswork but one thing that was mentioned was the error code return from ffmpeg command line tool being not enough, and xerror also being not enough as it always aborts. >=20 > The subject of the thread evokes error messages. Error messages are > meant for users, to give them the information they need to fix their > issue: did they make a typo in the file name? did they forget to enable > wifi? do they need to free some space on their hard drive? is there no > solution because the file is too damaged? This is about error codes, and i do not think anything that goes only to the terminal will help. It is not about a user or developer looking at the ffmpeg output. Because there is no user, these are automated uses of ffmpeg. Iam sure the number of FFmpeg instances they run is way too large for a human to look through the output. I believe they simple want richer error codes that provide more details of why a instance failed like not just "error" and maybe not just "OOM" but maybe OOM in the mov demuxer reading file.mov at file position 5:12 id guess, they could then cluster these into similar issues, and pass each cluster to a developer to investigate and fix without that lets say you have a million failures, what do you do ? you pick a random one and investgate and you cant do anything else until you figured that one out because if you pick 5 you might pick the same bug 5 times. I think what they want is simply more details / vissibility into failures [...] >=20 > What I want to improve is error messages, to make it easier for > applications to separate them from the noise of logs and display them in > nice dialog boxes. We might get a few features helping debug at the same > time, but it is not the main objective, and chasing two hares is a > recipe for catching zero. I think theres some similarity between what you are thinking of and what the goals here are, but unless the companies themselfs speak up here in public and clarify what exactly they want. Its guesswork for me That said of course iam not just interrested in this because some company wants it. But that was what brought the idea up of improved error codes thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB "I am not trying to be anyone's saviour, I'm trying to think about the future and not be sad" - Elon Musk --EOWQjkk+rEEi2v5F Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaKC9vAAKCRBhHseHBAsP q1A/AJ9mNpmExwY8EzDdY63NrIy6BOSEkwCfbzDB5dMkKUTz/ocOO/4lJZFK0wE= =AyHX -----END PGP SIGNATURE----- --EOWQjkk+rEEi2v5F-- --===============4774921939882992768== 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". --===============4774921939882992768==--