dotfiles/config/scripts/vidcmp

21 lines
288 B
Plaintext
Raw Permalink Normal View History

2018-06-24 18:28:37 +02:00
#!/usr/bin/env python3
# Compresses video using FFMPEG using
# FFMPEG's reasonable default settings
import os
import sys
import subprocess
files = sys.argv[1:]
remove = False
if '-r' in files:
files.remove('-r')
remove = True
for f in files:
print(os.path.splitext(f))