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 21BDF4C12C for ; Fri, 23 May 2025 12:12:29 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id B910568DF24; Fri, 23 May 2025 15:12:21 +0300 (EEST) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 6B23468DED1 for ; Fri, 23 May 2025 15:12:15 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id A293243B16 for ; Fri, 23 May 2025 12:12:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1748002334; 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=n3arwSRp2nX4fk9e3cTOSLOhNTnT3d4qQMY2fk5//RA=; b=mYk54Qjg5I4skikFRZTBwu7MZnz4xGVj8q+6QWZSvtzNsphSofdjiJU/ZKZKZFXM3528zC UpfhiY0zSyQrK8WQr24qZkC/ovFyPJWjm/0UFhqeQPUSUvppy4y4To48yoUCtdCYYKEAFr a08izjYEcTs7sLCu4/rUm5cyH495gnf2yx5EMtaClUVq5JIE885wBcMp91WnPjjnt3Kml0 Vn5lY7M9RG7Wka8+BSVaBKpOjbWxfKOVuTY+qTZ2SbyCpUOUWs959vMIY0VYVelPPfL9gP 3oZvXHPEKCK238CGZnw1U9Er9oamSNLZVzCvFeZhJIAhtcr9wxaaz+K69U6o2Q== Date: Fri, 23 May 2025 14:12:13 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250523121213.GA29660@pb2> References: MIME-Version: 1.0 In-Reply-To: X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddtgdekkedvucdltddurdegfedvrddttddmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdduhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpefoihgthhgrvghlucfpihgvuggvrhhmrgihvghruceomhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtqeenucggtffrrghtthgvrhhnpeffheevhfdvvdfhtdfgtefhtdeuleeftdevkeffleejtefhgedthfefgffgueeftdenucffohhmrghinhepfhhfmhhpvghgrdhorhhgnecukfhppeeguddrieeirdeijedruddufeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeguddrieeirdeijedruddufedphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepfhhfmhhpvghgqdguvghvvghlsehffhhmphgvghdrohhrgh X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [RFC] Error handing with CBS 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="===============3294804725647395854==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============3294804725647395854== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="C/7QAxk31FAUhYUE" Content-Disposition: inline --C/7QAxk31FAUhYUE Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 23, 2025 at 11:44:26AM +0800, Zhao Zhili wrote: > I have created a ticket on trac and uploaded a sample. >=20 > https://trac.ffmpeg.org/ticket/11603 >=20 > The issue is CBS can detect invalid data in the bitstream, and report err= or. > How to handle these error is a problem. >=20 > With a single error in SEI, it can break the decoding/transcoding process. >=20 > ffmpeg -bsf:v h264_metadata -i input.mp4 -f null - >=20 > [h264_metadata @ 0x60000392c0f0] Invalid SEI user data unregistered paylo= ad. > [h264_metadata @ 0x60000392c0f0] Failed to read unit 0 (type 6). > [h264_metadata @ 0x60000392c0f0] Failed to read access unit from packet. > [vist#0:0/h264 @ 0x14c704ba0] Error applying bitstream filters to a packe= t: Invalid data found when processing input > [in#0/mov,mp4,m4a,3gp,3g2,mj2 @ 0x14c6062c0] Task finished with error cod= e: -1094995529 (Invalid data found when processing input) > [in#0/mov,mp4,m4a,3gp,3g2,mj2 @ 0x14c6062c0] Terminating thread with retu= rn code -1094995529 (Invalid data found when processing input) >=20 > Part of the problem is ffmpeg_demux.c doesn=E2=80=99t respect exit_on_err= or with > bsf error. >=20 > Another problem is CBS drops whole packet with a single error in SEI, and > the user of CBS doesn=E2=80=99t have the context where the error happened. >=20 > I don=E2=80=99t know how to fine-tuning the error handing and without bre= aking the > layered design. i think CBS should not drop damaged data thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The bravest are surely those who have the clearest vision of what is before them, glory and danger alike, and yet notwithstanding go out to meet it. -- Thucydides --C/7QAxk31FAUhYUE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaDBmGgAKCRBhHseHBAsP q+k/AJ0SJpOiod+sa4tZlqsTbPrFpRN5jQCfduFCHHI6+xmjNSvrHXJ6nX3KRTw= =KvP/ -----END PGP SIGNATURE----- --C/7QAxk31FAUhYUE-- --===============3294804725647395854== 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". --===============3294804725647395854==--