kerberos-io / machinery

(DEPRECATED) An open source image processing framework, which uses your USB-, IP- or RPi-camera to recognize events (e.g. motion).
https://www.kerberos.io
490 stars 104 forks source link

Get Assertion desc failed at src/libswscale/swscale_internal.h:668 #210

Closed njjry closed 4 years ago

njjry commented 4 years ago

Describe the bug I was running kerberosio by using an IPCamera (I used raspberry pi and a rpi camera to make an IPCamera), and after it started the io devices, it gives the error: Assertion desc failed at src/libswscale/swscale_internal.h:668. I found the error was related to FFmpeg, does anyone else meets with this problem?

To Reproduce Steps to reproduce the behavior:

  1. make an IPCam using a raspberry pi and a rpi camera
  2. input the URL in the config.xml
  3. Run the kerberosio executable
  4. See error

I also tried changing to VideoCapture input by feeding an mjpeg video, but it still prompt the same error. I installed the Kerberos machinery following the installation guide and used FFmpeg of version 3.1.

Expected behavior Run kerberosio successfully

Screen Shot 2020-04-26 at 6 11 02 PM

Operating System and Device (please complete the following information):

Additional context How to solve this problem?

cedricve commented 4 years ago

Can you print out the ffmpeg dependencies?

ffmpeg -v
njjry commented 4 years ago

Thanks for replying. Below is a screenshot,

Screen Shot 2020-04-26 at 11 24 14 PM
cedricve commented 4 years ago

It looks like you have version 3.4 installed. Please try 3.1.

njjry commented 4 years ago

I was using 3.1, I found online saying installing FFmpeg using apt-get will solve the problem so I tried and it is 3.4 now. When it was 3.1, it also has the problem. I will show you the screenshot after I change back to 3.1.

njjry commented 4 years ago

This is 3.1 version screenshot

Screen Shot 2020-04-26 at 11 43 46 PM Screen Shot 2020-04-26 at 11 42 33 PM

I rebuilt machinary and still the same problem.

cedricve commented 4 years ago
ffmpeg version n3.1.11-10-g24b4c4c5ba Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
configuration: --enable-nonfree --enable-libx264 --enable-gpl
libavutil      55. 28.100 / 55. 28.100
libavcodec     57. 48.101 / 57. 48.101
libavformat    57. 41.100 / 57. 41.100
libavdevice    57.  0.101 / 57.  0.101
libavfilter     6. 47.100 /  6. 47.100
libswscale      4.  1.100 /  4.  1.100
libswresample   2.  1.100 /  2.  1.100
libpostproc    54.  0.100 / 54.  0.100

I used this version which works perfectly. I see a different in the libswscale version.

njjry commented 4 years ago

I will try, thanks

cedricve commented 4 years ago

Did it work?

njjry commented 4 years ago

Yeah, it works. Thanks.

cedricve commented 4 years ago

Can you explain what you did, might be interesting for other people. Thanks @njjry

njjry commented 4 years ago

I tried to remove all these libraries using apt-get autoremove --purge, and remove the libraries under /usr/local/lib and /usr/lib, and did make uninstall. After that start from scratch to rebuild the ffmpeg.