diff --git a/captions.py b/captions.py index 3c0e194..ed04a44 100644 --- a/captions.py +++ b/captions.py @@ -32,7 +32,7 @@ def layer_captions(background_video_path, captions_data, output_path): end_time = time_to_seconds(end_time_str) # Create a TextClip with the extracted text - text_clip = TextClip(text, fontsize=15, font='font.ttf', color='white', align='center', method='caption', size=background_clip.size) + text_clip = TextClip(text, fontsize=25, font='font.ttf', color='white', align='center', method='caption', size=background_clip.size) # Set the duration of the text clip text_clip = text_clip.set_duration(end_time - start_time) diff --git a/consolidator.py b/consolidator.py index bc1874d..0f541dd 100644 --- a/consolidator.py +++ b/consolidator.py @@ -2,7 +2,7 @@ import re from datetime import datetime, timedelta -threshold = timedelta(seconds=2) +threshold = timedelta(seconds=1.43) def subtract_timestamps(timestamp1_str, timestamp2_str): # Convert timestamp strings to datetime objects