WARNING: This version of the website is for testing purposes only. Some pages or functions might not work.

CLICK HERE TO GO BACK TO THE NORMAL SITE 

Video Filtering

February 15, 2022

Table of Contents


crop

The crop filter crops the input video to given dimensions.

-vf "crop=in_w-16:in_h"

Crop 8 pixels from the left and right borders

Uncropped 1 | Cropped 1 | Uncropped 2 | Cropped 2

decimate

The decimate filter drops duplicate frames at regular intervals. If we have a 29.97fps progressive source where every 5th frame is a duplicate, we may want to apply this filter to discard the duplicate frame. This will produce smoother playback, and these duplicate frames may suffer from blending.

No video filters | decimate

gradfun

The gradfun filter aims to fix banding artifacts by interpolating and dithering the gradients introducing the bands.

No video filters | gradfun

gradfun is designed for playback and may introduce Moiré patterns. Be selective if using this filter.

No video filters | unsharp | gradfun introducing Moiré patterns

hqdn3d

The hqdn3d filter aims to reduce noise and produce smoother images.

Addressing minor temporal noise with strength setting -vf hqdn3d=0:0:3:3

No video filters | Denoised

scale

The scale filter resizes the input video.

-vf "scale=-1:720"

Downscale video to 720, preserving aspect ratio

subtitles

The subtitles filter draws subtitles on top of input video using the libass library.

ffmpeg -i "input[input].something" -ss hh:mm:ss.SSS -to hh:mm:ss.SSS -pass 2 ... -vf subtitles="input\[input\].something" ...

unsharp

TODO

The unsharp filter sharpens or blurs the input video.

Address blurry videos with -vf unsharp

No video filters | unsharp

yadif

TODO

The yadif filter deinterlaces the input video.

Deinterlace with -vf yadif

Timeline Editing

TODO

The timeline editing filter allows filtering of certain timestamps.

-vf somefilter=enable='between(t,52.428,55.347)+between(t,82.166,83.792)',someotherfilter=enable='between(t,82.166,83.792)'
Back to overview