The officially official Devuan Forum!

You are not logged in.

#1 2018-11-10 19:25:39

keos
Member
Registered: 2017-06-16
Posts: 173  

Problems with youtube-dl [solved]

hi, i installed youtube-dl but i don't see how to run this application since the ytd-gtk is not in the synaptic, and by the terminal this is what i got:

root@kaos:/home/keos# youtube-dl https://www.youtube.com/watch?v=i3JPUobdDm8
[youtube] i3JPUobdDm8: Downloading webpage
[youtube] i3JPUobdDm8: Downloading video info webpage
[youtube] i3JPUobdDm8: Extracting video information
WARNING: unable to extract uploader nickname
[youtube] i3JPUobdDm8: Downloading js player vfl6LN1Nj
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1162, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1073, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1134, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 782, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
 (caused by RegexNotFoundError('Unable to extract \x1b[0;34mInitial JS player signature function name\x1b[0m; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
root@kaos:/home/keos# 

Maybe i'm doing something wrong, any idea? thanks.

Last edited by keos (2018-11-12 14:19:49)


devuan_ascii_2.0.0-rc_amd64_desktop-live.iso  [Xfce]

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Offline

#2 2018-11-10 21:58:35

Ron
Member
Registered: 2018-04-22
Posts: 526  

Re: Problems with youtube-dl [solved]

Did you download the app via Synaptic? That might be the problem as the repo version is too old to work with youtube videos. I download the app straight from their website (using wget) which gives you the current version:

http://rg3.github.io/youtube-dl/download.html

Last edited by Ron (2018-11-10 22:03:07)

Offline

#3 2018-11-10 22:31:24

dxrobertson
Member
Registered: 2017-05-04
Posts: 232  

Re: Problems with youtube-dl [solved]

I have had good luck with python-pip on this very "ERROR: Signature extraction failed:" issue.  As Ron states, I believe its an out of date/update problem with youtube-dl.  python-pip is a method to upgrade your existing youtube-dl.

This needs to be installed once, to install pip:

apt-get install python-pip

Then run this command to upgrade youtube-dl, and also run this command when you get the "ERROR: Signature extraction failed:"  error in the future

pip install --upgrade youtube-dl

Offline

#4 2018-11-10 22:38:34

dxrobertson
Member
Registered: 2017-05-04
Posts: 232  

Re: Problems with youtube-dl [solved]

As a test, I attempted your download:

youtube-dl https://www.youtube.com/watch?v=i3JPUobdDm8

And received the error.  I then updated my youtube-dl:

pip install --upgrade youtube-dl

Then tried the download again and it worked fine.

Offline

#5 2018-11-12 13:54:46

keos
Member
Registered: 2017-06-16
Posts: 173  

Re: Problems with youtube-dl [solved]

Hi, after install python-pip:

root@kaos:/home/keos# pip install --upgrade youtube-dl
Collecting youtube-dl
  Downloading https://files.pythonhosted.org/packages/6c/a4/c2e3fbd8b9c7ccbca3f220c4fb0914926669bf9080fb8f2f4db4811706be/youtube_dl-2018.11.7-py2.py3-none-any.whl (1.8MB)
    100% |████████████████████████████████| 1.8MB 337kB/s 
Installing collected packages: youtube-dl
Successfully installed youtube-dl-2018.11.7
root@kaos:/home/keos# youtube-dl https://www.youtube.com/watch?v=i3JPUobdDm8
[youtube] i3JPUobdDm8: Downloading webpage
[youtube] i3JPUobdDm8: Downloading video info webpage
[youtube] i3JPUobdDm8: Downloading js player vfls4aurX
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[download] Destination: Avril Lavigne - Head Above Water (Sub Español - Ingles)-i3JPUobdDm8.f137.mp4
[download] 100% of 27.75MiB in 00:20
[download] Destination: Avril Lavigne - Head Above Water (Sub Español - Ingles)-i3JPUobdDm8.f251.webm
[download] 100% of 3.57MiB in 00:02
[ffmpeg] Merging formats into "Avril Lavigne - Head Above Water (Sub Español - Ingles)-i3JPUobdDm8.mkv"
Deleting original file Avril Lavigne - Head Above Water (Sub Español - Ingles)-i3JPUobdDm8.f137.mp4 (pass -k to keep)
Deleting original file Avril Lavigne - Head Above Water (Sub Español - Ingles)-i3JPUobdDm8.f251.webm (pass -k to keep)
root@kaos:/home/keos# 

Thanks!!


devuan_ascii_2.0.0-rc_amd64_desktop-live.iso  [Xfce]

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Offline

Board footer