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 subprocess
|
2023-11-23 22:59:09 +01:00
|
|
|
import sys
|
2018-06-24 18:28:37 +02:00
|
|
|
|
|
|
|
files = sys.argv[1:]
|
|
|
|
|
|
|
|
remove = False
|
2021-06-13 11:49:21 +02:00
|
|
|
if "-r" in files:
|
|
|
|
files.remove("-r")
|
2018-06-24 18:28:37 +02:00
|
|
|
remove = True
|
|
|
|
|
|
|
|
for f in files:
|
|
|
|
print(os.path.splitext(f))
|