youtube-dl & youtube-dl GUI

Audio editors, music players, video players, burning software, etc.
Post Reply
Message
Author
labbe5
Posts: 2159
Joined: Wed 13 Nov 2013, 14:26
Location: Canada

youtube-dl & youtube-dl GUI

#1 Post by labbe5 »

There is a GUI for youtube-dl, but using this script is very easy.

Open the folder in which you want to download videos, and open a terminal. Then type :
youtube-dl + url

On a you tube video page, under the screen, there is an option to share. Click it, and copy-paste the url in your terminal, such as https://youtu.be/Rz0hEYaDZx8

It looks like this :

youtube-dl https://youtu.be/Rz0hEYaDZx8

Click enter, and download proceeds.

You can add options, such as :
youtube-dl --list-formats https://youtu.be/Rz0hEYaDZx8

This option gives you some codes, which you use to download mp4, webm, or other formats, usually -f 43 for webm and -f 18 for mp4

Here i will download the video in mp4 format :

youtube-dl -f18 https://youtu.be/Rz0hEYaDZx8

Need the title in your download, here how to have titles :
youtube-dl -t -f18 https://youtu.be/Rz0hEYaDZx8

The downloading can resume, in case downloading is interrupted. Just type same command as above.

For installing youtube-dl, it is as easy as $sudo apt install youtube-dl for Dog-based OS.

more info on dependencies (python version 2.6, 2.7, or 3.2+) and installing methods :
https://rg3.github.io/youtube-dl/download.html

With curl :
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

With wget :
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

Finally, youtube-dl can be used for other video websites.
Last edited by labbe5 on Fri 19 May 2017, 20:37, edited 1 time in total.

slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#2 Post by slavvo67 »

Finally, youtube-dl can be used for other video websites.
Which sites? Not sure if I agree with that.

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#3 Post by Semme »

>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

jss83

#4 Post by jss83 »

How can I use the GUI? I downloaded using

""With wget :
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl ""

But I don't know what to do next? I am on x-tahr.

Also, how to download 720p version?

labbe5
Posts: 2159
Joined: Wed 13 Nov 2013, 14:26
Location: Canada

youtube-dl GUI

#5 Post by labbe5 »

https://mrs0m30n3.github.io/youtube-dl-gui/#downloads

For Dog-based users :
Installing from source :
First, you need to have build-essential installed.
Then, after downloading source and having extracted it, open a terminal window from extracted folder :

python setup.py install (or $sudo python setup.py install for non-root users)

Once installation is complete :
youtube-dl-gui in terminal

The easy way :
.deb file from Precise to Zesty download center :
http://ppa.launchpad.net/nilarimogard/w ... utube-dlg/

User avatar
MrAccident
Posts: 361
Joined: Mon 31 Mar 2014, 20:53

#6 Post by MrAccident »

It didn't work; and I got this:

Code: Select all

root#  youtube-dl https://youtu.be/Rz0hEYaDZx8
Traceback (most recent call last):
  File "/usr/bin/youtube-dl", line 3, in <module>
    import youtube_dl
  File "/usr/lib/python3/dist-packages/youtube_dl/__init__.py", line 15, in <module>
    from .options import (
  File "/usr/lib/python3/dist-packages/youtube_dl/options.py", line 8, in <module>
    from .downloader.external import list_external_downloaders
  File "/usr/lib/python3/dist-packages/youtube_dl/downloader/__init__.py", line 3, in <module>
    from .common import FileDownloader
  File "/usr/lib/python3/dist-packages/youtube_dl/downloader/common.py", line 10, in <module>
    from ..utils import (
  File "/usr/lib/python3/dist-packages/youtube_dl/utils.py", line 29, in <module>
    import ssl
  File "/usr/lib/python3.6/ssl.py", line 101, in <module>
    import _ssl             # if we can't import it, let the error propagate
ImportError: /lib64/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /usr/lib/python3.6/lib-dynload/_ssl.cpython-36m-x86_64-linux-gnu.so)
root# 

Post Reply