yt-dlp

Postez ici toutes vos demandes d’assistance.
Répondre
pjlt
Messages : 153
Enregistré le : lun. 22 mai 2017 16:16

yt-dlp

Message par pjlt »

Bonjour,
J'essaie en vain de télécharger des vidéos Youtube avec yt-dlp. Sur ce même système j'avais réussi. Maintenant, mon système me revoie:

Code : Tout sélectionner

juillet@juillet-K73SJ:~$ yt-dlp --verbose https://www.youtube.com/watch?v=wkF9w86XXKU
[debug] Command-line config: ['--verbose', 'https://www.youtube.com/watch?v=wkF9w86XXKU']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.03.04 [392389b7d]
[debug] Lazy loading extractors is disabled
[debug] Python 3.10.6 (CPython x86_64 64bit) - Linux-5.4.0-144-generic-x86_64-with-glibc2.35 (OpenSSL 3.0.2 15 Mar 2022, glibc 2.35)
[debug] exe versions: ffmpeg 4.4.2 (setts), ffprobe 4.4.2
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.05.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1840 extractors
[youtube] Extracting URL: https://www.youtube.com/watch?v=wkF9w86XXKU
[youtube] wkF9w86XXKU: Downloading webpage
[youtube] wkF9w86XXKU: Downloading android player API JSON
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] wkF9w86XXKU: Downloading 1 format(s): 244+251
[debug] Invoking http downloader on "https://rr3---sn-cv0tb0xn-gonl.googlevideo.com/videoplayback?expire=1692580156&ei=3GTiZP-0Ds-wxN8Plf-pkAk&ip=2001%3A861%3A3dc6%3Aadd0%3A293e%3A317f%3A3487%3A97ec&id=o-ACZkLe7NB4R2pBC6VfFUDYJZMMoKHRdFFgKzFDlUZ9N9&itag=244&source=youtube&requiressl=yes&mh=4N&mm=31%2C29&mn=sn-cv0tb0xn-gonl%2Csn-25ge7nzz&ms=au%2Crdu&mv=m&mvi=3&pl=46&initcwndbps=1341250&spc=UWF9f5JLaLD94eEZD9xbjwi4vO-W5V0qTrXP120ZIA&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=15009127&dur=279.946&lmt=1636048776378442&mt=1692558063&fvip=4&keepalive=yes&fexp=24007246%2C51000011%2C51000024&c=ANDROID&txp=5532434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhALQ2Jl54pLs0o1G0NBTlOq0h0kZiMu07fe4Mb4ax3__xAiEA6fkRp37Dol9Tqphgz8bHnXGXp97HSUr7SIERfpENipQ%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgOy-ib8RlkeB6F5krI2cVsvLsuU_BEue7Klho9-zAKNUCIBMGBEyKFDODufBASBbmSiPgyjCezWeSce407Dz522SX"
ERROR: unable to download video data: HTTP Error 403: Forbidden
Traceback (most recent call last):
  File "/snap/yt-dlp/272/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3262, in process_info
    partial_success, real_download = self.dl(fname, new_info)
  File "/snap/yt-dlp/272/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3003, in dl
    return fd.download(name, new_info, subtitle)
  File "/snap/yt-dlp/272/lib/python3.10/site-packages/yt_dlp/downloader/common.py", line 456, in download
    ret = self.real_download(filename, info_dict)
  File "/snap/yt-dlp/272/lib/python3.10/site-packages/yt_dlp/downloader/http.py", line 377, in real_download
    establish_connection()
  File "/snap/yt-dlp/272/lib/python3.10/site-packages/yt_dlp/downloader/http.py", line 129, in establish_connection
    ctx.data = self.ydl.urlopen(request)
  File "/snap/yt-dlp/272/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3776, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

