From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 77BB2CA1007 for ; Wed, 3 Sep 2025 02:18:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References:Cc:To: Subject:Date:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5ejbMkMYaIIhAJEmh531Ej1gaYd9f5Mv1jKh2tv8xwc=; b=F2j4yXOsgqCPL6g8H2I9IZvBlF AabkBS436EQyJNBHTVRUcLPiMIMPLjerL4a4yda2XOQuKJ/X+Gg9Q//AxSjuDK/0P9VpwxXRdnHoR B1DAtnwp9ZzfIOIEMuLOJ2v8IRieZQFxY4c3pYGLwuSjG1rO9aBiyYwVNKsk1Cup7Jg8eKqlHeEZT Mlx1uOZxngCE4G429XDLdep+lOygXUtC+5K/4MiEH0f33zegKWJEQgudUH9uCJGHTfuBdigmQgjhe /NPmPdJloKSen5fkUGHt48FgfxMQirxol5o729l9y84rkEO7VToUlw+4f+A2ZO2uaKihVPphlcfFl fhYcHvGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1utd50-00000003DyB-0uKC; Wed, 03 Sep 2025 02:18:34 +0000 Received: from mail-northeuropeazlp170110003.outbound.protection.outlook.com ([2a01:111:f403:c200::3] helo=DU2PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1utcze-00000003Cno-1XXL for linux-arm-kernel@lists.infradead.org; Wed, 03 Sep 2025 02:13:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qMllZGcZD5DmdCGg5pBlqif4wG0NpLJD/FCFlzfCZl3KTleb+hqZTLC/wUZ8Dmw1yNeiba2817RupuFRwmJxQQ040446kJSaHUSbzd8Jxus4oC692Ra9IOUP7IeBIv92067LifRfrt4Qgz1/mNhKYJbNpFy8WbtINIC0NZ66umUvlWjIOtKnEXldp9b9YUGWSFh8PuWnPMaV5N2rZ8Ij/2RWwslR7OMZE28/6iTyjBgalBjp1lAq/4sJj1KuvFdIjo3Q5ZTYJzvpIqx5Gr/I2Ea7PaQQqAOokX5DHDW2hrKcT8ccbn7nDJ3JOtO8/WZQid91xN0zXG6NWR1T2e2fkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5ejbMkMYaIIhAJEmh531Ej1gaYd9f5Mv1jKh2tv8xwc=; b=p/U3vwiE8HsnEVxds/sjDLwpk0rvWp8QMslH84P55DMAhPPsBalHwNuRfR9wYsJojVVBlexVqVaSuJoBqs0BNjJ38Os/a2AeYmtsW3GCopFJwLGp466QNKIRy5fAMd0BIzGE4SQbl/D9mFL5R/oancIYcBYi1HBsKjQquafzTsnyqUAziCOZTwJU3IYX2mzBHQSrWMFZQ6s91lFAHFYa9quHmoGycZ0Dtdaz7xIfr4Gv/d0biuHZKQj1ZVnAQM4SHMSqusbHRiXMR42tGJzObELriLEGmFNDQADg9bCafqo6+Wd6nLYno+NKPRyu3JDkRB0E/6RNV+plxL4lpyFMHg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5ejbMkMYaIIhAJEmh531Ej1gaYd9f5Mv1jKh2tv8xwc=; b=As3cPu7qWLIfYyFNGQXB9dNA4f2o0K0garPBYIzZTB6necIOXiKPguMgzStwSlgi6u76HYayr9gLFTqcu3BNPkjVrCZvJf4WUZoClnpiWbMhVogiVX8/c9pQp8Fp5AsuXyECzosQPelYhISnZTqhIAOlYViJtyHjU0z/wp1FeMKGaPKXsvbY31jUNkcbak/Dbl2CNHXu9La0EOkKQ3EQZf1owjlVknjGS7TBLeZZu9ORu+9Jy6mW7qBJlTKKQ3k9H+iN/4Vaw91WGqoNwA6OmazzFATFhCUhV5QOkWVCOhAS+AD51Wd5MRBcD9n9DEWcGS4pdObTFqc5tIAo420k+Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8254.eurprd04.prod.outlook.com (2603:10a6:102:1cd::24) by VI0PR04MB10162.eurprd04.prod.outlook.com (2603:10a6:800:244::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9073.21; Wed, 3 Sep 2025 02:12:54 +0000 Received: from PAXPR04MB8254.eurprd04.prod.outlook.com ([fe80::2755:55ac:5d6f:4f87]) by PAXPR04MB8254.eurprd04.prod.outlook.com ([fe80::2755:55ac:5d6f:4f87%4]) with mapi id 15.20.9073.021; Wed, 3 Sep 2025 02:12:54 +0000 Message-ID: <445aa6ea-2630-4fce-955a-e9df422fdf7d@oss.nxp.com> Date: Wed, 3 Sep 2025 10:12:44 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] media: amphion: Drop the sequence header after seek for VC1L To: Nicolas Dufresne , mchehab@kernel.org, hverkuil-cisco@xs4all.nl Cc: sebastian.fricke@collabora.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, xiahong.bao@nxp.com, eagle.zhou@nxp.com, imx@lists.linux.dev, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20250725080712.1705-1-ming.qian@oss.nxp.com> <10a2f9865e96655c99ee377d542b5a06bb0146b3.camel@ndufresne.ca> From: "Ming Qian(OSS)" In-Reply-To: <10a2f9865e96655c99ee377d542b5a06bb0146b3.camel@ndufresne.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SI1PR02CA0039.apcprd02.prod.outlook.com (2603:1096:4:1f6::9) To PAXPR04MB8254.eurprd04.prod.outlook.com (2603:10a6:102:1cd::24) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8254:EE_|VI0PR04MB10162:EE_ X-MS-Office365-Filtering-Correlation-Id: 3630657e-5ba1-426b-bcc3-08ddea8f63e7 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|376014|19092799006; X-Microsoft-Antispam-Message-Info: =?utf-8?B?dFhXOGR5czMrQ09mcEZvcW9PSXBTeno5YVhUVmlkVDUzTFl0S21Ud1hURVdG?= =?utf-8?B?dE10MnZSNU9ud3htVHBndGMzTGNteWRINGNKSWVqYTRKVEtKWjBKTnFhZnd4?= =?utf-8?B?bUVTdkVMQmhRY2VLMEtBM3pBNlpQbVgwUks1WjFhL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.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8254.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(376014)(19092799006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bHkyMU9tSk91bVlabUJxS09HTXhGN2NpUGM4V3k4KzJWSG95VVlvV3VPcUti?= =?utf-8?B?QnFHT05GMFJKYnFKb0lKemRBZjAvcU5UZUhqVTFqa3Mwb0RpbHBFRTZ6MFNN?= =?utf-8?B?Y1NZYTNaSkdsN1BEMEFQZ0xLTVFleS9SYVNMRHhMTFlDVFVJMFAxNHZhY1Ni?= =?utf-8?B?WDRLanJ4STVwR0Y5aUdiVHBrZ1NDOWlDVlV1blJ2ZGtGUUZ2OVpWL3ZuRmd1?= =?utf-8?B?RkcwWDludm9SSkw1VjJucEpoS0ZETWp5SjBYOHduYkx3MlI3Z1lGSm5CK0V4?= =?utf-8?B?VzBaZkNzUE4wSi92MU12NjM1QUR0WWtWemRyajdpY1VYSHU0dldBS2dwMnRi?= =?utf-8?B?MFFuV3l2cTZOa2paUTZnTnhuWVZDMVo1a2hiam56TDN0VlRmeVZ2YXpVcXJP?= =?utf-8?B?dEFMUWYrMnA1Ry8xbXFYTlp1WUNITWV3ZTlvUG1VSVZ3VFBXYTAzcnRtTWV1?= =?utf-8?B?Rnd3ckZDYVhubWZTL0tFWXNvRXNhTFZEcUViZURiWjJtTExIQmw5R0ljcnZV?= =?utf-8?B?bWRWMXlQSDNGRE16clZ5SllOTUMwUU8rczltMEtmZEVVaVMxYVZHc2xmYnp6?= =?utf-8?B?eUxnQzZ4ZHVNNnVXT0VaakVFZFhpSVplVFUyRUJ4N0QzV0prQXpNZEdkMTZk?= =?utf-8?B?bHR3MFVOU0NoNDZwUlNGNUxrWS9BUnBnTy9JRnNzMFY3bHpRTGRFZ0Q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U1EOXNkUmJvM2dZQUZO?= =?utf-8?B?S2hNUzNyS3pOZnJSMldaaVR2S3V6cjZpci9XKzhoTEw0UjlzWFd0M09RU25O?= =?utf-8?B?NHJ1N0VuVHN6eWFTZEo5cHB1UlpzR2s3SS9qcmdUdFNHdHVmYjVTWDB0OU4w?= =?utf-8?B?K2d4VXdQYnFSWkR2SzVHa1l5QVBPY2xwZ2ZFY1hJWnNiNWhkVkZMMUZxQ1V2?= =?utf-8?B?TWtQSjVTdTBVRjVEaWFwK1A5V09WZU04MGVwQ1Q4RW8wZ3BRQjlrVmFZT2pJ?= =?utf-8?B?ZFZjSzJzL0xYOHJ2VFQzRk1tQis5WHpqcjBRYzFiNEFFUUU0T2wyYWM3RWsx?= =?utf-8?B?ZFhrZndET0V5Z25tdUlYNk9oeXc0MXdJL1JiMnBJUkRna2RCTHZ0OXF4VVFw?= =?utf-8?B?WDhoL1d5NG5YUjdVcXo2MWlRZ2FHaXplTjhvUmxEQUVTRVVtN2dtek9XNlRD?= =?utf-8?B?Qjl1Mzh3SmVNNGVXRkxjSEkrOGxadE5oN3I2Y2ZXWDc3N05QRlprUWVBWWhy?= =?utf-8?Q?RBeWgy5k11+TsIBTUAm8XNm8p?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3630657e-5ba1-426b-bcc3-08ddea8f63e7 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8254.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Sep 2025 02:12:53.9532 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: U8iJDBjM2K0H23DdjwWmkmKkmcOMhTcLh1CNQYgFpxn6p/fwGaIxJX2hy/A0HlUJpHVoVJC3lYP3IET9RI1J2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10162 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250902_191302_552168_47433616 X-CRM114-Status: GOOD ( 26.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Nicolas, On 9/3/2025 1:36 AM, Nicolas Dufresne wrote: > Hi, > > just adding to my anwer, > > Le mardi 02 septembre 2025 à 13:01 -0400, Nicolas Dufresne a écrit : >> Le lundi 01 septembre 2025 à 17:41 +0800, Ming Qian(OSS) a écrit : >>> >>> > > [...} > >>>> >>>> Nicolas >>> >>> I tested this with gstreaer, not FFMPEG, >>> And I checked the gstreamer code in our repository, Then I found the >>> following related code: >>> >>> } else if (g_str_equal (mimetype, "video/x-wmv")) { >>> const gchar *format = gst_structure_get_string (structure, "format"); >>> if (format) { >>> if (!g_ascii_strcasecmp (format, "WVC1")) >>> fourcc = V4L2_PIX_FMT_VC1_ANNEX_G; >>> else if (!g_ascii_strcasecmp (format, "WMV3")) >>> fourcc = V4L2_PIX_FMT_VC1_ANNEX_L; >>> } >>> >>> Basically it processes WMV3 into VC1_ANNEX_L, and WVC1 to VC1_ANNEX_G. >>> I didn't found them in the upstream gstreamer repository. >>> Now I'm not sure if it is correct userspace behavior. >> >> Its a little concerning, since we are in the largely untested territory. >> Without >> proper documentation and with all the downstream changes done to userspace, we >> can easily endup with NXP considering this is the right mapping and let's say >> Qualcomm or Samsung thinking differently. Since this is for upstream, we need >> to >> ensure this is concistant. Have you reached to other driver maintainers >> already >> to discuss and resolve the subject in a way it works for everyone ? > > So I checked Samsung implementation and your interpretation seems to be the > same. They MAP VC1_ANNEX_G to VC1 Advanced Profile Decoding in their > driver. Venus drivers does not care and just map both to VC1. > > If I quote here Wikipedia's Window Media Video page: > The Simple and Main profile levels in WMV 9 are compliant with the same > profile levels in the VC-1 specification.[13] The Advanced Profile in VC-1 is > implemented in a new WMV format called Windows Media Video 9 Advanced > Profile. It improves compression efficiency for interlaced content and is > made transport-independent, making it able to be encapsulated in an MPEG > transport stream or RTP packet format. The format is not compatible with > previous WMV 9 formats, however.[14] > > > It matches well with the fact Annex G introduce start codes and inline sequence > headers, since you absolutely need that to stream over MPEG TS. GStreamer uses > video/x-wmv as a family, and format=WVC1 for the advanced profiles, and WMV3 for > everything else it supports. > > I think you should go ahead and upstream this mapping fix into GStreamer. V4L2 > documentation should perhaps mention "Advanced Profile" to help devs. > > Though, this gives me the impression that codec_data can be inline for ANNEX G. > > Nicolas > I also checked the ffmpeg, it also treats VC1 as the advanced profiles, and WMV3 for Simple and Main Profiles. And below is from the VC-1's wiki page: WMV3 The Simple and Main Profiles of VC-1 remained completely faithful to the existing WMV3 implementation, making WMV3 bitstreams fully VC-1 compliant. The WMV3 codec was designed to primarily support progressive encoding for computer displays. An interlaced encoding mode was implemented, but quickly became deprecated when Microsoft started implementing WMV Advanced Profile. Whereas WMV3 progressive encoding was implemented using the YUV 4:2:0 color sampling scheme, the deprecated interlaced mode was implemented using the less common YUV 4:1:1 sampling scheme. The Windows Media Video 9 (WMV3) codec implements the Simple and Main modes of the VC-1 codec standard, providing high-quality video for streaming and downloading. "It provides support for a wide range of bit rates, from high-definition content at one-half to one-third the bit rate of MPEG-2, to low-bit-rate Internet video delivered over a dial-up modem. This codec also supports professional-quality downloadable video with two-pass and variable bit rate (VBR) encoding."[7] WVC1 WVC1, also known as Windows Media Video 9 Advanced Profile, implements a more recent and fully compliant Advanced Profile of the VC-1 codec standard. It offers support for interlaced content and is transport independent. With the previous version of the Windows Media Video 9 Series codec, users could deliver progressive content at data rates as low as one-third that of the MPEG-2 codec and still get equivalent or comparable quality to MPEG-2[citation needed]. The Windows Media Video 9 Advanced Profile codec also offers this same improvement in encoding efficiency with interlaced contents[citation needed]. A decoder for WVC1 is included in Windows Media Player 11, which is bundled with Windows Vista and is available as a download for Windows XP. This implementation is supported in Microsoft Silverlight. And we will prepare a gstreamer patch first, and also try to add a description of the advanced profile to V4L2 Documentation. Thank you again for your patience. Regards, Ming >> >>> >>> And the reason of this issue is the below code in gstreamer, that the >>> v4l2decoder may only send codec data after seek. >>> >>> codec_data = self->input_state->codec_data; >>> >>> /* We are running in byte-stream mode, so we don't know the >>> headers, but >>> * we need to send something, otherwise the decoder will refuse to >>> * initialize. >>> */ >>> if (codec_data) { >>> gst_buffer_ref (codec_data); >>> } else { >>> codec_data = gst_buffer_ref (frame->input_buffer); >>> processed = TRUE; >>> } >> >> That is truncating a bit too much of the context. The "processed" boolean is >> set >> when the codec data and frame is combined. In the case the codec data is only >> to >> be found in caps, it will queue the codec data and immediately queue the frame >> data. This is perfectly valid with the way the stateful decoder specification >> is >> written. >> >> In practice, GStreamer stateful decoder is multi-threaded, so it will fill the >> OUTPUT queue with following frames too. What you can do to make your driver >> more >> flexible is whenever you didn't find a frame in a buffer, merge this buffer >> with >> the next one, and do that until there is no more space in one buffer. This way >> you don't copy all the time like ring buffers do, but you can survive abitrary >> splits of byte-stream. >> >> Nicolas >> >>> >>> Regards, >>> Ming >>> >>> >>>> >>>>> >>>>> ret = vpu_malone_insert_scode_seq(scode, >>>>> MALONE_CODEC_ID_VC1_SIMPLE, sizeof(rcv_seqhdr)); >>>>> if (ret < 0)