Using setpts filter with random jitter effect in FFmpeg
The setpts filter in FFmpeg can be used to adjust the presentation time of each video frame. In this example, we will demonstrate how to apply a random jitter effect using the setpts filter.
Example
To apply a random jitter effect using setpts, you can use the following command:
ffmpeg -i input.mp4 -vf "setpts=PTS+random(i(0),i(-100),i(100))" output.mp4
Explanation
The setpts filter is used to adjust the presentation time of each video frame. The random() function generates a random value between the provided range (0, -100, 100 TB units). The i() function is used to specify the current frame index.