From patchwork Tue Sep 19 18:15:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 43784 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:a886:b0:149:dfde:5c0a with SMTP id ca6csp137617pzb; Tue, 19 Sep 2023 11:20:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH+Gfk6P5bSDbsq/37kBzVTc6ARlfmjH0TrqLoukOE7CG7Se877kWCBpyIuvZJJ8cBC5GVt X-Received: by 2002:a17:906:20d6:b0:9ad:e2c8:172a with SMTP id c22-20020a17090620d600b009ade2c8172amr131250ejc.39.1695147627410; Tue, 19 Sep 2023 11:20:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695147627; cv=none; d=google.com; s=arc-20160816; b=xeo3LC37kj14ohEZYNBJjiW7uYkiimaxcWBOiKjL+l5zDAmEhvIjNSm59jtaK5V8Oj 3tim4C2MwLi0Y1bJfYRYk3VtZrFsV2/BM0URMd4EiNdMDIz9H7pYlFwW3Elx9/dIQmNp yzhTXFFSEpchjLfWJ/A1sO889AKXRDsMetDUqLQ+7/8mqYWLKvSz1VyHbXerDck1r7oK 7IioreMN/nHx+/uJYAHIqysoEvbLAhvFY0nRVHvVVPXfb309G7FDr58A166Kg34aoqRn oFjKmliaB/3iYcGUIyGUM6YKUZsIQtx+8bWhpgMhKzt7mneMEzRx8QAds09vLtU9PbIP 52sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding: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=KEWt02oDM96FDKGzDl4ndIZFneaGxHfzrwmoA2Wa1yo=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=wjAE2WHuya4qxMUrHXGyRqpAr4GyxW+rzZSY0SvqnfuPbg0MoRoZuidBdKWZm1THp3 FBLIA3uS2Iqk4h96V0zY1Kh/S+8B2e6HDnVgCMeZn4xGKJrwsExkkeGnaxU4IMEFUlmu QXG+goy1AXYwIZjFKV9KnfuF767Zzs4jDdqc86A7PObdTfVQMDDrDweGEaphaoYiZ3je ncPzzubsbozccW7UzNqtcipR64WL7k1gPRqub4jD1MYQqE19sUmJ1rBwCAJq738V7RXQ HZMcZyQ4Jpo/7V0jbxc3kyqQV1dHT97WeZB34kNtETaoiqCpUG4zIOr+GTr7szIu4zRO VDmw== 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 u25-20020a1709060b1900b009a1ac68daa3si9995858ejg.160.2023.09.19.11.20.27; Tue, 19 Sep 2023 11:20:27 -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 D589668C90A; Tue, 19 Sep 2023 21:20:17 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail1.khirnov.net (quelana.khirnov.net [94.230.150.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BFE9A68C866 for ; Tue, 19 Sep 2023 21:20:08 +0300 (EEST) Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id 79E115103 for ; Tue, 19 Sep 2023 20:15:43 +0200 (CEST) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id vhwH113GY3IM for ; Tue, 19 Sep 2023 20:15:38 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail1.khirnov.net (Postfix) with ESMTPS id 7A2D810 for ; Tue, 19 Sep 2023 20:15:32 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 97EAB3A150F for ; Tue, 19 Sep 2023 20:15:25 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Tue, 19 Sep 2023 20:15:07 +0200 Message-Id: <20230919181507.7445-3-anton@khirnov.net> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230919181507.7445-1-anton@khirnov.net> References: <20230919181507.7445-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/3] doc/ffmpeg: expand -bsf documentation 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 5GYtIvkZlk0J Explain how to pass options to filters. --- doc/ffmpeg.texi | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index d2864ff37e..cf47eb68d1 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -1893,9 +1893,18 @@ ffmpeg -i inurl -streamid 0:33 -streamid 1:36 out.ts @end example @item -bsf[:@var{stream_specifier}] @var{bitstream_filters} (@emph{output,per-stream}) -Set bitstream filters for matching streams. @var{bitstream_filters} is -a comma-separated list of bitstream filters. Use the @code{-bsfs} option -to get the list of bitstream filters. +Apply bitstream filters to matching streams. + +@var{bitstream_filters} is a comma-separated list of bitstream filter +specifications that will be applied to coded packets in the order they are +written in. Each bitstream filter specification is of the form +@example +@var{filter}[=@var{optname0}=@var{optval0}:@var{optname1}=@var{optval1}:...] +@end example +Any of the ',=:' characters that are to be a part of an option value need to be +escaped with a backslash. + +Use the @code{-bsfs} option to get the list of bitstream filters. @example ffmpeg -i h264.mp4 -c:v copy -bsf:v h264_mp4toannexb -an out.h264 @end example