https://github.com/devhindo/chunk
reduce video length by removing similar frames in an elegant way
https://github.com/devhindo/chunk
c compression video-editing video-processing
Last synced: 5 months ago
JSON representation
reduce video length by removing similar frames in an elegant way
- Host: GitHub
- URL: https://github.com/devhindo/chunk
- Owner: devhindo
- License: mit
- Created: 2024-04-15T20:00:04.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-15T20:35:03.000Z (almost 2 years ago)
- Last Synced: 2024-12-29T21:32:35.241Z (about 1 year ago)
- Topics: c, compression, video-editing, video-processing
- Language: C
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
usage: reduce the length of videos buy ignoring repeated frames
syntax: chunk -p -o
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