youtube_dl error ffprobe and ffmpeg not found - ffmpeg

I've been using youtube_dl for a while now without any problems.
Since maybe around a week I am always getting the following error when trying to download something and don't know how to fix it:
ERROR: ffprobe/avprobe and ffmpeg/avconv not found. Please install
one.
I am using it in a virtual python 3.8.10 environment with youtube_dl version 2021.12.17, ffmpeg version 1.4 and ffprobe version 0.5 displayed with "pip freeze" command.
The os is ubuntu server 20.04.5 LTS.
I already tried installing ffmpeg in multiple different ways (pip, apt install) and installing it on different "layers" (virtual env, normal user, root user) but nothing seemed to help.
For any tips / suggestions that might help I'd be really glad.

Related

Error on windows: opus not found using pkg-config

When I try to compile TelegramDesktop code as shown as instructions I have an error while I am installing FFMPEG.
When I run
bash --login ../patches/build_ffmpeg_win.shcommand
there is an error occured:
ERROR: opus not found using pkg-config If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user#ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "ffbuild/config.log" produced by configure as this will help solve the problem.
There are some instructions how to install ffmpeg on ubuntu but can't find how to solve this on Windows 10?
Could anybody give me a hint?

FFMPEG 4.2.4, Python 3.9: "ffmpeg: error while loading shared libraries: libopenh264.so.5: cannot open shared object file: No such file or directory"

I'm using ffmpeg 4.2.4 and Python 3.9
Currently getting error:
ffmpeg: error while loading shared libraries: libopenh264.so.5: cannot open shared object file: No such file or directory
Tried the solutions from these links but they didn't work:
ffmpeg: error while loading shared libraries: libopenh264.so.5
Ffmpeg error in linux
If anyone has any idea how to fix it, or needs any more information, please let me know.
Edit: I've noticed that it's been over a year later since I created this post and it's still getting replies - I've created a gist explaining another way I overcame a similar issue
Basically, I uninstalled conda's version of ffmpeg (in the environment that's having issues) using conda uninstall ffmpeg --force and (for Ubuntu), update the system wide version (I think this is what it's called) with sudo apt install ffmpeg
Figured out you can conda update ffmpeg, even though you can't install it with conda...
Completely fixed the issue. Posting this incase someone else has the same problem.
Note: I got (the faulty) ffmpeg from downloading PyTorch with the command via the official site.
Like Wilan, my issue stemmed from getting ffmpeg with PyTorch. conda update ffmpeg did not work for me, but conda install -c conda-forge ffmpeg (specifying the conda-forge channel) fixed my issue.

AllenNLP Torch Version Unavailable

I am trying to install allennlp via pip on the latest version of macOS Catalina. The Python version is 3.9.0. The pip version is 20.2.4.
I was just able to install only a couple of weeks ago, but now I receive the following error when I run the command:
pip3 install allennlp allennlp-models
ERROR: No matching distribution found for torch<1.8.0,>=1.6.0 (from allennlp)
This is really bad because a time-sensitive project I am working on right now completely depends on allennlp working. I needed to reinstall due to some git issues, and my virtual env was reset. What can I do to resolve this issue?
Thanks.
EDIT: Somehow I ended up uninstalling 3.9 in homebrew and now I'm stuck at jsonnet. It errors out. I saw some posts about this issue, but none of the recommendations work.
EDIT2: I tried reinstalling brew's python 3.9. jsonnet standalone works again, but then I have the pytorch issue again.
I'm stuck in a loop. Neither the system macOS 3.8 python nor the latest 3.9 home-brew python works. I'd rather get the home-brew python working, but there's no valid version of torch available for that one apparently.
Do NOT accidentally use home-brew to download the latest Python 3.9. That isn't compatible with a lot of the required libraries.
Phew.

pip install fail - WinError 10061

Good Morning,
When attempting to install Python packages using "pip install ", I get the following error:
pip install error 1
The solution posted here works for most packages. Unfortunately, packages like usaddress, which download additional data during the installation process will result in the following error if the whl/tar is installed locally:
pip install error 2
I believe this is due to a firewall issue, so the solution here did not apply in this case, but may be helpful to others.
Any advice would be greatly appreciated.
*edit: I should have also mentioned that I updated my pip version this morning, after the installation failed.
Python version:
Python 3.6.4 | Anaconda, Inc. | (default, Jan 16 2018, 10:22:32) [MSC v.1900 64 bit (AMD64)] on win32
I found a solution. The issued turned out to be that although I downloaded and tried to pip install usaddress, that particular library had a few dependencies that also needed to be installed.
In the "pip install error 2" example from my question, where I tried to install a local copy of usaddress downloaded from pypi.org, you can see a red sentence at the bottom of the screenshot which says, "Could not find a version that satisfies the requirement future>=0.14". It means that I need to also install a package called "future", of version greater than or equal to 0.14. I went on to pypi.org, and was able to download and pip install the future package.
I found that some libraries have many dependencies, so it can take a few minutes to keep downloading and installing dependencies, but it was an effective way to get around the firewall.
I hope this saves somebody else some time!

ffplay is not getting compiled on Amazon EC2

Asking this question as similar questions of stackoverflow didn't help me.
I wanted to install ffplay tool on my Amazon EC2 (Linux) instance. I have cloned the code from FFmpeg's official git repository.
executed ./configure and make. After these commands, there was no ffplay binary created. Only ffmpeg, ffprobe and ffserver binaries were generated.
Later tried with executing './configure --enable-ffplay' as suggested in few posts of web. Even this didn't work. Also i did not found any static binaries of ffplay which i could use for my testing
Can anyone suggest what was wrong with my build procedure ?
ffplay requires SDL2, so you need to install whatever package provides SDL.h (possibly SDL2-devel for RHEL based distros or libsdl2-dev for Debian based distors), or compile SDL2 if your distro does not provide it.
You won't need --enable-ffplay: that's only useful if you use --disable-tools or similar.
There is a similar issue here. But this could be used as reference.
Try these out:
Try installing SDL2 from RHEL or Debian distribution.
Try using --with-ffplay instead of --enable-ffplay as mentioned in the link above.

Resources