Rate This Document
Findability
Accuracy
Completeness
Readability

Failure to Load the Dependency Library When Using x265 to Execute the Encoding Program

Symptom

When using x265 to execute the encoding program, an error is reported stating "ffmpeg: error while loading shared libraries: libavdevice.so.xx."

Key Process and Cause Analysis

The dependency library fails to be loaded.

Conclusion and Solution

  1. Find the path of the dependency library specified in the error information.
    find / -name libavdevice.so.xx
  2. Add the path to the environment variable, that is, add the found path next to the colon (:) in the following command:
    export LD_LIBRARY_PATH=/home/ffmpeg/install/lib/:Path of the dependency library