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 8E4C847F9B for ; Sat, 6 Jan 2024 10:51:36 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D415D68CC5B; Sat, 6 Jan 2024 12:51:33 +0200 (EET) Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C305E68B02D for ; Sat, 6 Jan 2024 12:51:27 +0200 (EET) Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-553ba2f0c8fso354984a12.1 for ; Sat, 06 Jan 2024 02:51:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704538286; x=1705143086; darn=ffmpeg.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=bBLi74fkH/XzIqNu8TRDD4UM4BaeWeewrEwdzk7m6+I=; b=js7TveprrLzBi6daFZoOk5gmJKeyrNECl92qRC/gcPCxlbaTV5JKxQiuO/H9S2L+T5 WlC9o3CpVkV+ZK3AP9c2IX1lgmTHRx/qzv+eNcT65zFrB/blqFvd7pjKG7XxXU33JfQ2 nLE0JG229rJLSUNjQpisLeTnZreWlRV/7aZkFUXlT8ae+aU7p/ZyB5GFwbJCzf4b4bz7 9Q3fshnvkUJSSP6Il3ylr/cTyH1j/+60kcP9sZyxij5J2VpLneMpL71ho57dJ1piIAeP 3XENMW59gMWLqwMxXAzjJUXBuEs6BSHoPToNLYJokVTCVMBGqr9OlirjUinfBnROvRjg kbcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704538286; x=1705143086; h=user-agent:in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bBLi74fkH/XzIqNu8TRDD4UM4BaeWeewrEwdzk7m6+I=; b=Dsmv5UlgP4Wbmn3eCcwykjNJsrJBMQxjgxzQvsKFsXEDWbrJ7296KGDiS2bj7QIraR /YNmdCTXL3XXM/0MeNz94drmfpHBjMilRjALbZokqUkroHF8nj0JvIAaU2fBDxRA4ent IxZJ5ny6xTMs6T758x6Bh372GW7giRt5aJrBEgQHZn89sAv7EntcLn4/t68tHfrDv42g mpZbwaJ5sVM84E06G36vXdqjcAiTIxpLzGbN7kHx1DSMAom/e3uB9e2L35pXdtP4xL58 E1W3eX8IU50nvuNDOLwS1ovQUQc0eCJe4DYcKcn3N+17pm86pv9ML8s8cf2iVp8zENmM 6PKQ== X-Gm-Message-State: AOJu0Yw1EiPIgXZO2odzMO8fBqWDPoEG645XYUkUQSStlSoDf9dh834l 6jlWFlgSyrRX2mxys20w3Pi13Zqd0Rk= X-Google-Smtp-Source: AGHT+IFaJWyAptZl6Zy68piwBVrwyUMRUBzbD/f0S8lTT2ZAEq4oj3s6lSLrrAjur700PP2ZdUtqtg== X-Received: by 2002:a17:907:930e:b0:a23:321e:48e9 with SMTP id bu14-20020a170907930e00b00a23321e48e9mr185750ejc.67.1704538285490; Sat, 06 Jan 2024 02:51:25 -0800 (PST) Received: from mariano (dynamic-adsl-84-220-189-10.clienti.tiscali.it. [84.220.189.10]) by smtp.gmail.com with ESMTPSA id w26-20020a17090652da00b00a26f5eb0554sm1852343ejn.63.2024.01.06.02.51.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jan 2024 02:51:25 -0800 (PST) Received: by mariano (Postfix, from userid 1000) id 51C70BFCDC; Sat, 6 Jan 2024 11:51:23 +0100 (CET) Date: Sat, 6 Jan 2024 11:51:23 +0100 From: Stefano Sabatini To: FFmpeg development discussions and patches Message-ID: Mail-Followup-To: FFmpeg development discussions and patches , Haihao Xiang References: <20240105023352.3959874-1-haihao.xiang@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240105023352.3959874-1-haihao.xiang@intel.com> User-Agent: Mutt/2.1.4 (2021-12-11) Subject: Re: [FFmpeg-devel] [PATCH v2 1/2] doc/ffmpeg: update the documentation about qsv device creation 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 Cc: Haihao Xiang Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On date Friday 2024-01-05 10:33:51 +0800, Xiang, Haihao wrote: > From: Haihao Xiang > > Signed-off-by: Haihao Xiang > --- > doc/ffmpeg.texi | 26 ++++++++++++++++++++++++-- > 1 file changed, 24 insertions(+), 2 deletions(-) > > diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi > index 7246a46d2f..f095f402bd 100644 > --- a/doc/ffmpeg.texi > +++ b/doc/ffmpeg.texi > @@ -1406,16 +1406,38 @@ If not specified, @samp{auto_any} is used. > platform-appropriate subdevice (@samp{dxva2} or @samp{d3d11va} or @samp{vaapi}) and then deriving a > QSV device from that.) > > -Alternatively, @samp{child_device_type} helps to choose platform-appropriate subdevice type. > -On Windows @samp{d3d11va} is used as default subdevice type. > +The following options are recognized: > +@table @option > +@item child_device > +Specify a DRM render node on Linux or DirectX adapter on Windows missing dot at the end of complete sentence, here and below > +@item child_device_type > +Choose platform-appropriate subdevice type. On Windows @samp{d3d11va} is used > +as default subdevice type. Is this needed for non-Windows platforms? > +@end table > > Examples: > @table @emph > +@item -init_hw_device qsv:hw,child_device=/dev/dri/renderD129 > +Create a QSV device with @samp{MFX_IMPL_HARDWARE} on DRM render node /dev/dri/renderD129 You can quote the device with @file{/dev/dri/renderD129}. > + > +@item -init_hw_device qsv:hw,child_device=1 > +Create a QSV device with @samp{MFX_IMPL_HARDWARE} on DirectX adapter 1. The subdevice > +type is @samp{d3d11va} if @code{--enable-libvpl} is specified at configuration time, the > +subdevice type is @samp{dxva2} if @code{--enable-libmfx} is specified at configuration time. > + > @item -init_hw_device qsv:hw,child_device_type=d3d11va > Choose the GPU subdevice with type @samp{d3d11va} and create QSV device with @samp{MFX_IMPL_HARDWARE}. > > @item -init_hw_device qsv:hw,child_device_type=dxva2 > Choose the GPU subdevice with type @samp{dxva2} and create QSV device with @samp{MFX_IMPL_HARDWARE}. > + > +@item -init_hw_device qsv:hw,child_device=1,child_device_type=d3d11va > +Create a QSV device with @samp{MFX_IMPL_HARDWARE} on DirectX adapter 1 with subdevice type @samp{d3d11va} > + > +@item -init_hw_device vaapi=va:/dev/dri/renderD129 -init_hw_device qsv=hw1@va > +Create a VAAPI device called @samp{va} on /dev/dri/renderD129, then derive a QSV device called @samp{hw1} > +from device @samp{va} Looks good otherwise. BTW, do you know why all hwaccels are not documented in a dedicated file (hwaccels.texi or something)? _______________________________________________ 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".