FFmpeg NETINT command options for filtering are shown with the following command:

ffmpeg -help filter=<ni_filter_name>

<ni_filter_name> options for NETINT filters are:

  • ni_quadra_scale

  • ni_quadra_overlay

  • ni_quadra_split

  • ni_quadra_crop

  • ni_quadra_pad

  • ni_quadra_hwupload

  • ni_quadra_roi

  • ni_quadra_xstack

  • ni_quadra_bg

  • ni_quadra_rotate

  • ni_quadra_drawbox

  • ni_quadra_drawtext

  • ni_quadra_ai_pre

  • ni_quadra_delogo

  • ni_quadra_merge

  • ni_quadra_flip

  • ni_quadra_hvsplus

  • ni_quadra_scale2ref

Example:

ffmpeg -hide_banner -help filter=ni_quadra_scale

Output:

Filter ni_quadra_scale
  NetInt Quadra video scaler v---64DEV
    Inputs:
       #0: default (video)
    Outputs:
       #0: default (video)

ni_scale AVOptions:
  w                 <string>     ..FV..... Output video width
  width             <string>     ..FV..... Output video width
  h                 <string>     ..FV..... Output video height
  height            <string>     ..FV..... Output video height
  force_original_aspect_ratio <int>        ..FV..... decrease or increase w/h if necessary to keep the original AR (from 0 to 2) (default disable)
     disable                      ..FV.....
     decrease                     ..FV.....
     increase                     ..FV.....
  format            <int>        ..FV..... set_output_format (from 0 to 13) (default auto)
     yuv420p         0            ..FV..... 
     yuyv422         1            ..FV..... 
     uyvy422         2            ..FV..... 
     nv12            3            ..FV..... 
     argb            4            ..FV..... 
     rgba            5            ..FV..... 
     abgr            6            ..FV..... 
     bgra            7            ..FV..... 
     yuv420p10le     8            ..FV..... 
     nv16            9            ..FV..... 
     bgr0            10           ..FV..... 
     p010le          11           ..FV..... 
     bgrp            12           ..FV..... 
     auto            13           ..FV.....
  force_divisible_by <int>        ..FV..... enforce that the output resolution is divisible by a defined integer when force_original_aspect_ratio is used (from 1 to 256) (default 1)
  filterblit        <boolean>    ..FV..... filterblit enable (default false)
  keep_alive_timeout <int>        ..FV..... Specify a custom session keep alive timeout in seconds. (from 1 to 100) (default 3)

Arguments

Argument

Description

w

is width to scale down to

h

is height to scale down to.

force_original_aspect_ratio

maintains the input video’s aspect ratio when scaling

format

sets the pixel format of the output video

force_divisible_by

will force the output resolution to be divisible by the defined integer

filterblit

when true enables an FIR filter, it will produce better quality but at a lower performance than the default modified Bresenham filter

keep_alive_timeout

specifies a session keep-alive timeout value. This is a periodic request/response between the libxcoder and the Quadra firmware. When this times-out, the firmware will terminate the filtering instance on the scaler. The Valid range is from 1 to 100 (inclusive).

Filter command example:

ffmpeg -c:v h264_ni_quadra_dec -dec 0 -xcoder-params “out=hw” -i input1080p.264 -vf ni_quadra_scale=1280:720 -c:v h265_ni_quadra_enc -enc -1 -xcoder-params “RcEnable=1:bitrate=1000000” output720p.265