Skip to content

This script captures frames from a video file at regular intervals specified by the user, saving them as individual image files.

License

Notifications You must be signed in to change notification settings

marcin-filipiak/bash_screencaps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

This script captures frames from a video file at specified intervals. It prompts the user to input the interval in seconds and the path to the video file. Then, it extracts the duration of the video and iterates through the video, capturing frames at the specified interval. The captured frames are saved as individual image files. If any required parameter is missing or if the file doesn't exist, appropriate error messages are displayed. Finally, it notifies the user when the process of capturing frames is completed.

Usage:

./screencaps.bash <video_file_path> <interval_in_seconds>

But first:

chmod +x screencaps.bash
apt install ffmpeg mediainfo

About

This script captures frames from a video file at regular intervals specified by the user, saving them as individual image files.

Topics

Resources

License

Stars

Watchers

Forks

Languages