Skip to content

Instantly share code, notes, and snippets.

@apeckham
apeckham / reverse.sh
Created August 10, 2024 23:29
ffmpeg reverse video in memory-friendly chunks
#!/bin/bash
set -ex
# Input file name
input_file="input.mp4"
# Output file name
output_file="output.mp4"
# Duration of each segment in seconds (5 minutes)