Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 6504  / 3 Years ago, sat, october 16, 2021, 2:51:25

I installed ffmpeg using this command



sudo apt-get install ffmpeg


After the installation i tried this command in terminal



ffmpeg


but i got error message like this



root@client85-desktop:~# ffmpeg
bash: /usr/local/bin/ffmpeg: cannot execute binary file


How can i solve this issue?


More From » 12.04

 Answers
7

The path /usr/local/bin/ indicates, that you have installed a custom version of ffmpeg. The version you have installed with apt-get install is located at /usr/bin/ (without the "local" part). To execute the version apt-get has installed, run



/usr/bin/ffmpeg


You can remove /usr/local/bin/ffmpeg or mark it as non-exexcutable with sudo chmod -x /usr/local/bin/ffmpeg. Run hash -r so the change takes effect in the current shell. Log out and log back in so that the change takes effect for every graphical application.



As soon as /usr/local/bin/ffmpeg has been treated with one of the above mentioned method, simply calling ffmepg will start the one at /usr/bin/ffmpeg by default.



Edit Added information from @Ramchandra_Apte on how to do this without a complete reboot.


[#29023] Saturday, October 16, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
motivengry

Total Points: 459
Total Questions: 112
Total Answers: 108

Location: Bonaire
Member since Sat, May 1, 2021
3 Years ago
motivengry questions
Tue, Oct 4, 22, 10:02, 2 Years ago
Wed, May 31, 23, 14:33, 12 Months ago
;