Skip to main content
Version: v5.9.0

Example Programs Command Line Options

ni_xcoder_decode:​

Video decoding demo application directly using Netint Libxcoder API

Usage: ni_xcoder_decode [options]

options:
-h | --help Show this message.
-v | --version Print version info.
-i | --input Required) Input file path.
-o | --output Required) Output file path.
-m | --dec-codec Required) Decoder codec format.must match input file.
[a|avc, h|hevc, v|vp9]
-l | --loglevel Set loglevel of this application and libxcoder API.
[none, fatal, error, info, debug, trace]
(Default: info)
-c | --card Set card index to use.
See `ni_rsrc_mon` for info of cards on system.
(Default: 0)
-r | --repeat To loop input X times. Must be a positive integer
(Default: 1)
-d | --decoder-params Decoding params. See "Decoding Parameters" chapter in
QuadraIntegration&ProgrammingGuide*.pdf for help.
(Default: "")

ni_xcoder_encode:​

Video encoding demo application directly using Netint Libxcoder API. Multiple input files and yuv444p format input are not supported in this mode

Usage: ni_xcoder_encode [options]

options:
-h | --help Show this message.
-v | --version Print version info.
-i | --input (Required) Input file path.
Can be specified multiple (max 3) times
to concatenate inputs with different resolution together (sequence change)
-o | --output (Required) Output file path.
Can be specified multiple (max 4) times
to run multiple encoding instances simultaneously.
-m | --enc-codec (Required) Encoder codec format.
[a|avc, h|hevc, x|av1, o|obu]
(x is in ivf container format, o is output raw AV1 OBU only)
-l | --loglevel Set loglevel of this application and libxcoder API.
[none, fatal, error, info, debug, trace]
(Default: info)
-c | --card Set card index to use.
See `ni_rsrc_mon` for info of cards on system.
(Default: 0)
-r | --repeat To loop input X times. Must be a positive integer
(Default: 1)
-k | --readframerate Read input at specified frame rate.
-p | --pix_fmt Indicate the pixel format of the input.
[yuv420p, yuv420p10le, nv12, p010le, rgba, gbra, argb, abgr, bgr0, yuv444p]
(Default: yuv420p)
-s | --size (Required) Resolution of input file in format WIDTHxHEIGHT.
(eg. '1920x1080')
-e | --encoder-params Encoding params. See "Encoding Parameters" chapter in
QuadraIntegration&ProgrammingGuide*.pdf for help.
Can be specified multiple (max 4) times,
must match the number of -o specified.
(Default: "")
-g | --encoder-gop Custom GOP for encoding. See "Custom Gop Structure" chapter in
QuadraIntegration&ProgrammingGuide*.pdf for help.
gopPresetIdx must be set to 0 to be in effect.
(Default: "")
-u | --hwupload (No argument) When enabled upload raw frame to device first before encoding

ni_xcoder_transcode_filter:​

Video transcoding demo application directly using Netint Libxcoder API

Usage: ni_xcoder_transcode_filter [options]

options:
-h | --help Show this message.
-v | --version Print version info.
-i | --input (Required) Input file path.
-o | --output (Required) Output file path.
Can be specified multiple (max 4) times
to run multiple encoding instances simultaneously.
-m | --dec-codec (Required) Decoder codec format. Must match the codec of input file.
[a|avc, h|hevc, v|vp9]
-n | --enc-codec Required) Encoder codec format.
[a|avc, h|hevc, x|av1] (x is in ivf container format)
-l | --loglevel Set loglevel of this application and libxcoder API.
[none, fatal, error, info, debug, trace]
(Default: info)
-c | --card Set card index to use.
See `ni_rsrc_mon` for info of cards on system.
(Default: 0)
-r | --repeat To loop input X times. Must be a positive integer
(Default: 1)
-d | --decoder-params Decoding params. See "Decoding Parameters" chapter in
QuadraIntegration&ProgrammingGuide*.pdf for help.
(Default: "")
-e | --encoder-params Encoding params. See "Encoding Parameters" chapter in
QuadraIntegration&ProgrammingGuide*.pdf for help.
Can be specified multiple (max 4) times,
must match the number of -o specified.
(Default: "")

-g | --encoder-gop Custom GOP for encoding. See "Custom Gop Structure" chapter in
QuadraIntegration&ProgrammingGuide*.pdf for help.
gopPresetIdx must be set to 0 to be in effect.
(Default: "")

-u | --user-data-sei-passthru (No argument) Enable user data unregistered SEI passthrough when specified
-f | --vf Video filter params. The only supported filters in this demo are:
ni_quadra_scale - supported params [width, height, format]
e.g. ni_quadra_scale=width=1280:height=720:format=yuv420p
ni_quadra_drawbox - supported params [x, y, width, height]
e.g. ni_quadra_drawbox=x=300:y=150:width=600:height=400
(Default: "")

ni_xcoder_multithread_transcode:​

Multi-threaded video transcoding demo application directly using Netint Libxcoder API

Usage: ni_xcoder_multithread_transcode [options]

options:
-h | --help Show this message.
-v | --version Print version info.
-i | --input (Required) Input file path.
-o | --output (Required) Output file path.
Can be specified multiple (max 4) times
to run multiple encoding instances simultaneously.
-m | --dec-codec (Required) Decoder codec format. Must match the codec of input file.
[a|avc, h|hevc, v|vp9]
-n | --enc-codec (Required) Encoder codec format.
[a|avc, h|hevc, x|av1] (x is in ivf container format)
-l | --loglevel Set loglevel of this application and libxcoder API.
[none, fatal, error, info, debug, trace]
(Default: info)
-c | --card Set card index to use.
See `ni_rsrc_mon` for info of cards on system.
(Default: 0)
-r | --repeat To loop input X times. Must be a positive integer
(Default: 1)
-d | --decoder-params Decoding params. See "Decoding Parameters" chapter in
QuadraIntegration&ProgrammingGuide*.pdf for help.
(Default: "")
-e | --encoder-params Encoding params. See "Encoding Parameters" chapter in
QuadraIntegration&ProgrammingGuide*.pdf for help.
Can be specified multiple (max 4) times,
must match the number of -o specified.
(Default: "")
-g | --encoder-gop Custom GOP for encoding. See "Custom Gop Structure" chapter in QuadraIntegration&ProgrammingGuide*.pdf for help. gopPresetIdx must be set to 0 to be in effect.
(Default: "")
-u | --user-data-sei-passthru (No argument) Enable user data unregistered SEI passthrough when specified
-f | --vf Video filter params. The only supported filters in this demo are:
ni_quadra_scale - supported params[width,height,format
e.g.
ni_quadra_scale=width=1280:height=720:format=yuv420p
ni_quadra_drawbox - supported params [x, y, width, height]
e.g. ni_quadra_drawbox=x=300:y=150:width=600:height=400
(Default: "")