Made some chanages and now Can't remmebr what I did
This commit is contained in:
+3
-8
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user