LinuxMindItalia

Supporto hardware e software => Supporto software, installazione e configurazione => Discussione aperta da: Pope il Lunedì 26 Novembre 2018, 23:30:45

Titolo: [RISOLTO] Youtube-dl: eppur funzionavi...
Inserito da: Pope il Lunedì 26 Novembre 2018, 23:30:45
L'ho usato non molto tempo fà, ed è l'unico rimasto, visto la protezione dei files multimediali di you Tube.
(a dir la verita Atubecatcher di windows funziona ancora)
Comunque.
andrea@andrea-Compaq-Presario-C700-Notebook-PC ~ $ youtube-dl https://www.youtube.com/watch?v=UprcpdwuwCg
[youtube] UprcpdwuwCg: Downloading webpage
[youtube] UprcpdwuwCg: Downloading video info webpage
[youtube] UprcpdwuwCg: Extracting video information
WARNING: unable to extract uploader nickname
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 905, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 797, in _extract_signature_function
    raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'/yts/jsbin/player-vfl718orE/en_US/base.js'; 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 ExtractorError(u"Cannot identify player u'/yts/jsbin/player-vfl718orE/en_US/base.js'; 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.

youtube-dl -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.02.22
[debug] Python version 2.7.12 - Linux-4.4.0-139-generic-i686-with-LinuxMint-18.3-sylvia
[debug] exe versions: avconv 2.8.15-0ubuntu0.16.04.1, avprobe 2.8.15-0ubuntu0.16.04.1, ffmpeg 2.8.15-0ubuntu0.16.04.1, ffprobe 2.8.15-0ubuntu0.16.04.1
[debug] Proxy map: {}
Usage: youtube-dl [OPTIONS] URL [URL...]

Titolo: Re:Youtube-dl: eppur funzionavi...
Inserito da: Tony il Martedì 27 Novembre 2018, 05:19:48
Credo che dal 2016 le cose siano un po' cambiate.
Prova una versione più recente scaricandola direttamente dal sito del progetto.
https://rg3.github.io/youtube-dl/download.html (https://rg3.github.io/youtube-dl/download.html)
Titolo: Re:[RISOLTO] Youtube-dl: eppur funzionavi...
Inserito da: Pope il Martedì 27 Novembre 2018, 09:06:12
Cinque minuti dopo aver scritto il post ho trovato pure la discussione (http://www.linuxminditalia.org/index.php?topic=23252.0) che ricordavo  :dry:
anyway
Disinstallato prima vecchia versione, poi:
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl

poi
sudo chmod a+rx /usr/local/bin/youtube-dl
Tutto ok
andrea@andrea-Compaq-Presario-C700-Notebook-PC ~ $ youtube-dl -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.11.23
[debug] Python version 2.7.12 (CPython) - Linux-4.4.0-139-generic-i686-with-LinuxMint-18.3-sylvia
[debug] exe versions: avconv 2.8.15-0ubuntu0.16.04.1, avprobe 2.8.15-0ubuntu0.16.04.1, ffmpeg 2.8.15-0ubuntu0.16.04.1, ffprobe 2.8.15-0ubuntu0.16.04.1
[debug] Proxy map: {}
Usage: youtube-dl [OPTIONS] URL [URL...]

youtube-dl: error: You must provide at least one URL.
Type youtube-dl --help to see a list of all options.

andrea@andrea-Compaq-Presario-C700-Notebook-PC ~ $ youtube-dl -x https://www.youtube.com/watch?v=UprcpdwuwCg&list=RDMMUprcpdwuwCg&index=1
[1] 4758
[2] 4759
andrea@andrea-Compaq-Presario-C700-Notebook-PC ~ $ [youtube] UprcpdwuwCg: Downloading webpage
[youtube] UprcpdwuwCg: Downloading video info webpage
[youtube] UprcpdwuwCg: Downloading js player vfl718orE
[download] Destination: twenty one pilots - Heathens (from Suicide Squad - The Album) [OFFICIAL VIDEO]-UprcpdwuwCg.webm
[download] 100% of 3.43MiB in 00:01
[ffmpeg] Destination: twenty one pilots - Heathens (from Suicide Squad - The Album) [OFFICIAL VIDEO]-UprcpdwuwCg.opus
Deleting original file twenty one pilots - Heathens (from Suicide Squad - The Album) [OFFICIAL VIDEO]-UprcpdwuwCg.webm (pass -k to keep)

[1]-  Completato              youtube-dl -x https://www.youtube.com/watch?v=UprcpdwuwCg
[2]+  Completato              list=RDMMUprcpdwuwCg

Grazie  :ciao:
Titolo: Re:[RISOLTO] Youtube-dl: eppur funzionavi...
Inserito da: Pope il Martedì 27 Novembre 2018, 09:25:39
 ;D
Non so se lo fate anche voi ma di solito estrapolo il file audio sui video YT.
youtube-dl -x
Estrae file audio .opus
youtube-dl -x --audio-format mp3
Estrae file audio mp3
:ciao:
Titolo: Re:[RISOLTO] Youtube-dl: eppur funzionavi...
Inserito da: Tony il Martedì 27 Novembre 2018, 10:20:46
Certo che i repository con versioni delle guerre puniche...
:palm:
Titolo: Re:[RISOLTO] Youtube-dl: eppur funzionavi...
Inserito da: nessuno il Martedì 27 Novembre 2018, 11:06:05
Vi avrò sicuramente già annoiato con Xtreme Download Manager (http://xdman.sourceforge.net/), e magari non solo con quello, ma funziona, funziona su tutti i siti (you tube in cima), funziona con tutti i browser principali e funziona bene.

Inoltre gestisce il download di qualsiasi tipo di file, anche le ISO tra i tanti, e in molti casi incrementa anche di molto la velocità del download.

Se non c'è nel repo, o non è aggiornato, si può installare in modo semplice eseguendo il suo script.

:ciao:
Titolo: Re:[RISOLTO] Youtube-dl: eppur funzionavi...
Inserito da: Pope il Martedì 27 Novembre 2018, 11:31:53
Eh infatti i repo così datati sono un limite.
Nick non annoi mai, tra l'altro non lo ricordavo  ;D
Carina l'interfaccia grafica.
:ok:
Titolo: Re:[RISOLTO] Youtube-dl: eppur funzionavi...
Inserito da: pitalfa il Martedì 27 Novembre 2018, 12:20:51
A proposito di XTREME DOWNLOAD MANAGER,
ho letto sul sito che si integra anche con Firefox ma, non ho capito come;
posso chiedervi di insegnarmi come si fa?

Grazie...
Titolo: Re:[RISOLTO] Youtube-dl: eppur funzionavi...
Inserito da: Pope il Martedì 27 Novembre 2018, 12:28:28
Ti consiglio un nuovo topic.
:ciao:
Titolo: Re:[RISOLTO] Youtube-dl: eppur funzionavi...
Inserito da: nessuno il Martedì 27 Novembre 2018, 12:53:00
Un topic apposito sarebbe consigliabile per lasciare traccia nel forum ed essere di aiuto anche ad altri utenti interessati, magari prima o poi succederà, per il momento ti basta scaricare l'estensione che trovi tra i componenti aggiuntivi di Firefox, chrome, chromium, opera e vivaldi. Proprio come una qualsiasi altra estensione.

Puoi anche farlo dalla sua interfaccia dopo averlo installato, l'installazione è necessaria in ogni caso.

Così siamo andati OT, anche se siamo rimasti in tema di downloader...  :)