Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YouTube] Unable to download video #9818

Closed
9 of 11 tasks
user7230724 opened this issue Apr 29, 2024 · 8 comments
Closed
9 of 11 tasks

[YouTube] Unable to download video #9818

user7230724 opened this issue Apr 29, 2024 · 8 comments
Labels
cant-reproduce The issue cannot be reliably reproduced site-bug Issue with a specific website triage Untriaged issue

Comments

@user7230724
Copy link

user7230724 commented Apr 29, 2024

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

No response

Provide a description that is worded well enough to be understood

Unable to download the video using yt-dlp. The video is playable in the browser. The .m3u8 file is attached. All the .ts files from the .m3u8 file are downloadable in the browser. The IP address is removed from the logs as well as from the .m3u8 file for security reasons. Tried suggestions from other threads such as adding options -4, --cookies-from-browser firefox, --add-header "Accept:*/*", but didn't help.

The .m3u8 file (with IP removed): index.m3u8

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

[debug] Command-line config: ['-vU', '--ffmpeg-location', 'C:/Program Files/ffmpeg/bin/original/ffmpeg.exe', '--retries', 'infinite', '--fragment-retries', 'infinite', '-o', '[%%(channel)s] %%(title)s [%%(id)s].%%(ext)s', 'uax6s1hd7Ps']
[debug] Encodings: locale cp65001, fs utf-8, pref cp65001, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version [email protected] from yt-dlp/yt-dlp-nightly-builds [ff38a011d] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19043-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 4.4-full_build-www.gyan.dev (setts), ffprobe 4.4-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.02.02, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.31.0, sqlite3-3.35.5, urllib3-2.2.1, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1810 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version: [email protected] from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date ([email protected] from yt-dlp/yt-dlp-nightly-builds)
[youtube] Extracting URL: uax6s1hd7Ps
[youtube] uax6s1hd7Ps: Downloading webpage
[youtube] uax6s1hd7Ps: Downloading ios player API JSON
[youtube] uax6s1hd7Ps: Downloading android player API JSON
WARNING: [youtube] Skipping player responses from android clients (got player responses for video "aQvGIIdgFDM" instead of "uax6s1hd7Ps")
[debug] Loading youtube-nsig.652ba3a2 from cache
[debug] [youtube] Decrypted nsig 02aivPZ92ElhVhDDvF => IKZ7m9Yln7-SEA
[debug] Loading youtube-nsig.652ba3a2 from cache
[debug] [youtube] Decrypted nsig _qXDJDCy3pMduXbGZK => ppHpflCxkiAFSQ
[youtube] uax6s1hd7Ps: Downloading m3u8 information
[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] uax6s1hd7Ps: Downloading 1 format(s): 616+251
[debug] Invoking hlsnative downloader on "https://manifest.googlevideo.com/api/manifest/hls_playlist/expire/1714350864/ei/sJYuZpLKJciki9oPv_alqA8/ip/<REDACTED>/id/b9ac7ab3585decfb/itag/616/source/youtube/requiressl/yes/ratebypass/yes/pfa/1/wft/1/sgovp/clen%3D71714381%3Bdur%3D212.840%3Bgir%3Dyes%3Bitag%3D356%3Blmt%3D1710195177464063/rqh/1/hls_chunk_host/rr2---sn-8p2hvcpax-cxbs.googlevideo.com/xpc/EgVo2aDSNQ%3D%3D/mh/Lz/mm/31,29/mn/sn-8p2hvcpax-cxbs,sn-nv47zn7r/ms/au,rdu/mv/m/mvi/2/pl/24/initcwndbps/345000/vprv/1/playlist_type/DVR/dover/13/txp/4532434/mt/1714328716/fvip/1/short_key/1/keepalive/yes/sparams/expire,ei,ip,id,itag,source,requiressl,ratebypass,pfa,wft,sgovp,rqh,xpc,vprv,playlist_type/sig/AJfQdSswRgIhAPyPwLxD22f70lVa6apB1hMcwFaAz0Fsgyky9yHnBZ2lAiEA584ZczFNTLXsc1LXEgheu2fSI_14RyGJ4ZZdMWDpFZ8%3D/lsparams/hls_chunk_host,mh,mm,mn,ms,mv,mvi,pl,initcwndbps/lsig/AHWaYeowRgIhALBCyDV_f6ksxhZ0VQ7S3EJSXs7EN5qAAlgD8vHUKb0JAiEA1-No4qoZ6nJ2XOq9Mh8eRbwNSrXhid3nie3wT6VOBpA%3D/playlist/index.m3u8"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 41
[download] Destination: [%(channel)s] %(title)s [%(id)s].%(ext)s.f616.mp4
[debug] File locking is not supported. Proceeding without locking
[download] Got error: (<urllib3.connection.HTTPSConnection object at 0x000001E3B4800910>, 'Connection to rr2---sn-8p2hvcpax-cxbs.googlevideo.com timed out. (connect timeout=20.0)'). Retrying (1/inf)...
[download] Got error: (<urllib3.connection.HTTPSConnection object at 0x000001E3B4B78160>, 'Connection to rr2---sn-8p2hvcpax-cxbs.googlevideo.com timed out. (connect timeout=20.0)'). Retrying (2/inf)...
[download] Got error: (<urllib3.connection.HTTPSConnection object at 0x000001E3B4854520>, 'Connection to rr2---sn-8p2hvcpax-cxbs.googlevideo.com timed out. (connect timeout=20.0)'). Retrying (3/inf)...
[download] Got error: (<urllib3.connection.HTTPSConnection object at 0x000001E3B2E185E0>, 'Connection to rr2---sn-8p2hvcpax-cxbs.googlevideo.com timed out. (connect timeout=20.0)'). Retrying (4/inf)...
[download] Got error: (<urllib3.connection.HTTPSConnection object at 0x000001E3B48CD4C0>, 'Connection to rr2---sn-8p2hvcpax-cxbs.googlevideo.com timed out. (connect timeout=20.0)'). Retrying (5/inf)...
[download] Got error: (<urllib3.connection.HTTPSConnection object at 0x000001E3B48F9520>, 'Connection to rr2---sn-8p2hvcpax-cxbs.googlevideo.com timed out. (connect timeout=20.0)'). Retrying (6/inf)...
[download] Got error: (<urllib3.connection.HTTPSConnection object at 0x000001E3B48CD880>, 'Connection to rr2---sn-8p2hvcpax-cxbs.googlevideo.com timed out. (connect timeout=20.0)'). Retrying (7/inf)...
[download] Got error: (<urllib3.connection.HTTPSConnection object at 0x000001E3B483A3D0>, 'Connection to rr2---sn-8p2hvcpax-cxbs.googlevideo.com timed out. (connect timeout=20.0)'). Retrying (8/inf)...
[download] Got error: (<urllib3.connection.HTTPSConnection object at 0x000001E3B481E190>, 'Connection to rr2---sn-8p2hvcpax-cxbs.googlevideo.com timed out. (connect timeout=20.0)'). Retrying (9/inf)...
[download] Got error: (<urllib3.connection.HTTPSConnection object at 0x000001E3B4800AC0>, 'Connection to rr2---sn-8p2hvcpax-cxbs.googlevideo.com timed out. (connect timeout=20.0)'). Retrying (10/inf)...
[download] Got error: (<urllib3.connection.HTTPSConnection object at 0x000001E3B48F9070>, 'Connection to rr2---sn-8p2hvcpax-cxbs.googlevideo.com timed out. (connect timeout=20.0)'). Retrying (11/inf)...
[download] Got error: (<urllib3.connection.HTTPSConnection object at 0x000001E3B4B78430>, 'Connection to rr2---sn-8p2hvcpax-cxbs.googlevideo.com timed out. (connect timeout=20.0)'). Retrying (12/inf)...
[download] Got error: (<urllib3.connection.HTTPSConnection object at 0x000001E3B481E880>, 'Connection to rr2---sn-8p2hvcpax-cxbs.googlevideo.com timed out. (connect timeout=20.0)'). Retrying (13/inf)...
[download] Got error: (<urllib3.connection.HTTPSConnection object at 0x000001E3B4854640>, 'Connection to rr2---sn-8p2hvcpax-cxbs.googlevideo.com timed out. (connect timeout=20.0)'). Retrying (14/inf)...
[download] Got error: (<urllib3.connection.HTTPSConnection object at 0x000001E3B48CD340>, 'Connection to rr2---sn-8p2hvcpax-cxbs.googlevideo.com timed out. (connect timeout=20.0)'). Retrying (15/inf)...
[download] Got error: (<urllib3.connection.HTTPSConnection object at 0x000001E3B48F9A60>, 'Connection to rr2---sn-8p2hvcpax-cxbs.googlevideo.com timed out. (connect timeout=20.0)'). Retrying (16/inf)...
[download] Got error: (<urllib3.connection.HTTPSConnection object at 0x000001E3B462DD90>, 'Connection to rr2---sn-8p2hvcpax-cxbs.googlevideo.com timed out. (connect timeout=20.0)'). Retrying (17/inf)...
@user7230724 user7230724 added site-bug Issue with a specific website triage Untriaged issue labels Apr 29, 2024
@user7230724
Copy link
Author

