JaGoLi / ytdl-gui

A simple-to-use, cross-platform graphical interface for youtube-dl.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Audio tab

Begasus opened this issue · comments

Downloaded a playlist link from youtube with the correct url, when using the audio tab and select download (after checked "playlist") it only downloads the first track, if I select video tab it downloads the full list of files?
How would I go about it to only download the audio tracks?
EDIT this was done with a build from the beta branch checkout :)

Thank you very much for trying this out. This is why I have a beta branch, some features may not be final. :) I personally tried downloading a music album from youtube with the playlist check and it worked really well. What os/distro are you using, and do you have ffmpeg on your system? Currently, the audio tab re-encodes files using ffmpeg, so if there is a problem with it, the whole process may stop. I am also working on an option check to bypass all settings and use the defaults suggested by youtube-dl so users can choose to avoid re-encoding.

Main OS on trying this out is still Haiku ;)
It works very well so far, only issue so far I have for downloading is the separate files (video/audio), having a playlist to download works fine otherwise, beta is not scaring me, it's called development/progress :)
We do have ffmpeg (and it's installed), if I use the cmd: youtube-dl it works well, on single of playlist file(s)

I think this may be a bug with downstream youtube-dl on haiku. When using the audio tab, I am using the flag "--audio-format" check to see if the flag works correctly on haiku.

Seems to be ok:

~/Desktop> youtube-dl --audio-format=mp3 https://youtu.be/U86okxevw4w
[youtube] U86okxevw4w: Downloading webpage
[download] Destination: Suki & Matti pups playing with big sister Fire  -)-U86okxevw4w.mp4
[download] 100% of 38.03MiB in 00:25

Does the end result give you an mp3 though? Please check that.

No mp3 file, only the mp4 file

Exactly as I suspected. On linux you would be left with only an mp3 file. There is an issue with youtube-dl and ffmpeg. Do you have ffmpeg on your system?

ffmpeg is installed on my system yes (we're pretty much on par on those things) ;)
The link used in there is a video with sound though, so I would suspect 1 file including both audio and video?

Just to make sure I tried downloading the whole Boston album on an arch linux virtual machine with a clean system and kde plasma, and it worked fine. I ended up with only mp3s of the songs in high quality. This is really an issue with haiku os so I will have to close it.

Fixed it locally :)

What was the fix?

Still looking into it a bit, but it seems it needs the "cmd:ffmpeg" not just the libraries

For audio this is working fine already :)
youtube-dl-gui

And some more progress (won't bother you again before some real issues pop up) ;)
youtube-dl-gui

I'm going to merge the beta with main this evening. I think you have sorted out the issues on haiku for it to be stable enough for use. Am I right?

I think you have sorted out the issues on haiku for it to be stable enough for use.

Yes, most of the issues I'm facing are not related to the code here, some fine-tuning still remains, but that is something to deal with later (eg dependencies ...)