juillet@juillet-K73SJ:~$ 
Quel est le problème ?
Merci d'avance pour l'aide.
Laptop Asus K73SJ ; 64 bits ; cpu: Intel(R) Pentium(R) CPU B950 @ 2.10GHz ;
Distribution : Linux Mint 20.3 Una
Desktop Environment : Cinnamon
Kernel : 5.4.0-58-generic x86_64
VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)

Avatar du membre
serged
Messages : 905
Enregistré le : jeu. 16 juil. 2015 07:59
Localisation : Montrouge (France)

Re: yt-dlp

Message par serged »

yt-dlp ne doit pas être à jour. Chez moi, j'ai réussi à télécharger ta vidéo... Ma version :

Code : Tout sélectionner

yt-dlp --version
2023.07.06
Donc il faut le mettre à jour régulièrement ! Le mien à été mis à jour via les dépôts officiels de LM 21.2...
LinuxMint Virginia Cinnamon et d'autres machines en MATE, XFCE... 20.x , 21.x ou 19.x
Tour : Asus F2A55 / AMD A8-5600K APU 3,6GHz / RAM 17Go / SSD 4To /Nvidia GeForce GT610 / LM21.3 Cinnamon
Portable : LDLC Mercure MH : Celeron N3450 /RAM 4Go / Intel HD graphics 500 i915 / biboot Win 10 (sur SSD) - LM21.3 MATE (sur HDD)

pjlt
Messages : 153
Enregistré le : lun. 22 mai 2017 16:16

Re: yt-dlp

Message par pjlt »

Bonjour et merci pour cette réponse.
Depuis mon premier post j'ai mis à jour yt-dlp.J'ai la version: stable@2023.07.06
Cependant, je n'arrive toujours pas à télécharger. Mon système me renvoie:

Code : Tout sélectionner

