Open source software that detects shot boundaries in video.
ShotDetector is a free software (LGPL) which detects shot boundaries from a video. The result can be produced in various formats. Produced file contains frame numbers and durations of detected shots in addition to general information of analyzed video. Currently, XML, YAML and TEXT (simple .txt file) formats are supported.
- OpenCV 2.3 or greater
- g++ (gcc)
- make (only necessary if Makefile is used for building program)
- pkg-config (only necessary if Makefile is used to build program)
In order to build the software, cd inside the main directory and run below command in terminal (or command prompt):
make
Also you can use GCC compiler directly (using g++ command) to build the software wthout using Make.
-h : Show help
-t threshold : Set threshold value. This value specifies sensitivity of detecting shots.
-i file : Sets input video file
-o output_path : save detected shots to output path 'output_path'
-s sample_period : set the sample period of stored frames. (Default = 0) Bigger sample period : means less images to be stored.
-show : display the shots on GUI (Graphical Version)
Example: ./ShotDetection -i test.mp4 -o outputs -show
- yildirimyasi(at)gmail(dot)com
Licensed under GNU Lesser General Public License (LGPL). See COPYING and LICENSE files for details.