Skip to main content
Version: v5.9.0

ni_quadra_flip

The ni_quadra_flip filter flips the input video horizontally or vertically according to flip_type parameter. ni_quadra_flip only supports hardware AVFrames as input and output.

note

The ni_quadra_flip filter only accepts limited color range (also known as “tv” range). Full range video (also known as “pc” range) is accepted; however, the ni_quadra_flip filter will clamp to limited range before processing. This will cause a slight color shift in the video output.

Parameters​

The following are the ni_quadra_flip parameters:

flip_type​

The expressions specify the flip type of picture.

Supported Values- 0 for horizontally flipping
- 1 for vertically flipping
Defaults0

buffer_limit​

Whether to limit the number of output buffers. If enabled, the buffering count of the filter is its buffer pool size(default 4) plus encoding buffering count if its downstream is encoder. It’s enabled by default in FFmpeg-n6.1, FFmpeg-n7.1, FFmpeg 7.1.3, FFmpeg-n8.0.1 and FFmpeg-n8.1.

Supported ValuesInteger in the range 0 to 1
Defaults0

The following example shows how to use a flip filter. The decoder decodes an H.264 input using the h264_ni_quadra_dec, ni_quadra_flip flips the input video horizontally and passes it to h265_ni_quadra_enc for encoding.

ffmpeg -y -c:v h264_ni_quadra_dec –dec 0 -xcoder-params "out=hw" -i test.h264 -vf ni_quadra_flip=flip_type=0 -c:v h265_ni_quadra_enc -enc 0 test.h265