juillet@juillet-K73SJ:~$ yt-dlp --verbose https://www.youtube.com/watch?v=wkF9w86XXKU
[debug] Command-line config: ['--verbose', 'https://www.youtube.com/watch?v=wkF9w86XXKU']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.07.06 [b532a3481] (pip)
[debug] Python 3.8.10 (CPython x86_64 64bit) - Linux-5.4.0-144-generic-x86_64-with-glibc2.29 (OpenSSL 1.1.1f  31 Mar 2020, glibc 2.31)
[debug] exe versions: ffmpeg 4.2.7, ffprobe 4.2.7
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2019.11.28, mutagen-1.46.0, secretstorage-2.3.1, sqlite3-2.6.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1855 extractors
[youtube] Extracting URL: https://www.youtube.com/watch?v=wkF9w86XXKU
[youtube] wkF9w86XXKU: Downloading webpage
WARNING: [youtube] unable to extract initial player response; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
[youtube] wkF9w86XXKU: Downloading ios player API JSON
[youtube] wkF9w86XXKU: Downloading android player API JSON
[youtube] wkF9w86XXKU: Downloading iframe API JS
[youtube] wkF9w86XXKU: Downloading player f980f2a9
[youtube] wkF9w86XXKU: Downloading web player API JSON
[youtube] wkF9w86XXKU: Downloading m3u8 information
WARNING: [youtube] unable to extract yt initial data; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
WARNING: [youtube] Incomplete data received in embedded initial data; re-fetching using API.
[youtube] wkF9w86XXKU: Downloading initial data API JSON
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, size, br, asr, vext, aext, hasaud, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] wkF9w86XXKU: Downloading 1 format(s): 244+251
[debug] Invoking http downloader on "https://rr3---sn-cv0tb0xn-gonl.googlevideo.com/videoplayback?expire=1692627482&ei=uh3jZIzOJITXxN8P9pekyAU&ip=2001%3A861%3A3dc6%3Aadd0%3A11f4%3A28f6%3Af0f8%3A33d&id=o-AICKqUWbe0ipHQeuIs-kf5p4wue7LOqJZCDLONv1BbXr&itag=244&source=youtube&requiressl=yes&mh=4N&mm=31%2C29&mn=sn-cv0tb0xn-gonl%2Csn-25glenld&ms=au%2Crdu&mv=m&mvi=3&pl=46&initcwndbps=1692500&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=15009127&dur=279.946&lmt=1636048776378442&mt=1692605593&fvip=2&keepalive=yes&fexp=24007246%2C24362685%2C51000024&c=IOS&txp=5532434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIge0xUsUREJpp-lc8hpgfHugOt-D9w0WEyKOrFvBsh8OQCIH3zqZuDdgkmIyutmaNwABUEPpvKAHuh87lB8PbDpU0B&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJul__s7XN4VNt41TFpiU-uiUOPrIsdszryjgvbXtI_jAiEAorXkayAO9EHdoQGMYrBclgF99sUj-04EdbRyOsgxVXk%3D"
[download] Destination: London Grammar - Nightcall(Live at Lowlands 2017) [wkF9w86XXKU].f244.webm
[download] 100% of   14.31MiB in 00:00:02 at 4.93MiB/s
[debug] Invoking http downloader on "https://rr3---sn-cv0tb0xn-gonl.googlevideo.com/videoplayback?expire=1692627482&ei=uh3jZJDnLrC7p-oPqtCngAw&ip=2001%3A861%3A3dc6%3Aadd0%3A11f4%3A28f6%3Af0f8%3A33d&id=o-AK3R-dUWS73FUu-cmCJeu5DzRgAhkTfxpKfDjvMIzGLI&itag=251&source=youtube&requiressl=yes&mh=4N&mm=31%2C29&mn=sn-cv0tb0xn-gonl%2Csn-25glenld&ms=au%2Crdu&mv=m&mvi=3&pl=46&initcwndbps=1692500&spc=UWF9f2oWCQ1POoCGfnCsTy-XdaY8xqg&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=4700748&dur=279.961&lmt=1636046862608133&mt=1692605593&fvip=2&keepalive=yes&fexp=24007246%2C24363392&beids=24350018&c=ANDROID&txp=5532434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAMJR00hNKnB8MkHe3AlzPSwgUq8GdXYqB9Zl-UUJ1oveAiAbom0PnSWfxkFRIpIPn8yM4VDY2W5qVemjmct7CEpvgw%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgfMeeCLj2ZuIy-Qe6USGTFpHTZKj2Drz2JcgxnpH_M7kCIQDnn68I7ouZ_t8EsapgaX8KRy7RSm3UZqYA-hIV9s-qzw%3D%3D"
[download] Destination: London Grammar - Nightcall(Live at Lowlands 2017) [wkF9w86XXKU].f251.webm
[download] 100% of    4.48MiB in 00:00:00 at 5.15MiB/s
[Merger] Merging formats into "London Grammar - Nightcall(Live at Lowlands 2017) [wkF9w86XXKU].webm"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:London Grammar - Nightcall(Live at Lowlands 2017) [wkF9w86XXKU].f244.webm' -i 'file:London Grammar - Nightcall(Live at Lowlands 2017) [wkF9w86XXKU].f251.webm' -c copy -map 0:v:0 -map 1:a:0 -movflags +faststart 'file:London Grammar - Nightcall(Live at Lowlands 2017) [wkF9w86XXKU].temp.webm'
Deleting original file London Grammar - Nightcall(Live at Lowlands 2017) [wkF9w86XXKU].f244.webm (pass -k to keep)
Deleting original file London Grammar - Nightcall(Live at Lowlands 2017) [wkF9w86XXKU].f251.webm (pass -k to keep)
juillet@juillet-K73SJ:~$ 
Laptop Asus K73SJ ; 64 bits ; cpu: Intel(R) Pentium(R) CPU B950 @ 2.10GHz ;
Distribution : Linux Mint 20.3 Una
Desktop Environment : Cinnamon
Kernel : 5.4.0-58-generic x86_64
VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)

Répondre