diff options
author | Wonkap Jang <wonkap-at-google.com@ffmpeg.org> | 2020-02-03 21:02:01 +0300 |
---|---|---|
committer | James Zern <jzern@google.com> | 2020-02-03 23:37:28 +0300 |
commit | b93098253eceb8f7a7ba8486ba57dfb1cd190c54 (patch) | |
tree | c13d5c44b86c7b3e62453ec3e49373f6c7c87cdb /doc | |
parent | c4e29d0ba316f5bc0a9f73331ee2eb082c25532b (diff) |
avcodec/libvpxenc: add VP9 temporal scalability encoding option
This commit reuses the configuration options for VP8 that enables
temporal scalability for VP9. It also adds a way to enable three
preset temporal structures (refer to the documentation for more
detail) that can be used in offline encoding.
Signed-off-by: James Zern <jzern@google.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/encoders.texi | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/doc/encoders.texi b/doc/encoders.texi index 20bcb4e2d7..e26d6b5425 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -1888,8 +1888,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 @@ -1897,7 +1895,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 @@ -1914,6 +1912,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 |