Quando si effettua il download di un video con youtube-dl può verificarsi che lo stesso non vada a buon fine:
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug
oppure si presenti un errore come:
ERROR: "token" parameter not in video info for unknown reason; 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.
Come si legge nel messaggio accertarsi di disporre dell’ultima versione del programma. Visti i continui cambiamenti in youtube questa è l’unica soluzioni per disporre di una versione di youtube-dl efficace.
In debian 10 .xx ad esempio la versione presente nei repository e del gennaio 2019.
# youtube-dl --version
2017.05.18.1
# whereis youtube-dl
youtube-dl: /usr/bin/youtube-dl
Youtube-dl si basa su Python e non è piattaforma specifico può funzionare anche su Windows e Mac OS X Le instruzioni per il download dell’ultima versione sono reperibili alla pagina http://ytdl-org.github.io/youtube-dl/download.html.
Per effettuare il download di un con youtube-dl file è sufficiente specificare il solo parametro dopo il v=dqySSABrF0M
youtube-dl dqySSABrF0M
Visto che si tratta di un singolo file, se si desidera conservare la vecchia del repository ufficiale, si può utilizzare un nome diverso per l’ultima versione ( last) ad esempio youtube-dll
Effettuare il download da terminale con curl oppure wget la directory di destinazione consigliata è /usr/local/bin in nome è leggermente cambiato in youtube-dll
# sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dll
# sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dll
conferire i permessi per di esecuzione
chmod a+rx /usr/local/bin/youtube-dll
per controllare versione e posizione del nuovo comando
# youtube-dll --version 2020.05.29
# whereis youtube-dll youtube-dll: /usr/local/bin/youtube-dll
La quantità di opzioni disponibili è veramente elevata.
Digitare youtube-dl –help
Per ssemplificarsi la vita è visualizzare i comandi per scaricare solo la parte audio si può utilizzare un comando come:
youtube-dl --help| grep audio
$ youtube-dl --help | grep audio
bestvideo+bestaudio), output to given
-x, --extract-audio Convert video files to audio-only files
--audio-format FORMAT Specify audio format: "best", "aac",
--audio-quality QUALITY Specify ffmpeg/avconv audio quality, insert
--embed-thumbnail Embed thumbnail in the audio as cover art
Quindi per effettuare il download della sola componente audio digitare:
youtube-dll -x --audio-format mp3 FlIM08m_HhU
Dettagli Error youtube-dl
# youtube-dl https://www.youtube.com/watch?v=F2s8U9p-ej4
F2s8U9p-ej4: Downloading webpage
F2s8U9p-ej4: Downloading video info webpage
ERROR: F2s8U9p-ej4: "token" parameter not in video info for unknown
reason; 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.
Altro errore
ERROR: Signature extraction failed: Traceback (most recent call last) …
RegexNotFoundError: Unable to extract Initial JS player signature function name; …
in youtube-dl
youtube-dl https://www.youtube.com/watch?v=LYhrYHmUPn Setting language LYhrYHmUPn0: Downloading webpage LYhrYHmUPn0: Downloading video info webpage LYhrYHmUPn0: Extracting video information LYhrYHmUPn0: Encrypted signatures detected. LYhrYHmUPn0: Downloading js player vfljL8ofl ERROR: Signature extraction failed: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 479, in _decrypt_signature video_id, player_url, s File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 383, in _extract_signature_function res = self._parse_sig_js(code) File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 454, in _parse_sig_js u'Initial JS player signature function name') File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 391, in _search_regex raise RegexNotFoundError(u'Unable to extract %s' % _name) RegexNotFoundError: Unable to extract Initial JS player signature function name; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update. ; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.
Risorse:
- youtube-dl ERROR: “token” parameter not in video info for unknown reason;
- Linux: download and convert videos and audio Clipgrab, vlc, DamnVid, youtube-dl, downverter
- Soundconverter rilasciata la versione 2.1.1
- Ubuntu 12.10 Installare 12.10 Handrake il noto programma di transcodifica video
- Come riprodurre mp3, wma, wmv files in linux ubuntu debian redhat
- VLC versione 2.0.4 rilasciata
- Formato contenitore – Wikipedia
- Codec Audio Video per Ubuntu Linux
- youtube-dl