Files
videobeaux/programs/reverse.py
2024-06-21 00:46:43 -04:00

13 lines
353 B
Python

from utils.ffmpeg_operations import run_ffmpeg_command
def reverse(input_file, output_file):
command = [
"ffmpeg",
"-y",
"-i", input_file,
"-vf", "reverse",
"-af", "areverse",
output_file
]
run_ffmpeg_command(command)
print(f"Video reversed and saved as {output_file} from {input_file}")