From patchwork Thu Mar 14 10:12:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 47057 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:9204:b0:1a3:31a3:7958 with SMTP id tl4csp330970pzb; Thu, 14 Mar 2024 03:13:05 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX4sIB9Qc/E8RI7JGvWc92oSO+HkImdBISeVtgYK+TiWEX4utJubk5utZEdZidURqaqUPPtYymubmNCsYkCAecdQweG7bNVTAxhUQ== X-Google-Smtp-Source: AGHT+IEb/Kth3AGKreETaaD3E1N6jglKVspDWy1SlZLIe0JdptEJGkFmk68Db4jtVwc1lN+Hy2fS X-Received: by 2002:a05:6402:90f:b0:566:ab45:e6c0 with SMTP id g15-20020a056402090f00b00566ab45e6c0mr132809edz.33.1710411184758; Thu, 14 Mar 2024 03:13:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1710411184; cv=none; d=google.com; s=arc-20160816; b=tt2AWGa1S0gBbV9nZSYC8hX27kOe/VblesakKjsZ0dirZRw8+hK6xAv/SGUBsQeK1y q2PJl0UZksVPMzRxdhiNFk4Ot3abF9NDNQyP6CnPkPRftlScZcoI8NaorHrn8CO22/Tr JaXRG8FS99rMAJM3tmNF9bU8y4CzMea5Db/VqFZpk/Gm4n+xES/W6rFZ7xsSWfRPmv1U CmLL2kGzUlCsRFoHoy+xQToq27PVVXD0JarYDJCpXtGR3FFIlSbjp1P4Wc8YWOlp6eWn wvw9G4FO/4H/vrGLDz9k543C4oTPULftZC/3YuR707Ck992d3gHgmAOILJ3S3feIvzLM JpVg== 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:message-id:date:to:from :dkim-signature:delivered-to; bh=d2iLa8psuWwRu1+z6M/boymYzj68cwr8kmW3BicAonI=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=Ux7Bc4JEqVAPl4JLKt9GrgkzpkMJOM8gM0Wc2z0vSzQfAc5IVKy5CCu7Oh6dsI1Bge PYc8+TN/zjH5cBItzXA1WKc7VrPLEUhFbuPhrpS2KSu7+hhRPV4ovFv8ruEakOMUhhoU cz3F6RNm6xUV1WQAijai0CTt485318XmUQGNyNUlCDpJ4aczYYPpL6YomizK/cVryZYG GdwG/Xo1K4NhecgeXmLgT9SDNsB0RxZcJxROkS44CqieX4VP8D/iWCXZIZ5Db6v3oFAm w1VEcQiuRpqknMnvKgX3Barae60BUBkT1spxaEiakL7JJew0bSIvspqWijkyuzEOtyhm vHHw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@khirnov.net header.s=mail header.b=DhOztQF+; 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 ef9-20020a05640228c900b005685d93151fsi594978edb.428.2024.03.14.03.13.04; Thu, 14 Mar 2024 03:13:04 -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; dkim=neutral (body hash did not verify) header.i=@khirnov.net header.s=mail header.b=DhOztQF+; 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 B8CE868D1C8; Thu, 14 Mar 2024 12:13:00 +0200 (EET) 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 5DBD968D04F for ; Thu, 14 Mar 2024 12:12:53 +0200 (EET) Authentication-Results: mail1.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=DhOztQF+; dkim-atps=neutral Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id A1BFE4D3D for ; Thu, 14 Mar 2024 11:12:52 +0100 (CET) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id X6FVzUEc5xPD for ; Thu, 14 Mar 2024 11:12:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1710411171; bh=scx5qoCiIjpzLrKzd3Hg9xsINb2DUMV7JtqyZ9iqDYw=; h=From:To:Subject:Date:From; b=DhOztQF+MkBKfK8UVa/3c2UrcAcDbCK4K0pbWWvUzCM2jOswTIVbeH+/SZ9x8peHC XhBuVvc9Yi4GvtQ9XIOJB3F0Lx3Fvtbqys/9LGxHnYHIvJLV7m8ogaesI38FUFv8G4 hQbrwj0czUgV5eC7TeRczxW26JOcL+Pm9WUNMNuEemasZLIekziLd8bZDz0YG/WdzX /KLJfK5I28mkiRVWdw5So2OhcY31fQrAmbe6HWfZ6O8m4eees924Ai+edKnNNBtWkM VxUpQyRQPN4IU40n77ePOpScaVHRD+m/T3q1IxrOmWbK4gegR5htOvuw2Cnh/SfQ3S oh1YBBkRbzLjQ== 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 420A8448A for ; Thu, 14 Mar 2024 11:12:51 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 2CEBF3A0219 for ; Thu, 14 Mar 2024 11:12:44 +0100 (CET) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Thu, 14 Mar 2024 11:12:31 +0100 Message-ID: <20240314101231.19542-1-anton@khirnov.net> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] doc/ffmpeg: mention how to pass options to loopback decoders 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: ktm80P2IUsYX --- doc/ffmpeg.texi | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index a38ef834e1..801c083705 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -229,12 +229,16 @@ successive integers starting at zero. These indices should then be used to refer to loopback decoders in complex filtergraph link labels, as described in the documentation for @option{-filter_complex}. +Decoding AVOptions can be passed to loopback decoders by placing them before +@code{-dec}, analogously to input/output options. + E.g. the following example: @example ffmpeg -i INPUT \ -map 0:v:0 -c:v libx264 -crf 45 -f null - \ - -dec 0:0 -filter_complex '[0:v][dec:0]hstack[stack]' \ + -threads 3 -dec 0:0 \ + -filter_complex '[0:v][dec:0]hstack[stack]' \ -map '[stack]' -c:v ffv1 OUTPUT @end example @@ -244,11 +248,13 @@ reads an input video and (line 2) encodes it with @code{libx264} at low quality; @item -(line 3) decodes this encoded stream and places it side by side with the -original input video; +(line 3) decodes this encoded stream using 3 threads; @item -(line 4) combined video is then losslessly encoded and written into +(line 4) places decoded video side by side with the original input video; + +@item +(line 5) combined video is then losslessly encoded and written into @file{OUTPUT}. @end itemize