This doesn't seem to be a duplicate of #3, #283, or #1986 because the exact googlevideo URL is working in the browser. This is probably related to yt-dlp not passing proper headers, so the server rejects the request in the form of a timeout.

@bashonly
Copy link
Member

I can't repro the issue. Format 616 downloads fine for me.

the exact googlevideo URL is working in the browser

In your log, the m3u8 URL is working in yt-dlp too. It's the requests for the segments that are timing out. Do the .ts URLs work in browser?

You could try passing -4 or -6 with your yt-dlp command to force ipv4 or ipv6 respectively.

@bashonly
Copy link
Member

You could also try using --check-formats if you don't particularly care about getting format 616

@user7230724
Copy link
Author

Yes, the direct .ts links are working in the browser. The -4 flag doesn't resolve the issue, as mentioned in the issue description itself. And yes, I particularly want 616.

@bashonly
Copy link
Member

Is there any difference in your connection between your browser and yt-dlp? Proxy, VPN, etc? Are you using any sort of firewall or pihole setup?

@bashonly
Copy link
Member

bashonly commented Apr 29, 2024

Even though it won't be a solution for you, could you add --check-formats --skip-download to your command and post the log?

@user7230724
Copy link
Author

There is no proxy, VPN or firewall. The output of --check-formats: out.txt. Note that this video is a rare exception, other videos work fine. I ended up downloading the audio and video manually from browser and combining via ffmpeg (modified the first segment url to encapsulate the entire range).

@Hrxn
Copy link

Hrxn commented May 5, 2024

Sorry, can't reproduce.

Download worked here, format 616 included.

Although I did not see format 616 in my browser, fwiw ¯\(ツ)

@pukkandan pukkandan added the cant-reproduce The issue cannot be reliably reproduced label May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cant-reproduce The issue cannot be reliably reproduced site-bug Issue with a specific website triage Untriaged issue
Projects
None yet
Development

No branches or pull requests

4 participants