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 ESMTP id 1C12145432 for ; Sun, 30 Apr 2023 15:06:48 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 10EC268BF66; Sun, 30 Apr 2023 18:06:44 +0300 (EEST) Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [217.70.178.230]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1FF0A68BE94 for ; Sun, 30 Apr 2023 18:06:38 +0300 (EEST) Received: (Authenticated sender: michael@niedermayer.cc) by mail.gandi.net (Postfix) with ESMTPSA id 77434240006 for ; Sun, 30 Apr 2023 15:06:37 +0000 (UTC) Date: Sun, 30 Apr 2023 17:06:36 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20230430150636.GK275832@pb2> References: <20230428095508.221826-1-george@nsup.org> <20230428095508.221826-5-george@nsup.org> <168276131126.3843.11789945625076765172@lain.khirnov.net> <168279285287.3843.114763781387602494@lain.khirnov.net> MIME-Version: 1.0 In-Reply-To: <168279285287.3843.114763781387602494@lain.khirnov.net> Subject: Re: [FFmpeg-devel] [PATCH 5/8] lavu: add a JSON writer API (WIP) 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="===============3331409824801095784==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============3331409824801095784== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rxd0khGtqYUbFQFd" Content-Disposition: inline --rxd0khGtqYUbFQFd Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 29, 2023 at 08:27:32PM +0200, Anton Khirnov wrote: > Quoting Nicolas George (2023-04-29 19:11:52) > > Anton Khirnov (2023-04-29): > > > As far as I can see, there are exactly two places in the codebase that > > > produce JSON: af_loudnorm and ffprobe. > >=20 > > I think I remember finding a few other places, but it does not matter > > much. > >=20 > > Users have been asking=B9 for parse-friendly output from filters for ye= ars, > > and JSON is often the format they prefer. Therefore, all the filters > > that log useful information are candidates where a JSON writing API is > > useful. >=20 > libavfilter is a C library with a C API. Any structured output from > filters should be in the form of a C object, typically a struct. I do > not see why are you so in love with strings, they make for terrible > APIs. There are many projects which use libavcodec, format, filter Human users use these projects If the standarization is at a C struct level only then the human interface for each application can be different. Thats fine if the 2 cases use fundamentally different interfaces like a GUI draging, droping and connecting components vs some command line interface. But if 2 applications both use command line / string based interfaces it would be nice to the human user if she could use/learn the same syntax and transfer a working example / script from one to the other. So i think strings do matter for C libs because of that. thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The day soldiers stop bringing you their problems is the day you have stopp= ed=20 leading them. They have either lost confidence that you can help or conclud= ed=20 you do not care. Either case is a failure of leadership. - Colin Powell --rxd0khGtqYUbFQFd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZE6D9wAKCRBhHseHBAsP q/yIAJoCZgCSh187HkJ8spYEoUDk6oGUaACeLttWdgHgYhBueNCWMJdaHtUyA/o= =Hw9P -----END PGP SIGNATURE----- --rxd0khGtqYUbFQFd-- --===============3331409824801095784== 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". --===============3331409824801095784==--