FFmpeg recipe
FFmpeg: Reverse a Video (Audio + Video)
reverse filters the entire video backward β note that it loads everything into memory, so works best on short clips.
Command
ffmpeg -i input.mp4 -vf reverse -af areverse -c:v libx264 -crf 23 -y output_reversed.mp4Prefer no terminal?
Use the Video Reverse in your browser
What each flag does
| -i | Input file. Can be a video, audio, or image. Repeat for multiple inputs. |
|---|---|
| -vf | Video filter chain. e.g. scale=1280:720, crop=, fps=30. |
| -af | Audio filter chain. e.g. silenceremove, loudnorm. |
| -c:v | Video codec for output. e.g. libx264, libx265, libvpx-vp9. |
| -crf | Constant Rate Factor β quality target (lower = better, larger file). 23 is visually lossless for libx264. |
| reverse | Video filter that buffers the entire stream and emits it in reverse. |
| areverse | Audio counterpart of reverse. Often paired together. |
Notes & gotchas
- Both filters require the entire stream in memory β keep clips under 1 minute or use a workstation with lots of RAM.
- For boomerang-style loops, use the loop recipe and append a reversed copy.
Related recipes
Resize to 1080p Β· Any video
Resize any video to 1080p (1920Γ1080) with FFmpeg scale filter. Preserves aspect ratio with -1 trick.
Crop to 9:16 Β· Any video
Crop a 16:9 video to 9:16 vertical with FFmpeg crop filter. Centered crop for TikTok, Reels, Shorts.
Change frame rate Β· Any video
Change the frame rate of any video with FFmpeg fps filter. Simple drop / duplicate for safe FPS conversion.
Speed up 2x Β· Any video
Speed up a video 2Γ (or any factor) with FFmpeg. Uses setpts for video and atempo for audio without pitch shift.