Skip to content

arvindjuneja/yt2premiere

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YT → Premiere

YT → Premiere

Download any YouTube clip. Get a file that just works in Premiere Pro.

macOS Windows Python H.264 + AAC License

No codec headaches  ·  No missing audio  ·  No "unsupported compression type" errors
Paste a link → pick quality → get a proper H.264 + AAC MP4 ready for your timeline.



🎬 The problem

YouTube now serves videos in modern codecs like AV1 and Opus.
Browsers play them fine — but Premiere Pro, Final Cut, and QuickTime choke on them:

❌  "File uses unsupported video compression type av01"
❌   Video imports but audio is missing
❌   QuickTime says the file is corrupted
😤 What YouTube sends ✅ What Premiere needs
AV1 / VP9 videoH.264 (AVC) video
Opus audioAAC audio
WebM containerMP4 container

YT → Premiere fixes this automatically.


✨ Features

🎯 Premiere-ready output — H.264 + AAC in MP4, every time
📐 Quality picker — 4K, 1080p, 720p, 480p, or audio-only MP3
Smart conversion — only re-encodes what's needed; copies the rest
🌙 Dark mode UI — modern look, native feel on macOS & Windows
📋 One-click paste — grabs the URL straight from your clipboard
📊 Live progress — download speed, ETA, and progress bar


🚀 Quick start

macOS

You need 2 things on your Mac:

  1. Python 3.10+ — check with python3 --version
  2. ffmpegbrew install ffmpeg   (install Homebrew first if you don't have it)
git clone https://github.com/arvindjuneja/yt2premiere.git
cd yt2premiere

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python3 app.py          # or: ./run.sh

Windows

You need 2 things on your PC:

  1. Python 3.10+ — download from python.org   (check "Add python.exe to PATH" during install)
  2. ffmpeg — download from gyan.dev or install with winget install Gyan.FFmpeg
git clone https://github.com/arvindjuneja/yt2premiere.git
cd yt2premiere

python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
python app.py           REM or: run.bat

🖥️ How to use

Step Action
1 Copy a YouTube URL in your browser
2 Click Paste in the app
3 Pick your quality from the dropdown
4 Hit Download & Convert for Premiere
5 Import the MP4 into Premiere — it just works ✅

🔧 How it works

 YouTube URL
      │
      ▼
 ┌─────────┐
 │  yt-dlp  │ ── downloads best available streams
 └────┬────┘
      │
      ▼
 ┌──────────┐
 │ ffprobe  │ ── checks video & audio codecs
 └────┬────┘
      │
      ├── both H.264 + AAC? ─────────► done! (no re-encode, instant)
      │
      ├── video ok, audio is Opus? ──► convert audio only (fast)
      │
      └── video is AV1/VP9? ─────────► re-encode video + audio
                                               │
                                               ▼
                                   ┌─────────────────────┐
                                   │  H.264 + AAC  MP4   │
                                   │  Premiere Pro ready  │
                                   └─────────────────────┘

🧱 Built with

Tool Role
📥 yt-dlp Downloads streams from YouTube
🎞️ ffmpeg / ffprobe Codec detection & H.264 + AAC re-encoding
🎨 CustomTkinter Modern dark-mode GUI
🐍 Python 3.10+ Ties everything together

🩹 Troubleshooting

"No module named '_tkinter'"

macOS — install Tk bindings for your Python version, then recreate the venv:

brew install python-tk@3.13   # match your python version
rm -rf venv
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Windows — reinstall Python from python.org and make sure tcl/tk and IDLE is checked in the optional features step.

SSL certificate errors

macOS — use Homebrew's Python instead of the python.org standalone installer:

/opt/homebrew/bin/python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Windows — this usually means an outdated Python install. Update to the latest 3.x from python.org.

Conversion is slow on long videos

That's normal — ffmpeg re-encodes video to H.264 which is CPU-intensive. For a 5-minute 1080p clip, expect ~30–60 seconds depending on your machine. Short clips convert in a few seconds.

ffmpeg not found (Windows)

Make sure ffmpeg is on your PATH. After installing with winget install Gyan.FFmpeg, restart your terminal. You can verify with:

ffmpeg -version

If it still isn't found, add the ffmpeg bin folder to your system PATH manually.


📄 License

MIT — use it however you want.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages