Have you ever wanted to save automatic screenshots from YouTube or any online video?
In this guide, we’ll learn how to do that using VLC Media Player and the Ubuntu terminal — completely offline once downloaded.
⚠️ Disclaimer: This tutorial is for educational purposes only.
Please use it only for personal learning or fair-use research, not for re-uploading or redistributing copyrighted videos.
🧰 Step 1. Install VLC Media Player on Ubuntu
If you don’t already have VLC, install it using:
🔧 Step 2. Install the Latest yt-dlp
The default version from Ubuntu’s repository is often outdated, so let’s install the newest one manually:
🧩 Step 3. Refresh the Terminal Cache
Tell your shell to forget the old path:
🔍 Step 4. Verify the Installation
Check that yt-dlp is now running from the correct location:
✅ Output should look like:
Then confirm the version:
🎬 Step 5. Download the Video and Capture Screenshots Automatically
Now you’re ready to download and generate screenshots every ~2 seconds automatically.
Replace id in the URL with your YouTube video’s ID, and username with your Linux username:
💡 How it works:
-
yt-dlpdownloads the video (temp.mp4). -
cvlc(VLC without interface) plays it silently. -
--scene-filtertakes a screenshot roughly every 2 seconds. -
All images are saved to
/home/username/createnewfolder/.
📂 Step 6. Check the Saved Screenshots
After the process finishes, open your screenshot folder:
You’ll see images named like:
VLC closes automatically once it finishes processing the video.
✅ Summary
You’ve successfully:
-
Installed the latest
yt-dlp. -
Downloaded a YouTube video safely.
-
Used VLC to capture screenshots automatically.
This setup is great for studying tutorials, analyzing frames, or taking notes from educational videos — all without manually pausing or pressing “Print Screen.”
No comments:
Post a Comment