Made some chanages and now Can't remmebr what I did

This commit is contained in:
2026-07-23 04:55:36 +00:00
parent c8d645e9bd
commit 83303b3548
12 changed files with 518 additions and 415 deletions
+3 -8
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
import argparse
import sys
import subprocess
import linux
import tempfile
from pathlib import Path
from moviepy import VideoFileClip, ColorClip, CompositeVideoClip
@@ -36,13 +36,8 @@ def fit_to_9_16_letterbox(input_path: str, top_text: str = "TOP TEXT", bottom_te
background_layer = None
try:
cleanup_cmd = [
"ffmpeg", "-y", "-i", str(input_file),
"-map_chapters", "-1", "-sn",
"-c", "copy", temp_path
]
subprocess.run(cleanup_cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
linux.run_command(f"ffmpeg -y -i {input_file} -map_chapters -1 -sn -c copy {temp_path}")
# Load video
clip = VideoFileClip(temp_path)