Ffmpeg error in linux
Basically, to find the file:
sudo find / -name libavdevice.so.52
For example, you've found this file in the /usr/local/lib
. Next include that library into your library path. Add this to your /etc/ld.so.conf
:
/usr/local/lib
And finally after modifying this file run this:
sudo ldconfig
Reference: Ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file
ffmpeg: error while loading shared libraries: libopenh264.so.5
I faced this error when I run ffmpeg 4.2.2 under python 3.8 environment.
The root cause is that libopen264.so
from python 3.8 is too new for ffmpeg 4.2.2.
I can findlibopen264.so.6
under the ~/anaconda3/envs/py38/lib/
(py38 is my conda virtual environment), but we only need an older version libopen264.so.5
.
To solve the problem, I just make a softlink from my existing anaconda environment (python 3.7) as follows - and it works.
ln -s ~/anaconda3/lib/libopenh264.so ~/anaconda3/envs/py38/lib/libopenh264.so.5
FFMpeg; Error when mixing two audio stream
You should update your ffmpeg
. Apparently you installed it by default in ubuntu like this:
apt-get install ffmpeg
that installs the version you mentioned.
You can install it from git repo like this:
apt-get install libvorbis-dev
apt-get install libvpx-dev
git clone https://github.com/FFmpeg/FFmpeg ffmpeg
cd ffmpeg
./configure --extra-cflags=-I/opt/local/include --extra-ldflags=-L/opt/local/lib --enable-nonfree --enable-libvpx --enable-libvorbis
make
make install
You can test it when you installed by this:
./ffmpeg
Please pay attention that you can't run ffmpeg
like before. You have to address that to /root/ffmpeg/ffmpeg
.
FFmpeg Drawbox Errors?
You're using arbitrary, unsupported variables. Refer to the drawbox documentation for a list of supported variables (under the section "The parameters for x, y, w and h and t are expressions containing the following constants").
I can only guess what you are trying to do, but here is a simplified valid example:
ffmpeg -i input.mp4 -filter_complex "[0]drawbox=x=-140:y=(((ih-h)/2) - 205):w=840:h=490:color=white@0.2:t=fill" output.mp4
Related Topics
Calculate Total Used Disk Space by Files Older Than 180 Days Using Find
Use Sudo Inside Dockerfile (Alpine)
How to Identify Multiple Usb-Serial Adapters Under Ubuntu 10.1
Ldd Doesn't Work on Dynamically Linked Binary
Shell Script to Copy and Prepend Folder Name to Files from Multiple Subdirectories
How to Specify Time in Cron Considering Year
Force Linux to Use Only Memory Over 4G
What Are the Possible List of Linux Bash Shell Injection Commands
How to Rename Files in Bash to Increase Number in Name
How to Compile Linux Kernel with Something Other Than Gcc
Delete Whitespace in Each Begin of Line of File, Using Bash
Ssh Command Execution Hangs, Although Interactive Shell Functions Fine
How to Know Whether a Copy-On-Write Page Is an Actual Copy
Export Variables Defined in Another File
Retrieve Plain Text Script from Compiled Bash Script
Find Command in Bash Script Resulting in "No Such File or Directory" Error Only for Directories
How to Read Data from Excel Sheet in Linux Using Shell Script