Yt-DLG: can’t convert audio, ffmpeg is needed

Hello everyone,

I just installed Zorin OS 17.3 Core and downloaded YT-DLG from the snapstore. Its basicly yt-dl but comes with a GUI.
The app from the snapstore just works fine, but to convert the downloaded file to mp3 the app needs ffmpeg. So I just downloaded ffmpeg from the snapstore, but I get an error.
The app can't find ffmpeg or can't use it. Its downloading the video but then it can't access or find ffmpeg to convert the file.
It says:
DEBUG-Worker_1-ERROR: ffprobe and ffmpeg not found. Please install or provide the path using --ffmpeg-location

DEBUG-Worker_1-ERROR: ffmpeg not found. Please install or provide the path using --ffmpeg-location

What can I do that the app can access ffmpeg and can convert the file?
I had the same error back then, when I tried Zorin OS v15, but then switched back to windows because I didnt got the app to work.
I wonder why it doesn't work, since I downloaded it from the officially store supported by zorin.
Please help me

Greetings

You could try whether it works better with the apt package from ffmpeg, as this is better integrated into the system and can be accessed more easily. First uninstall the snap package, then install the apt package (=Zorin package) via the software manager or via the terminal with the command
"sudo apt install ffmpeg".

1 Like

I don't know if yt-dlg is still not working properly. The app is no longer maintained.

It seems yt-dlp or 4k are more recommended.

1 Like

Install Synaptic Package Manager and then install WinFF, which I refer to in the Unofficial Manual for Zorin 17 Core.

This could be because these are Snap Packages. You could try the APT Packages instead. Open the Terminal and type:

sudo apt install youtube-dl youtubedl-gui

This will install youtube-dl and a GUI for it.

When Codecs are the Problem, You have a couple Options. Open Gnome Software, scrool all the Way to the Bottom and click on the ''Codecs'' Button and install everyone that will be listed. To that, you can install additional Stuff over the Terminal:

sudo apt install ffmpeg ubuntu-restricted-extras vlc

ubuntu-restricted-extras is a Bundle with Microsoft Fonts. So, You will have to agree to a Licence Agreement during the Installation. vlc installs the VLC Media Player which brings some Codec Support, too.

As an Alternative, I could suggest You Varia. It comes as Flatpak. Here is a Presentation Video from Distrotube:

1 Like

Thanks for the tipp.
I uninstalled the snap ffmpeg and tried to install ffmpeg with the terminal but I got a error message.
It says that it could not edit nvidia-dkms-390 and nvidia-driver-390.
Sub-process /usr/bin/dpkg returned an error code (1)
Maybe its a driver problem.
I tried to update the driver but get this error message:

Maybe it is the driver that is causing the program not to work properly, after all ffmpeg works with the gpu, i guess

Its a bit confusing, but there are two programms actually.
Youtube-DLG, wich is no longer supported
(This one: GitHub - MrS0m30n3/youtube-dl-gui: A cross platform front-end GUI of the popular youtube-dl written in wxPython.)

And there is a fork, which is supported, this one (called yt-dlg):

Its also using yt-dlp if i understood this right.

So actually it should run on ubuntu/zorin just fine

I wouldn't recommend using something like Snap or Flatpak for something like this, that relies on external packages (i.e.: not dependencies) to work properly. The entire point of these containerized formats is that they contain all the necessary dependencies, because they are not supposed to reach out to the system. This is probably why it isn't working for you.

If you go through the read me on that last project, you'll find instructions to install the APT version. I'd suggest you try that installation method instead:

1 Like

Thanks for the tipp, I just installed Synaptic Package Manager, a useful tool.
Yes, I could install WinFF and then manually convert all downloaded webm files etc., to mp3. But that's only a workaround and dont solve the problem, because yt-dlg would immediately convert it to mp3 with ffmpeg if it could find it. Then I wouldn't need WinFF.

Thanks for the tip, yes the dependencies thing makes sense.
I tried installing it as described in the readme.
The first command worked. (Install the following packages and their dependences)

But the second command dont worked for me.
When I enter:
sudo apt-get install -y python3.9 python3.9-dev libpython3.9-dev python3.9-venv
python3.9 -m venv venv
source venv/bin/activate
python3 -m pip install --upgrade pip setuptools wheel

I get the respond:
Note: "python3.9-llfuse" is chosen for regular expression "python3.9".
Note: "python3-llfuse" is chosen instead of "python3.9-llfuse".
E: Package python3.9-dev cannot be found.
E: No package found using pattern "python3.9-dev".
E: No package found using regular expression "python3.9-dev".
E: Package libpython3.9-dev cannot be found.
E: No package found using pattern "libpython3.9-dev".
E: No package found using regular expression "libpython3.9-dev".
E: Package python3.9-venv cannot be found.
E: No package found using pattern "python3.9-venv".
E: No package found using regular expression "python3.9-venv".
python3.9: Command not found.
bash: venv/bin/activate: File or directory not found
/usr/bin/python3: No module named pip

Well, those commands are for an older version of Debian. Just don't use specific versions of Python — replace all instances of python3.9 with python3, this will automatically use the versions that is installed.

1 Like

Thanks, now it worked!

But I'm not sure what exactly I should do in the next step.
In "Install wxPython , requirements and yt-dlg"
should I download [wxPython-4.2.1a1-cp310-cp310-linux_x86_64-jammy.whl] manually or just copy and paste the command with wxPython-4.1.1-cp39-cp39-linux_x86_64.whl ?
Or should I use:

I did just this:
python3 -m pip install wxPython-4.2.1a1-cp310-cp310-linux_x86_64-jammy.whl
python3 -m pip install -r requirements/requirements.in
python3 -m pip install --no-deps yt-dlg
yt-dlg
ERROR: Invalid build number: cp310 in 'wxPython-4.2.1a1-cp310-cp310-linux_x86_64-jammy'
ERROR: Could not open requirements file: [Errno 2]
File or directory not found: 'requirements/requirements.in'
Requirement already satisfied: yt-dlg in ./venv/lib/python3.10/site-packages (1.8.5)
Traceback (most recent call last):
File "/home/51/venv/bin/yt-dlg", line 5, in
from youtube_dl_gui.app import main
File "/home/51/venv/lib/python3.10/site-packages/youtube_dl_gui/app.py", line 17, in
import wx
ModuleNotFoundError: No module named 'wx'

I just use 4k video downloader, not yt-dl.

1 Like

Yeah, it's probably best to use some online converter or something. This seems unnecessarily difficult to install (I'm giving up after a couple of tries), not to mention that doesn't seem to be abandoned.

If you're comfortable with the command line, you can use yt-dlp directly from there. That's what I use and it's frankly a lot easier than this: