Skip to content

Instantly share code, notes, and snippets.

View angel1254mc's full-sized avatar
๐Ÿ„

Angel Lopez Pol angel1254mc

๐Ÿ„
View GitHub Profile
@angel1254mc
angel1254mc / main.py
Created March 8, 2024 04:47
Transcribe Video and Generate Captions with Whisper-Timestamped + MoviePy ๐Ÿ˜Ž
from moviepy.editor import VideoFileClip, TextClip, CompositeVideoClip
import whisper_timestamped as whisper
filename = "example.mp4"
screen_width = 1080
screen_height = 1920
def get_transcribed_text(filename):
audio = whisper.load_audio(filename)