Adjusts in project
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user