Tuesday, October 28, 2025

How to Convert VLC generated video screenshots into a Single PDF on Ubuntu

 Have you ever captured multiple screenshots from a video — maybe a tutorial, lecture, or online course — and wanted to combine them into one organized PDF?

In this guide, you’ll learn how to easily convert your VLC Media Player screenshots into a single, well-ordered PDF file using a simple command-line tool on Ubuntu.

This method is fast, reliable, and keeps your image quality intact — perfect for study notes, presentations, or archiving your learning material.



🧰 Step 1: Install img2pdf

img2pdf is a lightweight, open-source utility that converts image files directly into PDF format without compressing or distorting the original images.

Install it using:

sudo apt install img2pdf -y

Once installed, you’re ready to start working with your screenshots.


📂 Step 2: Navigate to Your Screenshot Folder

Go to the folder where VLC saved your screenshots:

cd /path/to/your/screenshots

To verify the files are there, run:

ls -lh

🧩 Step 3: Combine Screenshots into a PDF

To merge all screenshots into one PDF, run:

img2pdf *.png -o video_screenshots.pdf

This command creates a file named video_screenshots.pdf in the same directory.


🧠 Step 4: Confirm the PDF File

To make sure the file was successfully created, run:

ls -lh video_screenshots.pdf

Example output:

-rw-r--r-- 1 user user 120M Oct 27 14:35 video_screenshots.pdf

🖥️ Step 5: Open the PDF

You can view your newly created PDF directly from the terminal:

xdg-open video_screenshots.pdf

This will open the file in your default PDF viewer.


⏱️ Step 6: Create the PDF in the Correct Time Order (Oldest → Newest)

If your screenshots aren’t named in order, or filenames got mixed up, you can arrange them by capture time before converting:

img2pdf $(ls -1tr *.png) -o video_screenshots.pdf

💡 Explanation:

  • ls -1t → sorts files by modification time (newest first)

  • -r → reverses the list (so oldest first)

  • img2pdf $(...) → merges images in that time order

✅ This ensures your PDF pages appear exactly in the sequence you captured them — ideal for video summaries or step-by-step learning notes.


🏁 Conclusion

And that’s it! 🎉
You’ve successfully combined your VLC video screenshots into a neatly organized, high-quality PDF — all from your Ubuntu terminal.

This workflow is perfect for:

Once you get the hang of it, you can even automate the process with a small script — making it just one command to turn all your video screenshots into a single, ready-to-share PDF.

2 comments:

  1. This is a practical and easy-to-follow tutorial for converting VLC video screenshots into a single PDF on Ubuntu. Using img2pdf is a straightforward approach because it preserves the original image quality while combining multiple screenshots into one document. The step-by-step terminal commands make this method particularly useful for organizing lecture notes, tutorials, and educational materials.

    Image processing techniques can also be useful in academic projects involving image manipulation, enhancement, and analysis. Image Processing Projects For Final Year can provide inspiration for students exploring practical applications of image processing.

    ReplyDelete
  2. Similarly, extracting and organizing visual information from video content is relevant to video analysis and computer vision applications. Video Processing Projects can help students explore project ideas involving video frames, visual data processing, and automated analysis.

    ReplyDelete

Ship It: From Code to Kubernetes in One Git Push

  Ship It: From Code to Kubernetes in One Git Push In modern software development, writing code is only one part of the journey. The real ch...