Skip to content
/ chunk Public

reduce video length by removing similar frames in an elegant way

License

Notifications You must be signed in to change notification settings

devhindo/chunk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

usage: reduce the length of videos buy ignoring repeated frames
syntax: chunk <path> -p <similarity percentage> -o <output path>
example: chunk /home/user/Downloads/video.mp4 -p 90 -o /home/user/Downloads/output.mp4
flags:
    -p, --percentage: similarity percentage to ignore repeated frames (default: 90)
    -o, --output: output path (default: same directory as input file)
    -h, --help: display help
example: chunk /home/user/Downloads/video.mp4 -p 80 -o /home/user/Downloads/output.mp4


algorithm:
    1. read video file
    2. extract frames
    3. calculate similarity between frames
    4. if frame similarity is greater than the given percentage, ignore the second frame
    5. write the remaining frames to a new video file

About

reduce video length by removing similar frames in an elegant way

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published