From patchwork Wed Jan 8 23:00:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wonkap Jang X-Patchwork-Id: 17264 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 206C144BB68 for ; Thu, 9 Jan 2020 01:00:22 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0A67C68ACCE; Thu, 9 Jan 2020 01:00:22 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg1-f201.google.com (mail-pg1-f201.google.com [209.85.215.201]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7329968A610 for ; Thu, 9 Jan 2020 01:00:15 +0200 (EET) Received: by mail-pg1-f201.google.com with SMTP id y15so2552817pgk.20 for ; Wed, 08 Jan 2020 15:00:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to; bh=yu8KfE8Q+/wvVAzbGhZKfmv8p8scqF1nb6WYThsnVpM=; b=Rl+85dPYkD6joepg/erFkUlMIYjyO/QabFvEOyHnkys5uPUfx4P1lSZAtg+kAFMkwd XwtA8RV+/3QcE4AiWCKvQjumiGTASxj1h5GFkjB68NXIfm4PDH3+N7oWyNuUB7P7B8cr BIfUC5NBw2k0pHrh/t79dqf/7kZa9cO/FEv+m03vJv0jWkYxn/UZvb76q3vt/Xa3ipHM 9ScIE7wxnBsSlXvYe+C2MrF9NhNooheV4G4jIfz/zUGuoqC1fQ1WKB8YHiy8L+qwrfhu 25Kw/O2nZ7veHoCdPCVNgQnEsa1LnWDygW5x1WdlCBPPiG0553pEvp8kKHxHnkSckGfH 7yPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to; bh=yu8KfE8Q+/wvVAzbGhZKfmv8p8scqF1nb6WYThsnVpM=; b=CFCKDcrNQcGZtSAYOiUJysLlcLjuIfqvCYFxKa8ag1adfJ9rHaqQCO1KHnpCaBmol7 tKEKv2HjGtI0PkmXddCxtlF8XsoR81km4Q5Rwl0kzUrnfYbfsYB3zKjfek0xCOfX/rGx c5uCwbqtwk0zYOMil2zle541aaf1pxs2uFPwVO84p9NXRmpOvN4FA1BB959Hkd+b+qqH Y4MaEd9d/HkmggxPp3niMC2+HmmQec0wUIClAS/1sGrOS6PBPHuGbYGW/jnafytdTNN8 +yH0BTe4BKdYX3nuUpvpRzHA238CukbkqCCsIpiDM3xEBjN0c6W8m4BEPazXY0u4D74f ocQA== X-Gm-Message-State: APjAAAWi0X75ZkSTHPTMjYAP5ThQ2K0d7h8wv6rXG/kXGl4Vc77xMiLs RGwV6L///0MRPZN84E4Y3JV2wa9eTkw+Jd3+Zao1PvaSNe3EVGWgOagxUC73dZTTiVZEk4aiW75 fdkHmI+HLJ0aUKVD68oIVifQUMGD4mzs2cPJ7CGrTSIryg9X4APRTF2rebC+ZVw4= X-Google-Smtp-Source: APXvYqzGshOykIHnyo6f5LHqljqbLAyG1oHjlCsa78CRbjpTMD2hM/5N/I3k4+BOlRapaoF9qdxfk/aPXfI= X-Received: by 2002:a63:a43:: with SMTP id z3mr7841596pgk.232.1578524413033; Wed, 08 Jan 2020 15:00:13 -0800 (PST) Date: Wed, 8 Jan 2020 15:00:06 -0800 In-Reply-To: <20200108230006.169044-1-wonkap@google.com> Message-Id: <20200108230006.169044-3-wonkap@google.com> Mime-Version: 1.0 References: <20200108230006.169044-1-wonkap@google.com> X-Mailer: git-send-email 2.25.0.rc1.283.g88dfdc4193-goog From: Wonkap Jang To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH v3 3/3] doc/encoders: add VP9 temporal scalability encoding option X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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" Documentation change for adding support for encoding with temporal scalability in VP9. --- doc/encoders.texi | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index 61e674cf96..88429aed4c 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -1885,8 +1885,6 @@ Enable error resiliency features. Increase sharpness at the expense of lower PSNR. The valid range is [0, 7]. -@item VP8-specific options -@table @option @item ts-parameters Sets the temporal scalability configuration using a :-separated list of key=value pairs. For example, to specify temporal scalability parameters @@ -1894,7 +1892,7 @@ with @code{ffmpeg}: @example ffmpeg -i INPUT -c:v libvpx -ts-parameters ts_number_layers=3:\ ts_target_bitrate=250,500,1000:ts_rate_decimator=4,2,1:\ -ts_periodicity=4:ts_layer_id=0,2,1,2 OUTPUT +ts_periodicity=4:ts_layer_id=0,2,1,2:ts_layering_mode=3 OUTPUT @end example Below is a brief explanation of each of the parameters, please refer to @code{struct vpx_codec_enc_cfg} in @code{vpx/vpx_encoder.h} for more @@ -1911,6 +1909,20 @@ Frame rate decimation factor for each temporal layer. Length of the sequence defining frame temporal layer membership. @item ts_layer_id Template defining the membership of frames to temporal layers. +@item ts_layering_mode +(optional) Selecting the temporal structure from a set of pre-defined temporal layering modes. +Currently supports the following options. +@table @option +@item 0 +No temporal layering flags are provided internally, +relies on flags being passed in using metadata in AVFrame. +@item 2 +Two temporal layers. 0-1... +@item 3 +Three temporal layers. 0-2-1-2...; with single reference frame. +@item 4 +Same as option "3", except there is a dependency between +the two temporal layer 2 frames within the temporal period. @end table @end table