Ffmpeg:error while loading shared libraries:libavdevice.so.57:cannot open Shared object File:no

Source: Internet
Author: User

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$


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.