Skip to main content

[solved] Crash with face detection effect

7 posts / 0 new
Last post
funix
funix's picture
Offline
Joined: 05/01/2012
Posts:
[solved] Crash with face detection effect

Hi

kdenlive crashes when I use face detection, I have this message in the shell

kdenlive: symbol lookup error: /usr/local/lib/frei0r-1/facebl0r.so: undefined symbol: cvSetNumThreads

Olivier

0
Your rating: None
ttguy
Offline
Joined: 09/15/2009
Posts:
Re: Crash with face detection effect

What version of kdenlive is this ?

Where do you find this effect? Because I am not sure this effect is supported in kdenlive.

j-b-m
Offline
Joined: 05/19/2009
Posts:
Re: Crash with face detection effect

Hi.

This happens when some frei0r effects are not correctly linked when the frei0r package is built. How did you install MLT, Frei0r and OpenCV? , which distro / version?

funix
funix's picture
Offline
Joined: 05/01/2012
Posts:
Re: Crash with face detection effect

I use kdenlive 0.9.4 with mlt 0.8.8, frei0r 1.3 and opencv 2.4.3, I installed them from sources as described here http://www.funix.org/fr/linux/index.php?ref=base-video and here http://www.funix.org/fr/linux/index.php?ref=montage
I also try the development version of frei0r and opencv but it's the same problem.

Olivier

j-b-m
Offline
Joined: 05/19/2009
Posts:
Re: Crash with face detection effect

Ok, then if you compiled OpenCV yourself, there is a problem with the pkg-config file, I found the info here:

https://bugs.archlinux.org/task/32430

So you need to manually edit the opencv.pc file located in /usr/local/lib/pkgconfig.

After that, you need to make rebuild frei0r from scratch and the crash should be gone. Note that for the effect to work, I had to create a symlink:
sudo ln -s /usr/local/share/Opencv /usr/share/opencv

In my tests, the effect does not seem to work very well, I have some random spots appearing, not sure what is going on but at least no crashes.

Edit the .pc file like this (change the lines in bold):


# Package Information for pkg-config

prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir_old=${prefix}/include/opencv
includedir_new=${prefix}/include

Name: OpenCV
Description: Open Source Computer Vision Library
Version: 2.4.9
Libs: -L${libdir} -lopencv_calib3d -lopencv_contrib -lopencv_core -lopencv_features2d -lopencv_flann -lopencv_gpu -lopencv_highgui -lopencv_imgproc -lopencv_legacy -lopencv_ml -lopencv_nonfree -lopencv_objdetect -lopencv_photo -lopencv_stitching -lopencv_ts -lopencv_video -lopencv_videostab
Cflags: -I${includedir_old} -I${includedir_new}

funix
funix's picture
Offline
Joined: 05/01/2012
Posts:
Re: Crash with face detection effect

Yes ! kdenlive doesn't crash anymore ! Thank you very much.

But as you noticed the effect doesn't seem to work very well.

Olivier

djay
Offline
Joined: 12/24/2010
Posts:
Re: Crash with face detection effect

Nice to see your windsurf looping detection don't crash Kdenlive anymore ...

Can you add a "Solved" to the title's initial post ? Useful for next readers

Thank's &
see:(ya