From: Michael Niedermayer via ffmpeg-devel <ffmpeg-devel@ffmpeg.org> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: Michael Niedermayer <michael@niedermayer.cc> Subject: Re: [FFmpeg-devel] [RFC] Advanced Error Codes Date: Sat, 16 Aug 2025 19:20:03 +0200 Message-ID: <20250816172003.GT29660@pb2> (raw) In-Reply-To: <aJtTEdUQDAC5rL2o@phare.normalesup.org> [-- Attachment #1.1: Type: text/plain, Size: 3530 bytes --] 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 > > > > user_app->libavfilter->libavformat->libavcodec->decoder->jpeg_decoder->... > > > > and the user of the user_app needs to know what file had what failure > > so the error details must pass through all this. > > > > Some of the API calls failing here can be final calls that are > > expected to leave nothing allocated on a failure return. > > > > 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 > > 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. > > 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 [...] > > 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 [...] -- 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 [-- Attachment #1.2: signature.asc --] [-- Type: application/pgp-signature, Size: 195 bytes --] [-- Attachment #2: Type: text/plain, Size: 251 bytes --] _______________________________________________ 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".
next prev parent reply other threads:[~2025-08-16 17:20 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2025-07-02 14:43 Michael Niedermayer 2025-07-02 14:52 ` Nicolas George 2025-07-02 17:16 ` Michael Niedermayer 2025-07-03 8:56 ` Nicolas George 2025-07-03 15:52 ` Michael Niedermayer 2025-07-04 13:29 ` Nicolas George 2025-07-06 14:33 ` Michael Niedermayer 2025-07-28 22:01 ` Nicolas George 2025-07-28 22:04 ` Nicolas George 2025-08-03 21:32 ` Michael Niedermayer 2025-08-12 14:43 ` Nicolas George 2025-08-16 17:20 ` Michael Niedermayer via ffmpeg-devel [this message] 2025-07-02 17:21 ` Michael Niedermayer
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20250816172003.GT29660@pb2 \ --to=ffmpeg-devel@ffmpeg.org \ --cc=michael@niedermayer.cc \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror http://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ http://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git