A Node.js Command Line Interface (CLI) tool for extract videos frames and compare them.
- Extract frames from video file.
- Compare frames and generate diff image.
npm install -g frames-extraction
frames-extraction --input <input_file> [--outputPath <output_directory>] [--threshold <threshold>] [--ffmpegParameters <ffmpeg_parameters>]
npm install
node src/presentation/cli.js --input <input_file> [--outputPath <output_directory>] [--threshold <threshold>] [--ffmpegParameters <ffmpeg_parameters>]
--input
- Input video file path.--outputPath
- Output directory path. Default:./output
.--threshold
- Threshold value for frame comparison. Default:55
.--ffmpegParameters
- FFMPEG parameters for frame extraction. Default:-vf fps=1 -q:v 2
.
node src/presentation/cli.js --input mov_bbb.mp4