Johan's original shotdetect repo was forked by Peter B. to include some fixes and new features.
Maybe they'll get merged back to the main repository, but until now, I'll show you how to compile his version:
1) Clone git repository:
On Shotdetect's GitHub page you find the URL for cloning on the right hand side.
Something like this: https://github.com/johmathe/Shotdetect.git
Copy it to your clipboard.
Now, clone it into some folder in your home directory:
Code: Select all
$ mkdir -p ~/install/shotdetect
$ git clone https://github.com/johmathe/Shotdetect.git ~/install/shotdetect/shotdetect-git
I currently don't have the exact list of which packages are minimum requirement, but I've found a list of required packages for building v1.0.86 on Debian 6.
Install the following packages:
Code: Select all
$ apt-get install build-essential checkinstall libxml2-dev libxslt1-dev libavformat-dev libswscale-dev libgd2-noxpm libgd2-noxpm-dev
Code: Select all
$ apt-get install cmake clang libavdevice-dev
Change to the shotdetect git directory.
This builds and compiles the commandline version:
Code: Select all
$ ./compile.sh cmd
4) Install it as a package:
Currently, the Debian package source for shotdetect is not compatible for using it with the current git head version.
Therefore I'll use "checkinstall", which does a pretty good job
You may edit the description for the package, by modifying the file called "description-pak", which contains this by default:
Now run checkinstall on the "make install" command:'Shotdetect' detects scene cuts within a movie.
The result produced is a simple XML file containing informations about the analyzed video/audio material, such as:
- Quantity of movement
- RGB color values
- HSV color values
Code: Select all
$ cd build && sudo checkinstall -D --install --pkgname=shotdetect --pkgversion=1:2.0.0-git --provides=shotdetect --pkglicense=GPL --nodoc
NOTE: You might have to update your scripts using shotdetect, because the commandline binary was renamed to "shotdetect-cmd", and the default "shotdetect" points to the GUI version.