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 A09734BF96 for ; Fri, 23 May 2025 00:46:10 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id AC4B968D0B7; Fri, 23 May 2025 03:46:07 +0300 (EEST) Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id D7D9668D078 for ; Fri, 23 May 2025 03:46:01 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 12C624397B for ; Fri, 23 May 2025 00:46:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1747961161; 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=k6G9lPUKkkbxP9szn+wvmR9uFu6JN/5EQrcTtj6X0G8=; b=S867mWgWDYdbpotiiYlZiMyWTiHjuREplXieXGQLH7X4jW8psPhvST1XC3VF+HMS53hMgp d7SDShqsJwodb+ON+f6wCYCGAPd3f7C7cw5rMGr1ZfKcyUjkI5F+2R5qRwvOHRi3uaFHSI K69xNU8q24uRxo45FNVtYUxzYggXOhN4yO9+vr4lJtQbXZk499+mTCL4lRf5NDuzaiZaM/ MyT/lriq2hkvZiTwlyR53phiUomUVKl3iCz2hhGvwEJznRI6N7LylKdoGEoTaNJ1yEZeox E2TueiF4xEb7J2AL2wBg9l63T59xLfqhF+ZSL1BCR6zsU9Jsh5DDXW9e1Rir3A== Date: Fri, 23 May 2025 02:45:59 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250523004559.GU29660@pb2> References: MIME-Version: 1.0 In-Reply-To: X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddtgdejgeefucdltddurdegfedvrddttddmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdduhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpefoihgthhgrvghlucfpihgvuggvrhhmrgihvghruceomhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtqeenucggtffrrghtthgvrhhnpeelkeeggfffiedufeejueffjeduhedttdduledtheevveevtdeiueelhfdtuedtkeenucfkphepgedurdeiiedrieejrdduudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieejrdduudefpdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [FEATURE PROPOSAL] Extracting codec-level data to binary files 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="===============2305144828376095004==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============2305144828376095004== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="q4Ts1OunURWK/gs/" Content-Disposition: inline --q4Ts1OunURWK/gs/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Ronald On Thu, May 22, 2025 at 07:59:06AM -0400, Ronald S. Bultje wrote: > Hi, >=20 > On Wed, May 21, 2025 at 9:34=E2=80=AFAM Timoth=C3=A9e < > timothee.informatique@regaud-chapuy.fr> wrote: >=20 > > Hello, > > > > I am interested in expanding ffmpeg's capabilities to extract > > low-level data from video codecs. Specifically, I'd like to implement > > functionality that would allow exporting frame data, macroblock > > information, quantization tables, and similar codec-specific elements > > to binary files for further analysis. > > > > After searching through the documentation and existing features, I > > haven't found similar functionality, though I may have missed > > something. Has this been implemented before, or are there related > > features I should examine? >=20 >=20 > Some older codecs implement minor variants for this, e.g. grep > for AV_FRAME_DATA_MOTION_VECTORS, which attaches a frame's motion vectors > to the picture data. I believe there's an example app and possibly a filt= er > to overlay MVs on top of the video frame based on this concept. You could > extend this to cover other (macro)block info. There used to be a variant = of > this for quant-tables also but I can't find it, maybe it was removed. For motion vectors: =2E/ffplay -flags2 +export_mvs -i matrixbench_mpeg2.mpg -vf codecview=3Dmv= =3Dpf+bf+bb For macroblock segmentation and type vissualization + also motion vectors: ffplay-3.4.13 -debug vis_mb_type matrixbench_mpeg2.mpg -vf codecview=3Dmv= =3Dpf+bf+bb For QP vissualization + also motion vectors: ffplay-3.4.13 -debug vis_qp matrixbench_mpeg2.mpg -vf codecview=3Dmv=3Dpf+= bf+bb For qp values dumped on the console =2E/ffplay -debug qp -i matrixbench_mpeg2.mpg [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The real ebay dictionary, page 1 "Used only once" - "Some unspecified defect prevented a second use" "In good condition" - "Can be repaird by experienced expert" "As is" - "You wouldnt want it even if you were payed for it, if you knew .= =2E." --q4Ts1OunURWK/gs/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaC/FRAAKCRBhHseHBAsP qzJTAJwKsbucSUjGvPnfVnM4nDdM7gwyMgCcDC33zQi97hWi2qLXDQfKRyVKTBc= =grYo -----END PGP SIGNATURE----- --q4Ts1OunURWK/gs/-- --===============2305144828376095004== 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". --===============2305144828376095004==--