0

ffmpeg was working fine until I got the following error message.

ffmpeg: error while loading shared libraries: libopencv_core.so.2.4: cannot open shared object file: No such file or directory

I tried to install opencv again I followed this script

$ opencv_version 
3.4.1

any idea

Thks

MGM
  • 133
  • 6
  • I got a solution : I just delete all instance of opencv and ffmpeg, uninstall ffmpeg, and then install it again, now work fine :) sudo find / -name "*opencv*" -exec rm -R {} \; sudo find / -name "*ffmpeg*" -exec rm -R {} \; sudo apt-get install ffmpeg – MGM May 29 '18 at 11:27
  • you shouldn't answer in comments, post this as a solution below and then you can accept your answer after 48 hours for everyone else who has this issue int he future. – GPPK May 29 '18 at 14:48

1 Answers1

0

You have installed Opencv 3.4.1 & are trying to use 2.4, emphasis mine:

ffmpeg: error while loading shared libraries: libopencv_core.so.2.4: cannot open shared object file: No such file or directory

Update your FFMPEG library and all should be groovy

GPPK
  • 6,546
  • 4
  • 32
  • 57