How to create thumbnail sheets for videos in Linux
Thumbnails sheets are typical image files that contain frames from video. Video thumbnail sheets have their origins in photo sheets, popular about a decade ago, when people still had the habit of printing photos.
Like the photo sheets, which acted as a preview for images on film and SD card back then, the thumbnail sheet you saw here acted as a preview for the video file. It's easier and faster to flip through to check the content and video quality, instead of opening it in a media player and watching from start to finish.
Thankfully, you don't have to extract specific frames from your videos and then rearrange them manually. You can use tools to easily create thumbnail sheets from the video.TipsMake.com will show you 2 ways to do so with Linux in this article.
Use Gnome Videos
If you are using Gnome, its default media player, named Videos , (or Gnome Videos , as it is part of the Gnome toolkit and recently known as Totem ), provide An easy option to create thumbnail sheets.
To use it, run the program.
Open the video you want to create some thumbnail sheets from, then from the application menu, select Create Screenshot Gallery .
The window that appears will give you some basic options for thumbnail sheets. You can change the width of each thumbnail and let the program automatically choose the number of screenshots or give the number you want.
Then you just have to enter a name for the image file in the middle of the top of the window and click Save at the top right.
The generated files are very useful, but if it's not what you expect, you can't do much more. To gain more control over the results, you'll have to use another tool that provides more options.
Use FFMPEG
FFMPEG is a very sophisticated command line tool that you can use to work with your videos in many ways. One of them is the creation of thumbnail sheets. Although, to do that, you have to create a somewhat complex command. The command will look like this:
ffmpeg -ss 3 -i "/path/to/video/file.mp4" -frames 5 -vf "select=not(mod(n,3000)),scale=320:240,tile=4x3" -vsync vfr -q:v 10 image-sheet-filename_%03d.jpg
- -ss specifies the time skipped from the beginning of the video file. Most videos start with a title series and, in most cases, it is not helpful to have this section thumbnail. With this switch, you will instruct FFMPEG to skip X seconds from the beginning of the video to skip the introduction.
- -i put the input file that FFMPEG will grab the thumbnail.
- -frames specify the number of frames to be recorded.
- -q: v sets the compression quality of generated image files.
For the most interesting but also the most complex part of this command, we will have to expand a bit, as it does 3 things at once. What we are talking about is:
-vf "select=not(mod(n,3000)),scale=320:240,tile=4x3"
-vf at the beginning of FFMPEG tutorial to use video filter. Select = not (mod (n, 3000)) is responsible for the selected frame in the final image. It divides the number of the current frame ('n') by the number provided ('3000').
Video reaches 3001 frame? If we divide 3001 by the number 3000, we get 1, so this frame will be the first one in the generated image sheet. Video reaches frame 6001? Because 6001/3000 will give 2, this will be the second frame, etc. So by reducing this number, you increase the frequency of frame selection and vice versa.
With scale = 320: 240 , we set the size of each thumbnail in the final thumbnail sheet.
Finally, the tile = 4x3 section of the command determines how to arrange the thumbnails in each page.
You may have noticed that the final file name for the generated image file, looks like this:
filename_%03d.jpg
The % 03d section indicates that if FFMPEG ends up selecting more frames than it can fit on a single page, based on the title setting, it will create more image sheets with numbered file names. By reducing the number of n, NUMBER or number of cells per page, more files will be created and vice versa.
Of course, this also depends on the length of the video file. If you want to control the number of FFMPEG image files that will be generated, use the following equation:
Tổng số khung hình trong video/Số lượng ô trong một trang/Số lượng image sheet bạn muốn
Use the value from the mod (n, RESULTS) part of the command.
If you want individual images rather than a thumbnail sheet, FFMPEG also allows you to 'translate' the video back into individual images.
You should read it
- Fix Windows error without image, Thumbnail thumbnail
- How to delete and reset the cache thumbnail on Windows 10
- How to display sheet tabs in Excel
- How to create a password protection for Excel sheets
- What is a thumbnail? Learn about Thumbnails
- Thumbnail processing with PHP
- How to hide the Sheet Tabs (sheet bar) in Excel
- How to hide and hide sheets in Excel and show them again
- How to customize Share Sheet on iPhone, iPad
- How to get a representative video on Youtube
- How to lock Excel Sheet, set a password for the sheet in Excel
- How to get data from one sheet to another depends on the condition
Maybe you are interested
How to convert video to MP3
How to use ChatGPT to translate videos
Simple Tips to Learn How to Use Video Editing Apps
How to increase music and video volume without distorting the sound
How to download TikTok videos without watermark on computer using x2convert
Group video call on Messenger, video call on Facebook Messenger