I used SS method to directly download videos , but depends on format you want.
I use video downloader professional as a firefox extension. It downloads videos from almost any site.
On Android Iāve tested SkyTube and NewPipe and my conclusions are that for playing videos in background (audio) the former is much better than the latter.
As for desktop, I tested many solutions, but for my purposes only a few were workable:
- āEasy Youtube Video Downloader Expressā firefox plugin: works well but has some limitations in free version; it also doesnāt allow downloading multiple videos (like yt channels/playlists) on one click
- āAny Video Converter for Macā: in general works well but sometimes it has problems and again, it doesnāt support yt channels links for multiple videos
- āyoutube-dlā: the only disadvantage (for some) is that itās command line tool written in python but besides that there are only pros and itās the best of all tools Iāve tested; it can download multiple videos on one link (yt channels/playlists), you can download subtitles/descriptions/thumbnails, you can choose resolution, you can freely choose the output video/audio format and lastly it supports not only youtube but also other, known video services like vimeo and others. For those not supported websites, if you are technical enough to locate a video stream url in browser developer tools, you can use it with youtube-dl to download a video file. The program is actively developed so if Youtube team make some changes to the protocol, to cut off those video downloading tools, the ytdl team has a fix in a matter of hours.
if you install MPV (media player) then i think it auto-presents you with āyoutube-dlā with the main package. thatās how it is on GNU/Linux distrosā. other OSes might be different.
Recently, I needed a Youtube downloader for a loved one, but didnāt want the browser-plugins. Linux UIs for youtube-dl I found seemed outdated / abandoned. Soā¦ I remembered @Kyle_Rankinās Easy Librem 5 App Development series using yad, and gave it a shot.
https://codeberg.org/caliga/DownStream
Feel free to test in on the L5, Iām still waiting
One piece thatās missing for this and similar things is a mechanism to share () things like on android.
One simple way to do that would be to have a share button in the phosh-dropdown. On tapping, it would analyze the clipboard content and provide a list of apps/actions/intents that can handle the thing (text/url/image/ā¦) Is something like that planned, @dcz, @guido.gunther ?
So, in summary, you wouldā¦
- copy URL in browser
- swipe down, tap share
- select DownStream
- tap OK
Hmā¦ instead, maybe the swipe-up menu could have two ways of being opened:
Swipe in the left corner (share icon) and it will only show apps that can handle (are registered for) the current clipboard content. That icon would only be there if thereās anything in the clipboard. Thus, the menu could also include a mechanism to manage/clear the clipboard content.
I just want to chime in here and share my workflow for YouTube downloads.
In a terminal, I would suggest that you install the following packages with the command below:
- youtube-dl
- ffmpeg
- atomicparsley
- tor
sudo apt install youtube-dl ffmpeg atomicparsley tor
I think that ffmpeg is installed by default in Debian and PureOS, but it is safe to include it in the manual install command above just to make sure that it is installed. The youtube-dl command is the main package to download video and audio content from YouTube and many other sites across the web, and ffmpeg is needed by youtube-dl in order to automatically stitch together audio and HD video that is 1080 or greater. The atomicparsley package is useful if you would like to use some of the options for youtube-dl to attach the video thumnail or meta-data into the final video download.
The tor package for terminal can be necessary in order to download videos when YouTube or whatever other video hosting site blocks your IP address. To do this, you just need to add ātorsocks -iā before the youtube-dl command, as shown below:
youtube-dl [options] [video url that you want to download]
torsocks -i youtube-dl [options] [video url that you want to download]
You can always run the following command to check out all the options for youtube-dl:
youtube-dl -h
or
youtube-dl --help
Hah, I just noticed that I didnāt mention that above bash-scipt+yad+GUI is, of course, a simple youtube-dl wrapper. (fixed)
Basically, it gives you these benefits
- a simple solution if you do fear the command line
- convenience for occasional downloads that donāt require special options (even if you donāt fear the command line)
- a lot of convenience if you are on a mobile phone, even if you like the command line
Would it be asking a lot to request an audio-only option in your GUI?
I should have mentioned that in Debian linux, you cannot install youtube-dl using the standard sudo apt install command. So instead, I use the following:
sudo apt install python3-pip
sudo pip3 install --upgrade youtube-dl
https://tracker.debian.org/pkg/youtube-dl
The latest youtube-dl version in Buster and Bullseye is: 2021.06.06 and it works
Oh, well that is wonderful news to me. Thank you for letting me know. It has been a while since I have set it up on various devices and in Qubes, so I thought that pip was still necessary.
Iāll test this out
I was already thinking about it shouldnāt be hard.
Weāll see when I get to it.
Audio-only options added (quality menu)
Also, while implementing this, fixed an embarrassing bug and now actually use the edited title and quality selection (I just had forgotten to implement that part somehowā¦)
#stealthRickRoll
Btw, just now that this is working pretty well I noticed that you had tested Video Downloader, which is of course more powerful.
Although, DownStream does have advantages for occasional phone use:
- light weight
- auto-pastes clipboard url
- exits when done
What does sed -i "s/purism/$USER/g" DownStream.desktop
ādo?ā Iām not familiar with it.
It replaces purism with your username, which is purism on the L5ā¦ Thus, you can safely skip that step there.
In Debian Buster (now oldstable) I only see 2019.01.17 available:
$ apt list | grep youtube-dl
youtube-dl/oldstable 2019.01.17-1.1 all
$
Same in PureOS 9:
$ apt list | grep youtube-dl
youtube-dl/amber 2019.01.17-1.1 all
$
So in PureOS I had to do a manual install way back in 2018, according to the instructions at https://ytdl-org.github.io/youtube-dl/download.html
Debian Bullseye does have the latest:
$ apt list | grep youtube-dl
youtube-dl/testing 2021.06.06-1 all
$
@joao.azevedo Now I did
Iām proud to say I didnāt have to fix anything in the script.
However, I updated the installation steps.
The desktop file had a minor syntax bug, the icon did not exist on the L5, and of course it was not listed as adaptiveā¦ all fixed now.
I cheated a bit and installed goodies directly from landing, so I could even take screenshots.