Page 1 of 2
youtube-dl and yt-dlp -- download YouTube videos
Posted: Thu Oct 29, 2020 7:17 pm
by fredx181
(edit, changed title, as yt-dlp seems to be the new (frequently updated) fork of youtube-dl. not youtube-dlc anymore, see later in this thread for new developments)
---------------------
Official youtube-dl development is taken down due to DMCA takedown notice by RIAA
New repository, see here:
https://github.com/l1ving/youtube-dl
(not sure how long that will stay)
I've compiled youtube-dl with newest fixes, version still says sep. 20 though.
https://github.com/doglinux/busterdog/r ... -dl.tar.gz
Extract youtube-dl.tar.gz in PATH, in e.g. /usr/local/bin/
EDIT: Found out recently that it's very easy to compile, just git clone the repository https://github.com/l1ving/youtube-dl (or download zip and extract), then from terminal in the youtube-dl folder type "make". (need to have "make" installed, obviously).
Fred
Re: youtube-dl
Posted: Fri Oct 30, 2020 10:22 am
by fredx181
Here's a mirror (outside of github) of
l1ving/youtube-dl https://source.netsyms.com/Mirrors/l1ving_youtube-dl
(putting it here for reference, in case the github repo goes down again)
EDIT: another up-to-date mirror:
https://gitea.datahoarding.agency/Zenul ... youtube-dl
Fred
Re: youtube-dl
Posted: Fri Oct 30, 2020 5:42 pm
by rockedge
I also cloned a version and have a copy from the repo link you have shared. I compiled in Fossapup64, Bionic64-8.0 and WeeDog64-Void. Runs well on all 3. Although I have been using the version fredx181 compiled on all these same OS's.
Re: youtube-dl
Posted: Sat Oct 31, 2020 12:08 am
by fredx181
There's also youtube-dlc, a fork of youtube-dl, actively developed.
https://github.com/blackjack4494/yt-dlc
Compiled including important recent fixes, youtube-dlc.tar.gz:
https://github.com/doglinux/busterdog/r ... dlc.tar.gz
I've found that the search function of youtube-dl doesn't work properly, e.g. this should give 10 results, but it does only sometimes (after many tries, or maybe first try only, not really sure, anyway, not reliable):
Code: Select all
youtube-dl -f 22 --get-format --get-filename ytsearch10:"iphone battery replacement"
youtube-dlc supports a way of searching that youtube-dl does not, e.g:
Code: Select all
youtube-dlc -f 22 --ignore-errors --get-format --get-filename "https://www.youtube.com/results?search_query=iphone+battery+replacement" --playlist-end 10
And works well.
To download, I just copy the ID from the filename, e.g. "h7JdnGM8gWM" from one of the results:
......
iPhone 7 Battery Replacement Guide (How To) - ScandiTech-h7JdnGM8gWM.mp4
22 - 1280x720 (720p)
......
And then simply:
EDIT: Here's a GUI frontend for youtube-dlc:
viewtopic.php?p=8903#p8903
Fred
Re: youtube-dl and youtube-dlc
Posted: Sun Nov 08, 2020 7:30 pm
by fredx181
youtube-dl seems to be developed again (secretly?) now, new version is v2020.11.01.1
https://youtube-dl.org/
Also I noticed that updating by running `youtube-dl -U` works again now.
Not for youtube-dlc:
Code: Select all
youtube-dlc -U
Current Build Hash 4e73a0202c1abea6e09ee72ff49f0678a161fdb80c1519dd4000f78ddfe4bbc1
ERROR: can't find the current version. Please try again later.
Visit https://github.com/blackjack4494/yt-dlc/releases/latest
Here's a little script to install/update youtube-dlc, using curl (only if new version is available it will update), run from terminal:
Code: Select all
#!/bin/bash
LOC=$(curl --head --silent --write-out "%{redirect_url}\n" --output /dev/null https://github.com/blackjack4494/yt-dlc/releases/latest/download/youtube-dlc)
REMVER=$(basename $(dirname $LOC))
YTDLVER=$(youtube-dlc --version)
if [[ "$REMVER" > "$YTDLVER" ]] ; then
echo "Updating youtube-dlc . . ."
echo ""
curl -L https://github.com/blackjack4494/yt-dlc/releases/latest/download/youtube-dlc -o /usr/local/bin/youtube-dlc
chmod a+rx /usr/local/bin/youtube-dlc
echo "youtube-dlc version is now:"
youtube-dlc --version
else
echo "youtube-dlc is up to date"
fi
Fred
Re: youtube-dl and youtube-dlc
Posted: Tue Nov 17, 2020 7:36 am
by one
Hi
from The Register:
https://www.theregister.com/2020/11/16/ ... youtubedl/
Microsoft's GitHub on Monday restored access to youtube-dl, software for streaming and downloading YouTube videos, after removing the repository and forked versions last month in response to a controversial DMCA complaint from the RIAA, the US music industry trade group.
"We are taking a stand for developers and have reinstated the youtube-dl repo," said GitHub CEO Nat Friedman, via Twitter. "Section 1201 of the DMCA is broken and needs to be fixed. Developers should have the freedom to tinker. That's how you get great tools like youtube-dl."
Friedman also announced the creation of a $1m open source developer defense fund and plans to revise the company's process for handling legal claims based on Section 1201 of the DMCA aka America's Digital Millennium Copyright Act.
There is another thread about the same topic in the Off-Topic Area where @rufwoof already reported the news:
viewtopic.php?f=52&t=1157
Re: youtube-dl and yt-dlp
Posted: Sat Oct 30, 2021 8:42 am
by fredx181
Now 5 months ago since youtube-dl has been updated, so it seems that the project is dead.
I've read somewhere (but cannot find it now) that it has to do with python (i.e. that python2 support will be dropped, and replaced by python3).
Although youtube-dl still works, downloading is terribly slow see a.o. issue here: https://github.com/ytdl-org/youtube-dl/issues/30119
I've found that yt-dlp works okay (fast downloading) see https://github.com/yt-dlp/yt-dlp and is frequently being updated, install (from terminal):
Code: Select all
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp
chmod a+rx /usr/local/bin/yt-dlp
BUT NOTE.... yt-dlp cannot work with python2, required is to have python3 installed (3.6 or later).
Re: youtube-dl and youtube-dlc
Posted: Sat Oct 30, 2021 9:44 am
by amethyst
Thanks fredx181. Don't want to crash your thread but those who are interested in using an online youtube downloader, can try https://www.y2mate.com
I've just checked if it is as good as it used to be and it is. Quick download too. Just use an adblocker to avoid unwanted ads.
Re: youtube-dl and yt-dlp
Posted: Sat Oct 30, 2021 10:27 am
by dancytron
fredx181 wrote: ↑Sat Oct 30, 2021 8:42 am
Now 5 months ago since youtube-dl has been updated, so it seems that the project is dead.
I've read somewhere (but cannot find it now) that it has to do with python (i.e. that python2 support will be dropped, and replaced by python3).
Although youtube-dl still works, downloading is terribly slow see a.o. issue here: https://github.com/ytdl-org/youtube-dl/issues/30119
I've found that yt-dlp works okay (fast downloading) see https://github.com/yt-dlp/yt-dlp and is frequently being updated, install (from terminal):
Code: Select all
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp
chmod a+rx /usr/local/bin/yt-dlp
BUT NOTE.... yt-dlp cannot work with python2, required is to have python3 installed.
How do I integrate this into your Youtube-Get or does that have to be done in the .deb file or the "Update youtube-dlc" button?
Any special considerations for my computer still on Stretch Dog.
Thanks for keeping up on this.
Re: youtube-dl and yt-dlp
Posted: Sat Oct 30, 2021 11:15 am
by fredx181
dancytron wrote: ↑Sat Oct 30, 2021 10:27 am
fredx181 wrote: ↑Sat Oct 30, 2021 8:42 am
Now 5 months ago since youtube-dl has been updated, so it seems that the project is dead.
I've read somewhere (but cannot find it now) that it has to do with python (i.e. that python2 support will be dropped, and replaced by python3).
Although youtube-dl still works, downloading is terribly slow see a.o. issue here: https://github.com/ytdl-org/youtube-dl/issues/30119
I've found that yt-dlp works okay (fast downloading) see https://github.com/yt-dlp/yt-dlp and is frequently being updated, install (from terminal):
Code: Select all
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp
chmod a+rx /usr/local/bin/yt-dlp
BUT NOTE.... yt-dlp cannot work with python2, required is to have python3 installed.
How do I integrate this into your Youtube-Get or does that have to be done in the .deb file or the "Update youtube-dlc" button?
Any special considerations for my computer still on Stretch Dog.
Thanks for keeping up on this.
I will probably update youtube-get package by using yt-dlp, but may take some time.
In the mean time you can try out installing yt-dlp and rename it to youtube-dl (or in your case maybe youtube-dlc), may work or not or partly, untested.
Btw, the newest youtube-get3 is using youtube-dl, not anymore youtube-dlc.
Re: youtube-dl and yt-dlp
Posted: Sat Oct 30, 2021 12:47 pm
by dancytron
fredx181 wrote: ↑Sat Oct 30, 2021 11:15 am
dancytron wrote: ↑Sat Oct 30, 2021 10:27 am
fredx181 wrote: ↑Sat Oct 30, 2021 8:42 am
Now 5 months ago since youtube-dl has been updated, so it seems that the project is dead.
I've read somewhere (but cannot find it now) that it has to do with python (i.e. that python2 support will be dropped, and replaced by python3).
Although youtube-dl still works, downloading is terribly slow see a.o. issue here: https://github.com/ytdl-org/youtube-dl/issues/30119
I've found that yt-dlp works okay (fast downloading) see https://github.com/yt-dlp/yt-dlp and is frequently being updated, install (from terminal):
Code: Select all
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp
chmod a+rx /usr/local/bin/yt-dlp
BUT NOTE.... yt-dlp cannot work with python2, required is to have python3 installed.
How do I integrate this into your Youtube-Get or does that have to be done in the .deb file or the "Update youtube-dlc" button?
Any special considerations for my computer still on Stretch Dog.
Thanks for keeping up on this.
I will probably update youtube-get package by using yt-dlp, but may take some time.
In the mean time you can try out installing yt-dlp and rename it to youtube-dl (or in your case maybe youtube-dlc), may work or not or partly, untested.
Btw, the newest youtube-get3 is using youtube-dl, not anymore youtube-dlc.
I'll try to take a run at that sometime this week.
I probably need to update manually to get on the latest version of youtube-get in stretch. I'll test in Buster first.
Re: youtube-dl and youtube-dlc -- download YouTube videos
Posted: Thu Nov 04, 2021 4:11 pm
by keniv
Hello All,
I have used the YouTube-Get GUI I think made by forum member @fredx181 for a while now through various iterations in BusterDog and some Pups. I think the current is v1.5.2 I really like it but agree the dl speed now makes it unusable. Have just checked the version of Python in BusterDog and it's 2.7.16.
BUT NOTE.... yt-dlp cannot work with python2, required is to have python3 installed.
Checking synaptic shows a v2.7.16-1 and so there looks to be no python 3. Is there a version of python3 that could be installed in BusterDog that would not break other things which currently work using python 2.7.16? Ideally I would like to see an updated version of YouTube-Get using the yt-dlp and that yt-dlp was updatable in a similar fashion to yt-dl before support stopped.
@fredx181 had one here about a year ago.
Here's a GUI frontend for youtube-dlc: viewtopic.php?p=8903#p8903
As I remember it worked then but not now.
I don't have the expertise to make these, nor do I know how much work would be involved but if anybody who has the expertise gets around to making one I would be happy to test.
Regards,
Ken.
Re: youtube-dl and yt-dlp -- download YouTube videos
Posted: Thu Nov 04, 2021 6:44 pm
by fredx181
I have used the YouTube-Get GUI I think made by forum member @fredx181 for a while now through various iterations in BusterDog and some Pups. I think the current is v1.5.2 I really like it but agree the dl speed now makes it unusable. Have just checked the version of Python in BusterDog and it's 2.7.16.
There is python3 available in Busterdog, just do in terminal apt install python3
No new youtube-get3 package yet, but a workaround to make it use yt-dlp would be:
- Install python3
- Rename /usr/local/bin/youtube-dl to /usr/local/bin/youtube-dl.bak (or delete it) (see also below, create symlink youtube-dl)
- Install yt-dlp , (in /usr/local/bin) see above posts
- Create symlink 'youtube-dl' pointing to yt-dlp : cd /usr/local/bin; ln -s yt-dlp youtube-dl
From what I tested, with yt-dlp it works just the same as youtube-dl this way (except the download speed, which is fine again)
And except that the update button won't work, but yt-dlp -U
should work.
EDIT: Above should work using Youtube-Get3 in Puppy too (but python3 version must be higher than 3.5, I think (for yt-dlp))
Fred
Re: youtube-dl and yt-dlp -- download YouTube videos
Posted: Thu Nov 04, 2021 8:30 pm
by muggins
For yt-dlp python3 requirements I just download a python3 appimage, chmod +x, then symlink it to /usr/bin/python3.
Re: youtube-dl and yt-dlp -- download YouTube videos
Posted: Thu Nov 04, 2021 8:56 pm
by keniv
@fredx181
but a workaround to make it use yt-dlp would be
Hello Fred,
I followed your instructions and all seemed to work but when I ran YouTube-get but the attached image shows what I get. Can you suggest what I've done wrong (I'm wondering if the sym link is working) or should I delete v1.5.2 and install
Here's a GUI frontend for youtube-dlc, package youtube-get3-1.4.0_noarch.pet:
from this link viewtopic.php?p=8903#p8903 and use it with the updated yt-dlp.
Regards,
Ken.
Re: youtube-dl and yt-dlp -- download YouTube videos
Posted: Thu Nov 04, 2021 9:11 pm
by fredx181
@keniv are you sure that you have in /usr/local/bin : yt-dlp and youtube-dl (as a symlink to yt-dlp).
If so, I could also be that I made a mistake, will test again later.
edit:
Here's a GUI frontend for youtube-dlc, package youtube-get3-1.4.0_noarch.pet:
from this link viewtopic.php?p=8903#p8903 and use it with the updated yt-dlp
No, it's probably outdated
Re: youtube-dl and yt-dlp -- download YouTube videos
Posted: Thu Nov 04, 2021 9:39 pm
by keniv
@fredx181
are you sure that you have in /usr/local/bin : yt-dlp and youtube-dl (as a symlink to yt-dlp)
I think so (please see attached images from /usr/local/bin). However in some Pups I have used when you hover the mouse pointer over the symlink you see "symlink to ..........". When I do this in BusterDog I don't get this information so I don't know if the youtube-dl file, with the symlink arrow, in /usr/local/bin is a symlink to /usr/local/bin/yt-dlp or not. Is there a way to check this?
No, it's probably outdated
Ok thanks for that.
Regards,
Ken.
Re: youtube-dl and yt-dlp -- download YouTube videos
Posted: Thu Nov 04, 2021 10:16 pm
by fredx181
keniv wrote:... so I don't know if the youtube-dl file, with the symlink arrow, in /usr/local/bin is a symlink to /usr/local/bin/yt-dlp or not. Is there a way to check this?
Probably it's ok, you can check with "ls -l" :
Code: Select all
root@live:~# ls -l /usr/local/bin/youtube-dl
lrwxrwxrwx 1 root root 6 nov 4 22:06 /usr/local/bin/youtube-dl -> yt-dlp
EDIT: Strange..., I tested 1.5.2 again on Busterdog and it works ok with the youtube-dl symlink (no message at start), anyway, please test v1.5.3 below.
I've made a .deb and .pet for testing that should work with yt-dlp (I didn't test much).
deb for busterdog: https://dl.dropboxusercontent.com/s/yjc ... l.deb?dl=1
pet, attached youtube-get3-1.5.3_noarch.pet
Python3 required but no youtube-dl symlink is needed.
Fred
Re: youtube-dl and yt-dlp -- download YouTube videos
Posted: Thu Nov 04, 2021 10:20 pm
by williams2
In a case like this, an executable script named youtube-dl might work better than a symlink.
Then youtube-dl -U
would execute yt-dlp -U
And yt-dlp
would show in ps/top/htop so there would be no doubt what is running.
Re: youtube-dl and yt-dlp -- download YouTube videos
Posted: Fri Nov 05, 2021 2:55 pm
by keniv
@fredx181
Probably it's ok, you can check with "ls -l"
Here is the output I get when I run ls -l /usr/local/bin/youtube-dl in a terminal.
Code: Select all
root@live:~# ls -l /usr/local/bin/youtube-dl
ls: cannot access '/usr/local/bin/youtube-dl': No such file or directory
root@live:~#
I guess this tells me that although the syslink looks to be there it doesn't work for some reason.
anyway, please test v1.5.3 below.
I removed v1.5.2 from Busterdog then installed v1.5.3 .deb from your link. This has worked. For my test I searched on "indie sage 29.10.2120" as when v1.5.2 was working I downloaded indie sage most weeks. Download was much faster than current v1.5.2.
And except that the update button won't work, but yt-dlp -U should work.
I did not try yt-dlp -U as I assumed the version in the .deb would be the most up to date. Should I attempt an update as a test?
Regards,
Ken.
Re: youtube-dl and yt-dlp -- download YouTube videos
Posted: Fri Nov 05, 2021 3:29 pm
by keniv
@fredx181
I have a copy of fossapup 9.5 installed on this machine. I checked the python version. It is v3.8.2. I installed yt-dlp using your instructions. I then installed the v1.5.3 .pet. This also works. As a test I searched for Beatles as I've used this as a test before. I downloaded and played a song. Again the download speed seems back to what it was before the version with yt-dl stopped working properly. Hope this helps.
Regards,
Ken.
Re: youtube-dl and yt-dlp -- download YouTube videos
Posted: Fri Nov 05, 2021 4:55 pm
by dancytron
fredx181 wrote: ↑Thu Nov 04, 2021 10:16 pm
keniv wrote:... so I don't know if the youtube-dl file, with the symlink arrow, in /usr/local/bin is a symlink to /usr/local/bin/yt-dlp or not. Is there a way to check this?
Probably it's ok, you can check with "ls -l" :
Code: Select all
root@live:~# ls -l /usr/local/bin/youtube-dl
lrwxrwxrwx 1 root root 6 nov 4 22:06 /usr/local/bin/youtube-dl -> yt-dlp
EDIT: Strange..., I tested 1.5.2 again on Busterdog and it works ok with the youtube-dl symlink (no message at start), anyway, please test v1.5.3 below.
I've made a .deb and .pet for testing that should work with yt-dlp (I didn't test much).
deb for busterdog: https://dl.dropboxusercontent.com/s/yjc ... l.deb?dl=1
pet, attached youtube-get3-1.5.3_noarch.pet
youtube-get3-1.5.3_noarch.pet
Python3 required but no youtube-dl symlink is needed.
Fred
I threw caution to the wind, converted this to an sfs file using pet2sfs built into Busterdog, loaded it as an sfs, pushed the update button, and it seems to work fine in all respects. Download speed 850 Kb/second ish.
edit: for some strange reason I missed the .deb file. That works too.
edit again: Install failed badly enough in ChromeDog Stretch that synaptic couldn't fix it and I had to reboot without saving. Oh well...
Re: youtube-dl and yt-dlp -- download YouTube videos
Posted: Fri Nov 05, 2021 6:51 pm
by fredx181
@dancytron and @keniv, thanks for testing.
keniv wrote:ls: cannot access '/usr/local/bin/youtube-dl': No such file or directory
root@live:~#
I guess this tells me that although the syslink looks to be there it doesn't work for some reason.
I guess something went wrong creating the symlink then, but not important anymore as your tests show that v1.5.3 works ok without symlink required.
I did not try yt-dlp -U as I assumed the version in the .deb would be the most up to date. Should I attempt an update as a test?
Now it will say only that yt-dlp is already the newest, the 'Update-yt-dlp' button should work in v1.5.3, so perhaps a few weeks later you can test.
Btw, in the pet package I didn't include yt-dlp, so you probably got a message at start that says to click the 'Update-yt-dlp' button and it should install, right ?
dancytron wrote:Install failed badly enough in ChromeDog Stretch that synaptic couldn't fix it and I had to reboot without saving. Oh well..
No idea why that happened in Stretch, but anyway it probably wouldn't work in Stretch because the pyhon3 version is too low (3.5), must be 3.6 or higher.
Fred
Re: youtube-dl and yt-dlp -- download YouTube videos
Posted: Fri Nov 05, 2021 7:25 pm
by keniv
@fredx181
Btw, in the pet package I didn't include yt-dlp, so you probably got a message at start that says to click the 'Update-yt-dlp' button and it should install, right ?
I was under the impression that the 'Update-yt-dlp' button would not work so I did not try it but instead I used the code you provide to download and install yt-dlp i.e.
Code: Select all
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp
chmod a+rx /usr/local/bin/yt-dlp
Good to know the 'Update-yt-dlp' button should work in v1.5.3. As you suggest I'll give it a few weeks then try it.
Regards,
Ken.
Re: youtube-dl and yt-dlp -- download YouTube videos
Posted: Tue Jan 25, 2022 10:45 am
by gilles
Hi,
To download videos, or MP3, from youtube,
1 go to the video you want
2 modify the URL : make youtube becomes yout (delete ube)
3 enter
Re: youtube-dl and yt-dlp -- download YouTube videos
Posted: Thu Jan 27, 2022 11:42 am
by backi
"Easy Youtube Video Downloader Express" Addon also works fast and flawless on Youtube Site.
https://addons.mozilla.org/de/firefox/a ... -download/
Here is another Downloader:
https://9xbuddy.org/de
Re: youtube-dl and yt-dlp -- download YouTube videos
Posted: Fri Jan 28, 2022 1:48 pm
by gychang
will this work on bionicpup32?, I have an older laptop and only real problem due to celeron CPU is gets bottled up with youtube video playing on palemoon.
Re: youtube-dl and yt-dlp -- download YouTube videos
Posted: Fri Jan 28, 2022 2:42 pm
by amethyst
9xbuddy and y2mate are good. I always use one of the two. 9xbuddy supports a lot of different video sites.
Re: youtube-dl and yt-dlp -- download YouTube videos
Posted: Fri Jan 28, 2022 3:08 pm
by backi
9xbuddy also lets you download Age restricted Videos from YouTube without to register.
Re: youtube-dl and yt-dlp -- download YouTube videos
Posted: Fri Jan 28, 2022 3:23 pm
by amethyst
backi wrote: ↑Fri Jan 28, 2022 3:08 pm
9xbuddy also lets you download Age restricted Videos from YouTube without to register.
Dailymotion and ok.ru are two of the big sites that are supported. Excellent. Also - watch videos from numerous video sites directly from the Microsoft Bing search site.