MoviePy 2 Tutorial 2026 - how to run the code
=============================================
Tested with: Python 3.13, moviepy 2.2.1 (imageio-ffmpeg 0.8.1 brings its own ffmpeg).
Run every command from this folder.

1. Make a virtual environment and install MoviePy 2:
   Linux / macOS:  python3 -m venv .venv && source .venv/bin/activate
   Windows:        python -m venv .venv  then  .venv\Scripts\activate
   pip install -r requirements.txt

2. Make the sample clips (no downloads, no copyrighted media):
   python make_samples.py          (any OS, uses the ffmpeg that comes with MoviePy)
   or: bash make_samples.sh        (Linux / macOS with ffmpeg installed)

3. Run the lessons in order (results go to out/):
   python 01_inspect.py
   python 02_trim.py
   python 03_text.py
   python 04_merge.py
   python 05_fades.py
   python 06_audio.py               (uses out/fades.mp4 from step 05)
   python 07_shorts.py
   python highlight_reel.py         (the mini project: out/highlight_reel.mp4)
   python short_after.py            (bonus: out/after.mp4, a 1080x1920 reel)

Tip: drop your own .mp4 files into media/ and run highlight_reel.py again for a new reel.
On Windows, a system font also works for TextClip, for example font="C:/Windows/Fonts/arial.ttf".
