Adjusts in project

This commit is contained in:
Leonardo Mortari
2025-08-02 01:45:36 -03:00
parent 55c7ccf316
commit 5bb58c98e5
3 changed files with 8 additions and 22 deletions

View File

@@ -9,10 +9,6 @@ from moviepy import TextClip
font = "./Montserrat.ttf"
def normalize_filename(filename):
name = unicodedata.normalize('NFKD', filename).encode('ASCII', 'ignore').decode('ASCII')
return name.lower()
def cut_video_new_clip(input_path: str, start: float, end: float, output_path: str):
video_codec = "libx264"
@@ -108,11 +104,11 @@ def timestamp_to_seconds(ts):
else:
raise ValueError(f"Timestamp inválido: {ts}")
def process_full_video(filename: str, title: str, times: list = None) -> list:
def process_full_video(filename: str, times: list = None) -> list:
os.makedirs("temp", exist_ok=True)
times = times or []
video_path = f"videos/{title}"
video_path = f"videos/{filename}"
processed = []
video_codec = "libx264"