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 84E5E4E34C for ; Mon, 10 Mar 2025 20:18:59 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2B4B868E0B9; Mon, 10 Mar 2025 22:18:55 +0200 (EET) Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7B49E68C282 for ; Mon, 10 Mar 2025 22:18:48 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 96EE9443AB for ; Mon, 10 Mar 2025 20:18:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1741637927; 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=EZWqmMu9lzgZGZDhMP3aHvnzhKMTvb0Tq17qjRGjobk=; b=oLy3AUGQ0oAl8v4aGNInMNSv9Y7XjAzHxrGc5S13/o9J79xkM88BctcCvPeaS1e2zwZwmj DfEjGBELCE3414kBqXGXb6iM5xP4TFHrnGkfObY6TKz5JUuQiL6BLArhS8mkWkrYw92t+r iKtpuNYBQAyQBMfo/bHflnb+RUPYc9L56jPjBb/X8BO6Lwqhwk13vup3XJ2Z3SQbOL52o0 wBrzinKdweH9w+o6p49UqByxX1wNZzU3lyXZta+9dey5DaNWVjikGf01ZZPnYI+CyO2QqC bjtCfjOv5Ni2OVqYEpUW9tF/xKAcJl2XBBcfDCWzAToIXWFdF3NoSxYIaQxm2g== Date: Mon, 10 Mar 2025 21:18:46 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250310201846.GM4991@pb2> References: <20250309180813.GI4991@pb2> <20250310164423.1998883-1-anders@onemimir.com> MIME-Version: 1.0 In-Reply-To: <20250310164423.1998883-1-anders@onemimir.com> X-GND-State: clean X-GND-Score: -70 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduvddtvdelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdeftddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfpihgvuggvrhhmrgihvghruceomhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtqeenucggtffrrghtthgvrhhnpeeigeektdejudffjefhteegjedtgeettefggedthfejgfevhfetgeekjedtvdfhveenucfkphepgedurdeiiedrieejrdduudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieejrdduudefpdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH] Include field_mode information in NUT stream info 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="===============1318242909690151599==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============1318242909690151599== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jw2gNKqOkyIch/pP" Content-Disposition: inline --jw2gNKqOkyIch/pP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi On Mon, Mar 10, 2025 at 05:44:22PM +0100, Anders Rein wrote: > This will make it possible to transmit raw video over NUT without losing > the field order information. [...] > diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c > index 55efb114c3..abe4e3fb98 100644 > --- a/libavformat/nutenc.c > +++ b/libavformat/nutenc.c > @@ -21,6 +21,7 @@ > =20 > #include > =20 > +#include "libavcodec/defs.h" > #include "libavutil/intreadwrite.h" > #include "libavutil/mathematics.h" > #include "libavutil/mem.h" > @@ -560,12 +561,22 @@ static int write_streaminfo(NUTContext *nut, AVIOCo= ntext *bc, int stream_id) { > count +=3D add_info(dyn_bc, "Disposition", ff_nut_dispositio= ns[i].str); > } > if (st->codecpar->codec_type =3D=3D AVMEDIA_TYPE_VIDEO) { > + const char* field_order; > uint8_t buf[256]; > if (st->r_frame_rate.num>0 && st->r_frame_rate.den>0) > snprintf(buf, sizeof(buf), "%d/%d", st->r_frame_rate.num, st= ->r_frame_rate.den); > else > snprintf(buf, sizeof(buf), "%d/%d", st->avg_frame_rate.num, = st->avg_frame_rate.den); > count +=3D add_info(dyn_bc, "r_frame_rate", buf); > + > + // Since the NUT specifications (nut.txt) do not support field o= rder information, > + // the stream_info side channel is used as a means to transfer t= his information. > + // This is strictly not a part of the NUT specifications and sho= uld not be required. > + field_order =3D ff_nut_serialized_field_order_value_or_null(st->= codecpar->field_order); > + if (field_order !=3D NULL) { > + count +=3D add_info(dyn_bc, "field_order", field_order); > + } either send a patch to nut.txt or it should be "X-field_order" for non standard fields thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Freedom in capitalist society always remains about the same as it was in ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin --jw2gNKqOkyIch/pP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZ89JIwAKCRBhHseHBAsP q+JXAJ9VvVsSab6YqNNtxRITzJwWlfo9ogCdFutAPZhKPCLiHZ+1Bq+At+g309c= =6z+9 -----END PGP SIGNATURE----- --jw2gNKqOkyIch/pP-- --===============1318242909690151599== 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". --===============1318242909690151599==--