Reverse a video
speed & reverse
// what it does
The reverse filter plays the video frames back-to-front and areverse does the same for the audio samples, so the whole clip runs backwards with sound intact. Useful for rewind effects or as a building block for boomerang loops.
// shell
$ ffmpeg -i input.mp4 -vf reverse -af areverse output.mp4// gotcha
reverse buffers the entire input into memory before it can emit a single frame, so long or high-resolution clips can blow up RAM usage or fail outright — keep the segment short or split it first.