Skip to main content

Posts

Showing posts with the label youtube

How to Transcribe Videos with Whisper on macOS: A Complete Guide

No need to pay any subscription fees to any of the online transcription service, use OpenAI's Whisper (https://openai.com/index/whisper/), and run it locally on your computer to generate subtitles for all kinds of videos. This guide walks you through installing Python, Whisper, FFmpeg, and yt-dlp on macOS to transcribe videos into subtitles using OpenAI's Whisper. Optimized for M1/M2/M3 and Intel Macs, it includes setting up a virtual environment, downloading YouTube videos, and optimizing performance. Step 1: Install Python Check if Python is Installed Open Terminal: Press Cmd + Space , type Terminal , and press Enter . Type: python3 --version If you see a version like Python 3.10.6 , Python is installed. Ensure it’s 3.8–3.11. If it’s older (e.g., 3.7) or missing, proceed to install. Note: macOS includes a system Python (e.g., /usr/bin/python3 ). Don’t use it; we’ll install a separate version to avoid conflicts....

How to use yt-dlp to download video or audio from YouTube, directly from your Mac

Whenever I need to download video/audio from Youtube, I just google search "download video from youtube", and randomly pick one result from the first page. Until today, I come across a 'thing', called yt-dlp . It can easily let me download any thing from Youtube, fast. 1. What is yt-dlp : I don't know exactly, but it can let me directly:  Downloads videos, audio, subtitles, or metadata from websites like YouTube. Why Use It? : Faster and more reliable than web-based downloaders, with precise control (e.g., audio-only, specific formats). It’s command-line but easy to learn for my Mac. Learn more at:  https://github.com/yt-dlp/yt-dlp 2. Prerequisites for Mac Before using yt-dlp , ensure these are installed: Homebrew (package manager):                /bin/bash -c " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh ) If already installed, update:           brew update FFmpeg...