Problem ffmpeg:error while loading shared libraries:libavdevice.so.57:cannot open Shared object file:no such file or Directo Ry
adminn@ubuntu:/usr/local/lib$ sudo vi/etc/ld.so.conf
Modified as follows
Include ld.so.conf.d/*.conf
/usr/local/ffmpeg/lib///usr/local/ffmpeg Directory is my ffmpeg installation directory, according to your installation directory change it
adminn@ubuntu:/usr/local/lib$
adminn@ubuntu:/usr/local/lib$
adminn@ubuntu:/usr/local/lib$
adminn@ubuntu:/usr/local/lib$ Ldconfig
/sbin/ldconfig.real:can ' t create temporary cache file/etc/ld.so.cache~: Permission denied
adminn@ubuntu:/usr/local/lib$ sudo ldconfig
Adding environment variables to Ffmpeg
Vi/etc/profile
Add the following content:
Export path= "/usr/local/ffmpeg/bin: $PATH"
Then save and run Source/etc/profile
adminn@ubuntu:/usr/local/lib$ ffmpeg-version
FFmpeg version 3.1.3 Copyright (c) 2000-2016 the FFmpeg developers
Built with GCC 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
Configuration:--enable-shared--disable-yasm--prefix=/usr/local/ffmpeg
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
adminn@ubuntu:/usr/local/lib$