It seems there might be a slight confusion in your question. FFmpeg does not have a filter called "randomi." However, FFmpeg does have a variety of filters that can be used to manipulate video and audio in random or pseudo-random ways. One such filter is the random filter, which can be used to generate random noise or apply random effects.
Here are a few examples of how you might use filters in FFmpeg to achieve random effects:
1. Generating Random Noise
You can use the noise filter to generate random noise. This is often used for testing or creating visual effects.
This command generates a single frame of random RGB noise and saves it as output.png.
2. Randomly Shuffling Frames
If you want to randomly shuffle the frames of a video, you can use a combination of split and aset filters along with a custom script or a more complex FFmpeg command. However, FFmpeg does not have a built-in filter to directly shuffle frames randomly.
3. Applying Random Effects
You can apply random effects by using the loop and random functions within the filtergraph. For example, to randomly adjust the brightness of each frame:
This command splits the input video into two streams, converts one stream to grayscale, applies a random brightness adjustment, and then overlays it back onto the original video.
4. Randomly Selecting Frames
If you want to randomly select frames from a video, you can use the select filter with a random expression: