Skip to content

Instantly share code, notes, and snippets.

@maaduukaar
Last active January 15, 2026 17:51
Show Gist options
  • Select an option

  • Save maaduukaar/7ce93187ae10c499ccd67141491f2683 to your computer and use it in GitHub Desktop.

Select an option

Save maaduukaar/7ce93187ae10c499ccd67141491f2683 to your computer and use it in GitHub Desktop.
Download a YouTube video with Russian subtitles and burn them into the video (hard subs) on Windows using yt-dlp and FFmpeg.
G:\Soft\yt-dlp.exe --ffmpeg-location G:\Soft\ffmpeg\bin --write-subs --sub-lang ru --convert-subs srt -f "bv*+ba/b" -o "video.%(ext)s" https://www.youtube.com/watch?v=HK81_DP4U7Y ; G:\Soft\ffmpeg\bin\ffmpeg.exe -i video.mkv -vf subtitles=video.ru.srt out.mp4
@maaduukaar
Copy link
Author

maaduukaar commented Jan 15, 2026

🎬 YouTube β†’ Video with Hard Subtitles (Windows)

This mini-guide explains how to download a YouTube video and burn subtitles directly into the image (hard subs) using yt-dlp and FFmpeg.


🧰 Requirements

πŸ”Ή yt-dlp

Download the Windows executable from the official
yt-dlp GitHub releases page.
Look for the file named yt-dlp.exe.

πŸ”Ή FFmpeg

Download a Windows build from the official
FFmpeg website.
Choose a Windows static build and extract it.

πŸ‘‰ Adding FFmpeg to the system PATH is optional β€” you can provide its location directly.


βš™οΈ What this setup does

βœ… Downloads the best available video and audio
βœ… Downloads Russian subtitles (author or auto-generated)
βœ… Converts subtitles to SRT format
βœ… Burns subtitles permanently into the video (hard subs)
βœ… Produces a final MP4 file


ℹ️ Notes

  • πŸ”’ Hard subtitles cannot be turned off in a media player
  • πŸ–₯️ Designed for Windows PowerShell
  • 🌐 If Russian subtitles are unavailable, auto-generated subtitles can be used

✨ Clean, reliable, and suitable for repeated or scripted use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment