def burn_subtitles(video_path, subtitle_path, output_video_path):
    """
    Uses ffmpeg to burn subtitles into the video.
    """
    cmd = [
        'ffmpeg',
        '-i', video_path,
        '-vf', f"subtitles={subtitle_path}",
        '-c:a', 'copy',
        output_video_path
    ]
    
    try:
        subprocess.run(cmd, check=True)
        logging.info(f"Subtitles have been burned into the video: {output_video_path}")
    except subprocess.CalledProcessError as e:
        logging.error(f"Error burning subtitles: {e}")

    Uses ffmpeg to burn subtitles into the video.
    
subtitler.py