Skip to main content
How to Download YouTube Videos - Complete Beginner's Guide

How to Download YouTube Videos - Complete Beginner's Guide

Step-by-step guide to downloading YouTube videos for processing with AutoShorts. No programming experience needed!

Nov 21, 20258 min readAutoShorts Team

⚠️ Important: Use a Burner Account

YouTube may flag accounts that download videos. Create and use a separate "burner" YouTube account for downloads. Do NOT use your main account!

1

Open Terminal (Command Line)

On Mac:

  1. Press Cmd + Space together
  2. Type "Terminal" in the search box
  3. Press Enter

On Windows:

  1. Click the Start button (Windows icon)
  2. Type "cmd" or "Command Prompt"
  3. Press Enter

💡 You'll see a black or white window with text - this is the "Terminal" or "Command Prompt". This is where you'll type commands.

2

Check if Python is Installed

Type this command and press Enter:

# On Mac/Linux:

python3 --version

# On Windows:

python --version

✅ Success looks like:

Python 3.11.5

If you see this, you're good to go!

❌ If you see "command not found" or an error:

You need to install Python first:

Download Python from python.org →

Download the latest version, run the installer, and check "Add Python to PATH" during installation.

3

Install yt-dlp (The Download Tool)

This tool downloads YouTube videos. Type this command:

# On Mac/Linux:

pip3 install yt-dlp

# On Windows:

pip install yt-dlp

⏳ This might take 1-2 minutes. You'll see text scrolling by - that's normal! Wait for it to finish.

4

Install ffmpeg (Video Processor)

This helps combine video and audio files together.

On Mac:

brew install ffmpeg

ℹ️ If you see "brew: command not found", you need Homebrew first:Install Homebrew →

On Windows:

  1. Download ffmpeg from ffmpeg.org
  2. Extract the ZIP file
  3. Add the "bin" folder to your System PATH (search "how to add to PATH Windows")
5

Create a Folder for Downloads

Let's create a folder where your videos will be saved:

mkdir youtube-downloads

cd youtube-downloads

Type each command and press Enter. The first creates a folder, the second enters it.

6

Create Python Virtual Environment

This creates an isolated space for the download tool:

# Create virtual environment:

python3 -m venv .venv

# Activate it (Mac/Linux):

source .venv/bin/activate

# Activate it (Windows):

.venv\Scripts\activate

✅ Success looks like:

You'll see (.venv) appear at the start of your terminal line

7

Save the Download Script

Copy this entire script, save it as ytdownload.py:

import argparse
import sys
import yt_dlp

def download_4k_video(url, output_dir="downloads", browser=None):
    ydl_opts = {
        'format': 'bestvideo+bestaudio/best',
        'merge_output_format': 'mp4',
        'outtmpl': f'{output_dir}/%(title)s.%(ext)s',
        'noplaylist': True,
        'quiet': False,
        'prefer_ffmpeg': True,
        'keepvideo': False,
        'postprocessors': [{
            'key': 'FFmpegVideoRemuxer',
            'preferedformat': 'mp4',
        }],
        'postprocessor_args': ['-c', 'copy'],
        'progress_hooks': [lambda d: print(d['status']) if 'status' in d else None],
    }

    if browser:
        ydl_opts['cookiesfrombrowser'] = (browser,)
        print(f"[INFO] Using cookies from {browser} browser")
        print(f"[WARNING] Make sure you're logged into a BURNER account!")

    with yt_dlp.YoutubeDL(ydl_opts) as ydl:
        info = ydl.extract_info(url, download=True)
        print(f"\n✓ Downloaded: {info.get('title', 'Unknown')}")
        print(f"✓ Resolution: {info.get('width')}x{info.get('height')}")

if __name__ == "__main__":
    parser = argparse.ArgumentParser(
        description="Download YouTube video in high quality."
    )
    parser.add_argument("url", help="The YouTube video URL")
    parser.add_argument("--output_dir", default="downloads", help="Output directory")
    parser.add_argument(
        "--browser",
        choices=["chrome", "firefox", "safari", "edge", "brave"],
        help="Browser to extract cookies from (REQUIRED)"
    )
    args = parser.parse_args()

    if not args.browser:
        print("[ERROR] Please specify --browser option")
        print("Example: python ytdownload.py 'URL' --browser chrome")
        sys.exit(1)

    download_4k_video(args.url, output_dir=args.output_dir, browser=args.browser)

How to save the script:

  1. Select and copy all the code above
  2. On Mac: Open TextEdit (Applications → TextEdit)
  3. On Windows: Open Notepad (Start → Notepad)
  4. Paste the code
  5. Important: Go to Format → Make Plain Text (TextEdit only)
  6. Save as ytdownload.py in your youtube-downloads folder
