From patchwork Sat May 18 16:11:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marton Balint X-Patchwork-Id: 48985 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:3a48:b0:1af:fc2d:ff5a with SMTP id zu8csp3522827pzb; Sat, 18 May 2024 09:11:47 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXtir98tgsmItvrKb6YpaHsss/vtk3eAtQFcq9kJwb0qTkLC5zoeznBzepJBWB012ZTW2SCdMA4Kr0C9GaokZoj7bHZK8xeVIfxIg== X-Google-Smtp-Source: AGHT+IHrnle6KHmAw8x2n/SFdJFf9y+uTqP45c+XfR3wXBCWxUlWXO+9FuSsdLscg67Dn22pZRDW X-Received: by 2002:aa7:dd12:0:b0:572:d841:1189 with SMTP id 4fb4d7f45d1cf-5734d6f576fmr16620337a12.3.1716048707109; Sat, 18 May 2024 09:11:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716048707; cv=none; d=google.com; s=arc-20160816; b=Sr7wY+rhpBPRgUM02ZwrgXvW93s9DAEQ9E28rh9Lr/+Ro0FOteV9AUxycG9/7ecSIL PFxBmPEAonKyJiMqOUX1yx4riNZw/4FVlWA9OSZp/F82hKTgsaNrqNmx7oYe+Wm9o1fb qT6XGMCbU+85oF2f7V+GFOx9+BDLVAhFR0H2G1CDxpsb6AJPS2dsBjSjKgjsACQizxvf 2fcGo+8zz0Sw7K9GHHlgaDDZ4QceJ6AN36RDkOudLl1Yeg7tKwu4EoYoPnhIxcsM7u9k e3BL8OIKaqj56AYJeInYQm6WWd1FGilXCRgGwQ+ghWON5JbxdqQEgsMOLUxzwOztzSTr Spnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:delivered-to; bh=FthaX8gL4ZDFWsp2kR7PEnOx63YFyVwnbmgwKW8UPjE=; fh=s+G8Ss4JbeMFkWPSp2LmIH/LXFyBlALRiww1j3FPjHY=; b=w8NT4VfTi9vRNcgz0ZClgkmsDqOe81Esn5WXxlnGLRhplBFYMFKRuVqI6UNuRebag4 Kj6EF0cEf9jmO/4xCq8P1SWsYgk2mTjamRQz5apbhDjo20wOx31Tf0+FLDL8zigaK71M p1nFb6EmQKoiPidgOrPiJYCXIS1PuclTFpFWqG/QyMqiyM3x71TTcPry6tbPje2YOFP/ UBsazJPL8dX8Z3PdlijxcFeqh0QvhSY/Wf4/Xr/F8qCKrUW7W0A8C/1k3HiwmgosnRZF 4SwboO6B4NcHMoy2MlsMiyLW3wbwRR+Kx2I0tSZqUtwntxO9pXefsul1JJxaA0tbwTum 1EMg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 4fb4d7f45d1cf-5733c378546si12001313a12.643.2024.05.18.09.11.46; Sat, 18 May 2024 09:11:47 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5F1AA68CF0E; Sat, 18 May 2024 19:11:34 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from iq.passwd.hu (iq.passwd.hu [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A5AF868CEC8 for ; Sat, 18 May 2024 19:11:27 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 7F4EAEA689; Sat, 18 May 2024 18:11:27 +0200 (CEST) X-Virus-Scanned: amavisd-new at passwd.hu Received: from iq.passwd.hu ([127.0.0.1]) by localhost (iq.passwd.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YICBmhoSZrNn; Sat, 18 May 2024 18:11:25 +0200 (CEST) Received: from bluegene.passwd.hu (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 185D3EA681; Sat, 18 May 2024 18:11:25 +0200 (CEST) From: Marton Balint To: ffmpeg-devel@ffmpeg.org Date: Sat, 18 May 2024 18:11:13 +0200 Message-Id: <20240518161116.8661-2-cus@passwd.hu> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240518161116.8661-1-cus@passwd.hu> References: <20240518161116.8661-1-cus@passwd.hu> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/5] doc/ffmpeg: document -channel_layout/ch_layout options 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: Marton Balint Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 3sg+uh5kuJH1 Signed-off-by: Marton Balint --- doc/ffmpeg.texi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index 83db6584fd..9b490f523f 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -1720,6 +1720,16 @@ This is an alias for @code{-filter:a}, see the @ref{filter_option,,-filter optio @table @option @item -atag @var{fourcc/tag} (@emph{output}) Force audio tag/fourcc. This is an alias for @code{-tag:a}. +@item -ch_layout[:@var{stream_specifier}] @var{layout} (@emph{input/output,per-stream}) +@item -channel_layout[:@var{stream_specifier}] @var{layout} (@emph{input/output,per-stream}) +Set the audio channel layout. For output streams it is set by default to the +input channel layout. For input streams it overrides the channel layout if the +decoder allows it. When used without a stream specifier it also sets the input +channel layout for audio grabbing devices and raw demuxers and is mapped to the +corresponding demuxer options. + +Note that specifying a channel layout also sets the channel count and this +option has precedence over the @code{-ac} option. @item -guess_layout_max @var{channels} (@emph{input,per-stream}) If some input channel layout is not known, try to guess only if it corresponds to at most the specified number of channels. For example, 2