[FFmpeg-cvslog] doc/encoders/libx264: clarify meaning of level option

Stefano Sabatini git at videolan.org
Fri Oct 6 10:53:30 EEST 2023


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sat Aug 26 02:53:28 2023 +0200| [d0f071dfe743a410ff385c832b9c3ff47fd73c94] | committer: Stefano Sabatini

doc/encoders/libx264: clarify meaning of level option

In particular, clarify that it can either be set as a field of
AVCodecContext or as an x264 option, using a different specification.

Should address trac issue:
http://trac.ffmpeg.org/ticket/3947

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d0f071dfe743a410ff385c832b9c3ff47fd73c94
---

 doc/encoders.texi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/doc/encoders.texi b/doc/encoders.texi
index d7d9584a0c..bf9a41c22e 100644
--- a/doc/encoders.texi
+++ b/doc/encoders.texi
@@ -2446,6 +2446,20 @@ Quantizer curve compression factor
 @item refs (@emph{ref})
 Number of reference frames each P-frame can use. The range is from @var{0-16}.
 
+ at item level (@emph{level})
+Set the @code{x264_param_t.i_level_idc} value in case the value is
+positive, it is ignored otherwise.
+
+This value can be set using the @code{AVCodecContext} API (e.g. by
+setting the @code{AVCodecContext} value directly), and is specified as
+an integer mapped on a corresponding level (e.g. the value 31 maps
+to H.264 level IDC "3.1", as defined in the @code{x264_levels}
+table). It is ignored when set to a non positive value.
+
+Alternatively it can be set as a private option, overriding the value
+set in @code{AVCodecContext}, and in this case must be specified as
+the level IDC identifier (e.g. "3.1"), as defined by H.264 Annex A.
+
 @item sc_threshold (@emph{scenecut})
 Sets the threshold for the scene change detection.
 



More information about the ffmpeg-cvslog mailing list