8

Download a Video!

Before you run the command:

  1. Open your browser (Chrome, Safari, Firefox, etc.)
  2. Log into a BURNER YouTube account (not your main account!)
  3. Keep the browser open

Now run this command (replace the parts in caps):

python ytdownload.py "PASTE_YOUTUBE_URL_HERE" --browser YOUR_BROWSER

Example:

python ytdownload.py "https://www.youtube.com/watch?v=dQw4w9WgXcQ" --browser chrome

Replace YOUR_BROWSER with:

  • chrome - if using Google Chrome
  • safari - if using Safari (Mac)
  • firefox - if using Firefox
  • edge - if using Microsoft Edge
  • brave - if using Brave
9

Find Your Downloaded Video

Your video will be saved in:

youtube-downloads/downloads/

On Mac: Open Finder → Go menu → Home → youtube-downloads → downloads

On Windows: Open File Explorer → Navigate to C:\Users\YourName\youtube-downloads\downloads

Troubleshooting

❌ "command not found" error

The tool isn't installed. Go back and reinstall Python, yt-dlp, or ffmpeg (whichever command failed).

❌ "Permission denied" error

Try adding sudo before the command (Mac/Linux only):sudo pip3 install yt-dlp

❌ "Bot detection" or "Sign in to confirm you're not a bot"

Make sure you're logged into a YouTube account in your browser (use a burner account!) and the browser is open when running the command.

❌ Video downloaded but won't play

Try using VLC Media Player - it plays almost any video format. Download from videolan.org

Ready to turn your video into viral clips?

AutoShorts를 만드는 사람들

Nicolai Gaina

Nicolai Gaina

AutoShorts 창립자

샌프란시스코 베이 에어리어에서 12년 이상의 전문 경력을 보유한 소프트웨어 엔지니어. 소프트웨어 개발, 콘텐츠 제작, 소셜 미디어 성장 전문가로, 데이터 기반 성장 전략, AI, 콘텐츠 크리에이터를 위한 임팩트 있는 온라인 도구 개발에 뛰어납니다.

팔로우: LinkedInAutoShorts 자세히 알아보기

관련 게시물

AI로 YouTube 챕터를 자동으로 생성하는 방법

AI로 YouTube 챕터를 자동으로 생성하는 방법

AI를 활용하여 1분 이내에 YouTube 챕터를 자동 생성하는 방법을 알아보세요. 시청자 이탈률을 10-15% 줄이고 주간 작업 시간을 절약하세요.

Mar 8, 2026
16분
유튜브 쇼츠에 자막을 자동으로 추가하는 방법

유튜브 쇼츠에 자막을 자동으로 추가하는 방법

유튜브 쇼츠에 자동으로 자막을 추가하는 방법을 배워보세요. 단계별 가이드와 최고의 AI 도구로 시청 참여도를 80% 증대시킬 수 있습니다.

Mar 5, 2026
15분
2026년 비디오 팟캐스트 시작하기: 초보자를 위한 완벽 가이드

2026년 비디오 팟캐스트 시작하기: 초보자를 위한 완벽 가이드

2026년 비디오 팟캐스트를 시작하려는 초보자들을 위한 완벽한 가이드입니다. 필수 장비, 설정 팁, 예산 절약형 배포 전략까지 모두 배워보세요.

Mar 8, 2026
24분
트위치와 킥 스트림을 바이럴 숏폼 영상으로 변환하는 방법

트위치와 킥 스트림을 바이럴 숏폼 영상으로 변환하는 방법

6시간 스트림을 20개 이상의 바이럴 숏폼 영상으로 만드는 방법을 배우세요. 틱톡, 릴스, 유튜브 쇼츠를 위한 단계별 클립 가이드입니다.

Aug 16, 2026
14분
1개의 비디오를 30개 이상의 콘텐츠로 재활용하는 방법

1개의 비디오를 30개 이상의 콘텐츠로 재활용하는 방법

1개의 비디오를 30개 이상의 콘텐츠로 변환하는 방법을 배워보세요. 플랫폼 전체에서 최대 engagement와 도달범위를 위한 단계별 프레임워크를 소개합니다.

Mar 9, 2026
19분
팟캐스트를 숏폼 비디오로 성장시키는 방법

팟캐스트를 숏폼 비디오로 성장시키는 방법

1시간의 팟캐스트 콘텐츠를 40개 이상의 바이럴 클립으로 변환하세요. TikTok, Reels, YouTube Shorts에서 에피소드를 재활용하는 틀을 배워보세요.

Mar 27, 2026
22분