[FFmpeg-user] Installing the ocv filter

dimaseriy dimaseriy1996 at yandex.ru
Thu Jul 25 14:14:07 EEST 2019


So what's the solution? Installing older opencv?

25.07.2019, 17:08, "Paul B Mahol" <onemda at gmail.com>:
> On 7/25/19, dimaseriy <dimaseriy1996 at yandex.ru> wrote:
>>  I tried
>>
>>  mkdir -p ~/ffmpeg_sources ~/bin
>>  cd ~/ffmpeg_sources
>>  wget -O ffmpeg-snapshot.tar.bz2
>>  https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 && tar xjvf
>>  ffmpeg-snapshot.tar.bz2 && cd ffmpeg
>>
>>  but I got
>>
>>  $ PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig"
>>  ./configure --prefix="$HOME/ffmpeg_build" --pkg-config-flags="--static"
>>  --extra-cflags="-I$HOME/ffmpeg_build/include"
>>  --extra-ldflags="-L$HOME/ffmpeg_build/lib" --extra-libs="-lpthread -lm"
>>  --bindir="$HOME/bin" --enable-gpl --enable-nonfree --enable-avresample
>>  --enable-avisynth --enable-libass --enable-libcaca --enable-libcdio
>>  --enable-libfontconfig --enable-libfreetype --enable-libfribidi
>>  --enable-libgsm --enable-libopenjpeg --enable-libopenmpt --enable-libopus
>>  --enable-libpulse --enable-librubberband --enable-librsvg --enable-libsnappy
>>  --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora
>>  --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack
>>  --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid
>>  --enable-libzmq --enable-libzvbi --enable-omx --enable-openal
>>  --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm
>>  --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv
>>  --enable-libx264 --enable-shared
>>  ERROR: libopencv not found
>>
>>  If you think configure made a mistake, make sure you are using the latest
>>  version from Git. If the latest version fails, report the problem to the
>>  ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
>>  Include the log file "ffbuild/config.log" produced by configure as this will
>>  help
>>  solve the problem.
>>
>>  However
>>
>>  $ dpkg -l | grep 'libopencv-core'
>>  ii libopencv-core-dev:amd64 3.2.0+dfsg-4ubuntu0.1
>>                             amd64 development files for
>>  libopencv-core3.2
>>  ii libopencv-core3.2:amd64 3.2.0+dfsg-4ubuntu0.1
>>                              amd64 computer vision core library
>>  $ dpkg -l | grep 'libopencv-dev'
>>  ii libopencv-dev 3.2.0+dfsg-4ubuntu0.1
>>                             amd64 development files for opencv
>
> Note that from some version onward they dropped C support IIRC,
> so you could not have it even if you have it installed.
>
>>  25.07.2019, 15:04, "Moritz Barsnick" <barsnick at gmx.net>:
>>>  On Thu, Jul 25, 2019 at 03:34:59 -0400, Ted Park wrote:
>>>>   > I want to use the ocv filer for ffmpeg. The documentation says:
>>>>   >
>>>>   > "To enable this filter, install the libopencv library and headers and
>>>>  configure FFmpeg with --enable-libopencv .”
>>>>
>>>>   Do what the documentation says?
>>>>
>>>>   > I use ffmpeg from Ubuntu repos.
>>>>
>>>>   You need to “configure FFmpeg with —enable-libopencv” after installing
>>>>  the library, then compile yourself, or find a ffmpeg with the library
>>>>  enabled. The ffmpeg from the Ubuntu repo is old.
>>>
>>>  Interestingly, the Ubuntu build is apparently built with
>>>  "—enable-libopencv", but they managed not to get the "ocv" filter in.
>>>
>>>>   > How do I make this filter available? What packages should I install in
>>>>  Ubuntu 18.04 (it has many packages called libopencv*) and should I build
>>>>  ffmpeg from source?
>>>>
>>>>   Try installing the core library then configuring.
>>>
>>>  And the development package as well (so perhaps libopencv-dev and
>>>  libopencv-core-dev).
>>>
>>>  Moritz
>>>  _______________________________________________
>>>  ffmpeg-user mailing list
>>>  ffmpeg-user at ffmpeg.org
>>>  https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>>
>>>  To unsubscribe, visit link above, or email
>>>  ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list