it's stranage to use option "level" in runtime change path but used "quality" in option, add "quality" in runtime change path, it's more intuitive and keep the "level" for compatibility.
Unified · Split
| @@ -17290,6 +17290,15 @@ option may cause flicker since the B-Frames have often larger QP. Default is · 17289 unmodified lines | |||
| 17290 | @code{0} (not enabled). | 17290 | @code{0} (not enabled). |
| 17291 | @end table | 17291 | @end table |
| 17292 | 17292 | ||
| 17293 | @subsection Commands | ||
| 17294 | |||
| 17295 | This filter supports the following commands: | ||
| 17296 | @table @option | ||
| 17297 | @item level | ||
| 17298 | @item quality | ||
| 17299 | Same as quality option. And the command accepts the @code{max} same as the @code{6}. | ||
| 17300 | @end table | ||
| 17301 | |||
| 17293 | @section sr | 17302 | @section sr |
| 17294 | 17303 | ||
| 17295 | Scale the input by applying one of the super-resolution methods based on | 17304 | Scale the input by applying one of the super-resolution methods based on |
| @@ -444,7 +444,7 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar · 443 unmodified lines | |||
| 444 | { | 444 | { |
| 445 | SPPContext *s = ctx->priv; | 445 | SPPContext *s = ctx->priv; |
| 446 | 446 | ||
| 447 | if (!strcmp(cmd, "level")) { | 447 | if (!strcmp(cmd, "level") || !strcmp(cmd, "quality")) { |
| 448 | if (!strcmp(args, "max")) | 448 | if (!strcmp(args, "max")) |
| 449 | s->log2_count = MAX_LEVEL; | 449 | s->log2_count = MAX_LEVEL; |
| 450 | else | 450 | else |