Re: Compile "shotdetect" 1.0.86 with ffmpeg version 1.0.7
Posted: Sat Aug 10, 2013 12:53 am
I already wrote a HowTo about modifying shotdetect v1.0.86 to compile with ffmpeg version 0.6-0.7, and just today I wanted to compile it on Debian 7 (Wheezy).
Wheezy comes with ffmepg version 1.0.7, which has API changes since v0.7.
Lucky me, Giulio Paci has taken care of packaging shotdetect, and built it for Wheezy. Therefore, I can use the Debian source package for shotdetect, since it must contain patches to compile with that version of ffmpeg's libraries.
Let's go:
1) Create a folder for installation
...and switch to that directory:
2) Fetch the deb-src package for shotdetect
3) Install build-dependencies
Even if you had installed all dependencies for building the original shotdetect source (see my previous thread), building shotdetect's Debian source will fail:
4) Build shotdetect's original sources:
(If you want to, you can read up on Working with a source package on Debian's wiki)
Wheezy comes with ffmepg version 1.0.7, which has API changes since v0.7.
Lucky me, Giulio Paci has taken care of packaging shotdetect, and built it for Wheezy. Therefore, I can use the Debian source package for shotdetect, since it must contain patches to compile with that version of ffmpeg's libraries.
Let's go:
1) Create a folder for installation
...and switch to that directory:
Code: Select all
$ mkdir -p ~/install/shotdetect
cd ~/install/shotdetect
Code: Select all
$ apt-get source shotdetect
Even if you had installed all dependencies for building the original shotdetect source (see my previous thread), building shotdetect's Debian source will fail:
Install the packages mentioned by dpkg-checkbuilddeps:dpkg-checkbuilddeps: Unmet build dependencies: devscripts cdbs (>= 0.4.85~) debhelper (>= 9~) dh-buildinfo
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
Build command 'cd shotdetect-1.0.86 && dpkg-buildpackage -b -uc' failed.
E: Child process failed
Code: Select all
$ apt-get install devscripts cdbs debhelper dh-buildinfo
(If you want to, you can read up on Working with a source package on Debian's wiki)
Code: Select all
$ apt-get --build source shotdetect