From patchwork Sat Dec 22 09:15:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 11518 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 8A03C44D97E for ; Sat, 22 Dec 2018 11:21:04 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3818768AF86; Sat, 22 Dec 2018 11:21:01 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 26AB668AF3A for ; Sat, 22 Dec 2018 11:20:54 +0200 (EET) Received: by mail-pg1-f193.google.com with SMTP id w6so3592180pgl.6 for ; Sat, 22 Dec 2018 01:20:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hmwDCZxZcoB5xfbgye5uHZqhbK2Q3czZjynKGcvzjqc=; b=GYxdAFl48cEvykR17Wgh3774w5Mm8OJPXZ8ugWMItT1aQINlEJei7bHmX6Srdd0q+G HUxizaNqEQ5nMFY2p1m+1uLEduhdsMiGi/gfQTJBe3cJCr9srSyliPgfuSWQlwLQNJb5 jujzrskE28/j4xvR4TDT2hsGYAMimsSTANZQQI70bTNxj9YSiP2iYMrUCB+LLSYF3tdU hBAOXihDvyen8Xv2qXvvMXqJEfpQilvrwfCjgPmX4htOxaFonrCIXUQdimIRVbOZWGDH g2LMqrXK8rlmUIYFiCFTilZ1wyvGnD+OMPXk1YXz98ruJ3uszV/c3PVfP24IvkdMfNWI joUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hmwDCZxZcoB5xfbgye5uHZqhbK2Q3czZjynKGcvzjqc=; b=FuXGOF409YBLkBoc4Neeo5jvHKRkrO0cMMHIK9J8D4VZJkrUjKMsv0yRifYX2W6ePZ 7QPOElRApQV+1863jrpRHTkfPnhl6RAVRyO4KupeYHjZ3b/xaoCZbUDTsFOduDIQbils q80I1pWkGMhpfKuwxG9cxLmPTx9n86qJZRaCBKRRm7x8N0en929LeoG9iYqc7zkq76Po u2Q6puJMJDFO9YY2qk9aF6VsNCPx4IY+mUby7vb8I6uahbyJPALGuzjsj2bu3PmvlkJv Az+TG9rTAgLiIaKkLd07w1p0O48T0YhV3eiU/v2zdicbHPPx3KueyFF4FWQlMtX+tbSQ Q6gg== X-Gm-Message-State: AJcUukdbQd63QTsYoDhU/V8iQz/MgG8CPQifRyY+LiN+CLLRC3UI3pPc fSDOFpKurn7YpebWL+La8jIj2SfU X-Google-Smtp-Source: ALg8bN7XwDiBL2BkTmM91/DFCZ9vypOp2yduGoc7Eu5UlkWKZhJIJIdaZ1c/5o0DkpsBmjp1XtFGDA== X-Received: by 2002:a63:ff16:: with SMTP id k22mr5584979pgi.244.1545470144788; Sat, 22 Dec 2018 01:15:44 -0800 (PST) Received: from localhost.localdomain ([47.90.47.25]) by smtp.gmail.com with ESMTPSA id z62sm45183397pfl.33.2018.12.22.01.15.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Dec 2018 01:15:43 -0800 (PST) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Sat, 22 Dec 2018 17:15:29 +0800 Message-Id: <1545470129-8944-3-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1545470129-8944-1-git-send-email-mypopydev@gmail.com> References: <1545470129-8944-1-git-send-email-mypopydev@gmail.com> Subject: [FFmpeg-devel] [PATCH V5 2/2] doc: Add libsvt_hevc encoder docs 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 Cc: "Huang, Zhengxu" , hassene , Jun Zhao , Jun Zhao MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Add docs for libsvt_hevc encoder in encoders.texi and general.texi Signed-off-by: Jun Zhao Signed-off-by: Huang, Zhengxu Signed-off-by: hassene --- doc/encoders.texi | 145 +++++++++++++++++++++++++++++++++++++++++++++++++++++ doc/general.texi | 15 ++++++ 2 files changed, 160 insertions(+), 0 deletions(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index 3d5b9fc..8f3db53 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -1569,6 +1569,151 @@ Set maximum NAL size in bytes. Allow skipping frames to hit the target bitrate if set to 1. @end table +@section libsvt_hevc + +Intel Scalable Video Technology HEVC encoder wrapper. + +This encoder requires the presence of the headers and +library during configuration. You need to explicitly configure the +build with @code{--enable-libsvthevc}. The library is detected using +@command{pkg-config}. + +For more information about the library see +@url{https://github.com/intel/SVT-HEVC.git}. + +@subsection Options + +The following FFmpeg global options affect the configurations of the +libsvt_hevc encoder. + +@table @option +@item b (@emph{bitrate}) +Set the bitrate (as a number of bits per second). Default is 7M. + +@item g / @option{gop_size} +Set the GOP size.. + +@item flags +cgop +Enable closed GOP. + +@item qmin (@emph{min-q}) +Defaults 10 + +@item qmax (@emph{max-q}) +Defaults 48 + +Set minimum/maximum quantisation values. Valid range is from 0 to 51 +(Only used when bit rate control mode @option{rc} is set to 0(cqp) mode. +Has to be qmax > = qmin). + +@item profile (@emph{profile}) +Set profile restrictions. Can assume one of the following possible values: + +Default is 2 (main10). + +@table @samp +@item main +main profile +@item main10 +main10 profile +@end table + +@item level + +@option{profile} sets the value of @emph{profile_idc} and the @emph{constraint_set*_flag}s. +@option{level} sets the value of @emph{level_idc}. + +@end table + +The encoder also has its own specific options: + +@table @option +@item vui +Enables or disables the vui structure in the HEVC elementary +bitstream. 0 = Off, 1 = On. Default is 1 (On). + +@item aud (@emph{aud}) +Enable use of access unit delimiters when set to 1. Default is 0 (Off). + +@item hielevel +Set hierarchical prediction levels. Can assume one of the following possible values: + +Default is 4 (4level). + +@table @samp +@item flat +none hierarchy level +@item 2level +2-level hierarchy +@item 3level +3-level hierarchy +@item 4level +4-level hierarchy +@end table + +@item la_depth +Set look-ahead depth, depending on bit rate control mode @option{rc}, when +bit rate control mode is set to vbr it's best to set this parameter to be +equal to the intra period value (such is the default set by the encoder), +when cqp is chosen, then a look ahead is recommended. The range is from @var{0-256}. + +@item preset +A preset defining the quality vs density tradeoff point that the +encoding is to be performed at.(e.g. 0 is the highest quality mode, +12 is the highest density mode). The range is from @var{0-12}. Default is 9. + +@item tier +Set @emph{general_tier_flag}. This may affect the level chosen for the stream +if it is not explicitly specified. Can assume one of the following possible values: + +Default is 1 (main). + +@table @samp +@item main +main tier +@item high +high tier +@end table + +@item rc +Set bit rate control mode. Can assume one of the following possible values: + +Default is 0 (cqp). + +@table @samp +@item cqp +Constant QP (CQP) mode +@item vbr +Variable Bit Rate (VBR) mode +@end table + +@item qp +Initial quantization parameter for the intra pictures used when +@option{rc} is cqp mode. The range is from @var{0-51}. Default is 32. + +@item sc_detection +Enables or disables the scene change detection algorithm. Default is 0 (disable). + +@item tune +Set quality tuning mode. Can assume one of the following possible values: + +Default is 1 (objective). + +@table @samp +@item subjective +Subjective quality mode +@item objective +Objective quality mode for PSNR / SSIM benchmarking +@end table + +@item bl_mode +Enables or disables Random Access Prediction. Default is 0 (disable). + +@item forced-idr +Normally, when forcing a I-frame type, the encoder can select any type +of I-frame. This option forces it to choose an IDR-frame. +@end table + @section libtheora libtheora Theora encoder wrapper. diff --git a/doc/general.texi b/doc/general.texi index 2bc33d1..c2f29d5 100644 --- a/doc/general.texi +++ b/doc/general.texi @@ -126,6 +126,21 @@ The dispatcher is open source and can be downloaded from with the @code{--enable-libmfx} option and @code{pkg-config} needs to be able to locate the dispatcher's @code{.pc} files. +@section Intel SVT-HEVC + +FFmpeg can make use of the SVT-HEVC library for HEVC encoding. + +Go to @url{https://github.com/intel/SVT-HEVC.git} and follow the instructions +for installing the library. Then pass @code{--enable-libsvthevc} to configure to +enable it. + +@float NOTE +Intel SVT_HEVC encoder is under the BSD-2-Clause Plus Patent License +(see @url{https://spdx.org/licenses/BSD-2-Clause-Patent.html} for +details), and BSD-2-Clause-Patent can compatible with the +GNU Lesser General Public License (LGPL) version 2.1 +@end float + @section Kvazaar FFmpeg can make use of the Kvazaar library for HEVC encoding.