From: Soft Works <softworkz@hotmail.com> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH] lavf/matroskadec: stop mapping text/plain attachments to AV_CODEC_ID_TEXT Date: Wed, 8 Jun 2022 07:43:19 +0000 Message-ID: <DM8P223MB0365F95C1E9F2C9C4222BDF6BAA49@DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM> (raw) In-Reply-To: <165467214169.13099.10591659789295187077@lain> > -----Original Message----- > From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of Anton > Khirnov > Sent: Wednesday, June 8, 2022 9:09 AM > To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH] lavf/matroskadec: stop mapping text/plain > attachments to AV_CODEC_ID_TEXT > > Quoting Soft Works (2022-06-08 08:39:21) > > > Overall I'd say this just strengthens the case for my original lavc > > > commit, since it is clearly helpful in exposing bugs in other code. > > > > As said already, I never doubted the validity of your patch, it was > > about the effect and unacknowledged responsibilities. > > > > What do you want to do with the text attachment "none" caption? > > Maybe a separate "cummy" codec id? > > Do we need to do anything about it? I am not a fan of inventing fake > codec ids for every conceivable kind of data. lavf already exports the > MIME type, that should be enough. Maybe the way it is printed can be > improved, but that is not urgent as far as I'm concerned. ffprobe provides multiple output formats which are intended to be machine- readable (e.g. xml, json). If it was just about interactive reading by a user, then it might in fact not matter that much. But for a machine, it was "text" and the patch changes it to "none". > I am not a fan of inventing fake > codec ids for every conceivable kind of data. This surely makes sense from a larger perspective, but when such fake ids are already being used, then it doesn't matter how many. 5 or 6 - 33 or 34 - that doesn't have relevant impact. At one point in the future, we might get rid of them for something better, but - again - the count won't be of much relevance. Whereas implementing some special sauce, different from the other attachment type handling just to avoid one more fake id - well, I'm not sure whether there would be any benefit in doing so. But when you want to do some kind of workaround instead, I don't mind either, I mean it's just about printing "text" instead of none. Ah, when you remove the mapping at the decoding side, you should probably remove it at the other side as well: https://github.com/FFmpeg/FFmpeg/blob/93505a9095bbacba9b2102a05191e0bc8ba36d4b/libavformat/matroskaenc.c#L2163-L2164 > > > I suppose it can make sense to log an error and continue when opening > > > the codec fails. This could be useful also for probing genuinely broken > > > streams where e.g. extradata parsing fails. > > > > > > There could also be an option like ffmpeg's -xerror that would make > > > ffprobe exit on failure. > > > > Sounds good to me, but I'm not sure whether everybody would be ok > > doing it exactly like this, as somebody might argue they would rely > > on ffprobe failing in such cases. > > I can submit a patch for that - unless no objections or better ideas > > would appear.. > > https://xkcd.com/1172/ I don't think it's absurd, neither hypothetical to ask whether somebody, would object a certain change --- BEFORE working spending time on it. Thanks, sw _______________________________________________ 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:[~2022-06-08 7:43 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-06-07 11:58 Anton Khirnov 2022-06-08 3:19 ` Soft Works 2022-06-08 3:45 ` Soft Works 2022-06-08 6:17 ` Anton Khirnov 2022-06-08 6:39 ` Soft Works 2022-06-08 7:09 ` Anton Khirnov 2022-06-08 7:43 ` Soft Works [this message] 2022-06-08 8:04 ` Anton Khirnov 2022-06-08 8:34 ` Soft Works 2022-06-08 11:29 ` Soft Works 2022-06-08 11:34 ` Soft Works 2022-06-08 12:16 ` Anton Khirnov 2022-06-08 15:38 ` Soft Works 2022-06-08 17:38 ` Anton Khirnov
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=DM8P223MB0365F95C1E9F2C9C4222BDF6BAA49@DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM \ --to=softworkz@hotmail.com \ --cc=ffmpeg-devel@ffmpeg.org \ /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 https://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/ https://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