yt-dlp: [Youtube] ffmpeg fails but downloader succeeds. i.e. download_ranges fails but entire file downloads

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

  • I’m reporting a bug unrelated to a specific site
  • I’ve verified that I have updated yt-dlp to nightly or master (update instructions)
  • I’ve checked that all provided URLs are playable in a browser with the same IP and same login details
  • I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
  • I’ve searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I’ve read the guidelines for opening an issue

Provide a description that is worded well enough to be understood

When I add download_ranges option, it looks like yt-dlp is using ffmpeg. However, when downloading through ffmpeg, it gets 403 error while downloading the entire file through yt-dlp’s downloader works.

This is what I got when I asked an llm to compare the request between the one made from ffmepg vs one from downloader.

Let me analyze both scenarios:
1. With download_ranges (using ffmpeg):
- Uses ffmpeg to handle the download with time ranges (60-80 seconds)
- The request fails with "Error opening input: End of file"
Key differences in headers:
- No Range header is present
URL domain: rr2---sn-aigl6nzs.googlevideo.com
2. Without download_ranges (direct HTTP):
- Uses direct HTTP download
- Successfully downloads with proper range requests
`Range: bytes=0-10195920`

Key additional headers:
`Range: bytes=0-10195920`
- URL domain: rr3---sn-p5qlsnd6.googlevideo.com
Key Issues:
1. The ffmpeg request is missing the crucial Range header that YouTube expects
2. The successful request includes proper range-based downloading with bytes=0-10195920
3. Different CDN servers are being used (rr2 vs rr3)

opts

{'format': 'bestaudio/best',
        'noplaylist': True,
        'outtmpl': filename,
        'no_check_certificate': True,
        'logger': MyLogger(),
        'progress_hooks': [my_hook],
        'quiet': False,
        'proxy': proxy_url,
        'cookiefile': './cookie.txt,
        'verbose': True,
        'debug_printtraffic': True,  # This will print all HTTP traffic
        'download_ranges': download_range_func(None, [(start_second, end_second)]),
        }

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

With download_ranges

reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json; charset=UTF-8
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Content-Encoding: gzip
header: Date: Tue, 24 Dec 2024 02:26:44 GMT
header: Server: scaffolding on HTTPServer2
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Set-Cookie: SIDCC=redacted; expires=Wed, 24-Dec-2025 02:26:44 GMT; path=/; domain=.youtube.com; priority=high
header: Set-Cookie: __Secure-1PSIDCC=redacted-F71BFQV-redacted-kNA; expires=Wed, 24-Dec-2025 02:26:44 GMT; path=/; domain=.youtube.com; Secure; HttpOnly; priority=high
header: Set-Cookie: __Secure-3PSIDCC=redacted-redacted; expires=Wed, 24-Dec-2025 02:26:44 GMT; path=/; domain=.youtube.com; Secure; HttpOnly; priority=high; SameSite=none
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
header: Expires: Tue, 24 Dec 2024 02:26:44 GMT
header: Cache-Control: private
header: Connection: close
header: Transfer-Encoding: chunked
2024-12-24 11:26:45,140 - DEBUG - [debug] [youtube] Extracting signature function js_03dbdfab_107
2024-12-24 11:26:45,141 - DEBUG - [debug] Loading youtube-sigfuncs.js_03dbdfab_107 from cache
2024-12-24 11:26:45,141 - DEBUG - [debug] Loading youtube-nsig.03dbdfab from cache
2024-12-24 11:26:45,927 - DEBUG - [debug] [youtube] Decrypted nsig VRrIuFHCoj2nZ0Z3T => l4NVf8iPAeAvxQ
2024-12-24 11:26:45,929 - DEBUG - [debug] Loading youtube-nsig.03dbdfab from cache
2024-12-24 11:26:46,686 - DEBUG - [debug] [youtube] Decrypted nsig UlhfB2yFmRla4tiYo => 5DMEU-xeKbjrgQ
2024-12-24 11:26:46,687 - DEBUG - [debug] [youtube] Extracting signature function js_03dbdfab_103
2024-12-24 11:26:46,687 - DEBUG - [debug] Loading youtube-sigfuncs.js_03dbdfab_103 from cache
2024-12-24 11:26:46,707 - DEBUG - [debug] Loading youtube-nsig.03dbdfab from cache
2024-12-24 11:26:47,465 - DEBUG - [debug] [youtube] Decrypted nsig TJE4yPFrctne88Bdi => bEL1OlGh09jKhA
2024-12-24 11:26:47,511 - DEBUG - [debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec, channels, acodec, lang, proto
2024-12-24 11:26:47,511 - DEBUG - [debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec, channels, acodec, lang, proto, size, br, asr, vext, aext, hasaud, id
2024-12-24 11:26:47,539 - DEBUG - [info] bk6Xst6euQk: Downloading 1 format(s): 251
2024-12-24 11:26:47,539 - DEBUG - [info] bk6Xst6euQk: Downloading 1 time ranges: 60.0-80.0
2024-12-24 11:26:47,559 - DEBUG - [debug] Invoking ffmpeg downloader on "https://rr2---sn-aigl6nzs.googlevideo.com/videoplayback?expire=1735028803&ei=4xtqZ8mtAdLQp-oPmJuTyQ4&ip=103.104.20.118&id=o-ABIik8CxvKZ7t3bGSea2Lt8xlJhcZsDjg5KXTZGA6De6&itag=251&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&met=1735007203%2C&mh=95&mm=31%2C26&mn=sn-aigl6nzs%2Csn-5hnekn7z&ms=au%2Conr&mv=u&mvi=2&pl=22&rms=au%2Cau&gcr=gb&siu=1&bui=AfMhrI9Qw7bn6zqGJzzLt4LNGDIJCOyGMa3-e3mvwWsqRoiJZ3aybJMtqgclH6i0GN_n72RO6A&spc=x-caUH24BGp43WkkkqlgCEQRLQtE55yVkWO51w0Y6sWkW83jgxG3nUtjzUNFWTC5mg&vprv=1&svpuc=1&mime=audio%2Fwebm&ns=yHL3mHJfc64bIbzaAcr-1AAQ&rqh=1&gir=yes&clen=96578114&dur=7230.721&lmt=1714731566352897&mt=1735006900&fvip=3&keepalive=yes&fexp=51326932%2C51335594&c=WEB_CREATOR&sefc=1&txp=4502434&n=5DMEU-xeKbjrgQ&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cgcr%2Csiu%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=met%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Crms&lsig=AGluJ3MwRgIhAO96_uT9n1Isy1B4SHjz_We0sW8NR6bSpXu2z391KZvlAiEA52Rhq_vNn_DRsGoGR7LTtZahtaOjGYj5bjESxKtGenQ%3D&sig=AJfQdSswRAIgJf6FfZRJ5dmZecNtmeeQ6NOByaY_6adC9e2NWQ_SzUQCIDwNqY4Uj8HSd3pCFyESsyOnqmXDXvjGXDmzPXsr2HlG"
2024-12-24 11:26:47,559 - DEBUG - [download] Destination: /tmp/1SCN-60-80
2024-12-24 11:26:47,560 - DEBUG - [debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.70 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -ss 60 -t 20 -i 'https://rr2---sn-aigl6nzs.googlevideo.com/videoplayback?expire=1735028803&ei=4xtqZ8mtAdLQp-oPmJuTyQ4&ip=103.104.20.118&id=o-ABIik8CxvKZ7t3bGSea2Lt8xlJhcZsDjg5KXTZGA6De6&itag=251&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&met=1735007203%2C&mh=95&mm=31%2C26&mn=sn-aigl6nzs%2Csn-5hnekn7z&ms=au%2Conr&mv=u&mvi=2&pl=22&rms=au%2Cau&gcr=gb&siu=1&bui=AfMhrI9Qw7bn6zqGJzzLt4LNGDIJCOyGMa3-e3mvwWsqRoiJZ3aybJMtqgclH6i0GN_n72RO6A&spc=x-caUH24BGp43WkkkqlgCEQRLQtE55yVkWO51w0Y6sWkW83jgxG3nUtjzUNFWTC5mg&vprv=1&svpuc=1&mime=audio%2Fwebm&ns=yHL3mHJfc64bIbzaAcr-1AAQ&rqh=1&gir=yes&clen=96578114&dur=7230.721&lmt=1714731566352897&mt=1735006900&fvip=3&keepalive=yes&fexp=51326932%2C51335594&c=WEB_CREATOR&sefc=1&txp=4502434&n=5DMEU-xeKbjrgQ&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cgcr%2Csiu%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=met%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Crms&lsig=AGluJ3MwRgIhAO96_uT9n1Isy1B4SHjz_We0sW8NR6bSpXu2z391KZvlAiEA52Rhq_vNn_DRsGoGR7LTtZahtaOjGYj5bjESxKtGenQ%3D&sig=AJfQdSswRAIgJf6FfZRJ5dmZecNtmeeQ6NOByaY_6adC9e2NWQ_SzUQCIDwNqY4Uj8HSd3pCFyESsyOnqmXDXvjGXDmzPXsr2HlG' -c copy -f webm file:/tmp/1SCN-60-80.part
ffmpeg version N-118059-g90af8e07b0-20241215 Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 14.2.0 (crosstool-NG 1.26.0.120_4d36f27)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-libxml2 --enable-openssl --enable-lzma --enable-fontconfig --enable-libharfbuzz --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --enable-libdvdread --enable-libdvdnav --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libaribcaption --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-libzmq --enable-lv2 --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libvvenc --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-libs='-ldl -lgomp' --extra-ldflags=-pthread --extra-ldexeflags=-pie --cc=x86_64-ffbuild-linux-gnu-gcc --cxx=x86_64-ffbuild-linux-gnu-g++ --ar=x86_64-ffbuild-linux-gnu-gcc-ar --ranlib=x86_64-ffbuild-linux-gnu-gcc-ranlib --nm=x86_64-ffbuild-linux-gnu-gcc-nm --extra-version=20241215
  libavutil      59. 50.100 / 59. 50.100
  libavcodec     61. 26.100 / 61. 26.100
  libavformat    61.  9.100 / 61.  9.100
  libavdevice    61.  4.100 / 61.  4.100
  libavfilter    10.  6.101 / 10.  6.101
  libswscale      8. 12.100 /  8. 12.100
  libswresample   5.  4.100 /  5.  4.100
  libpostproc    58.  4.100 / 58.  4.100
[tcp @ 0x556032aaa580] Starting connection attempt to 116.202.83.149 port 8010
[tcp @ 0x556032aaa580] Successfully connected to 116.202.83.149 port 8010
[in#0 @ 0x556032aa2400] Error opening input: End of file
Error opening input file https://rr2---sn-aigl6nzs.googlevideo.com/videoplayback?expire=1735028803&ei=4xtqZ8mtAdLQp-oPmJuTyQ4&ip=103.104.20.118&id=o-ABIik8CxvKZ7t3bGSea2Lt8xlJhcZsDjg5KXTZGA6De6&itag=251&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&met=1735007203%2C&mh=95&mm=31%2C26&mn=sn-aigl6nzs%2Csn-5hnekn7z&ms=au%2Conr&mv=u&mvi=2&pl=22&rms=au%2Cau&gcr=gb&siu=1&bui=AfMhrI9Qw7bn6zqGJzzLt4LNGDIJCOyGMa3-e3mvwWsqRoiJZ3aybJMtqgclH6i0GN_n72RO6A&spc=x-caUH24BGp43WkkkqlgCEQRLQtE55yVkWO51w0Y6sWkW83jgxG3nUtjzUNFWTC5mg&vprv=1&svpuc=1&mime=audio%2Fwebm&ns=yHL3mHJfc64bIbzaAcr-1AAQ&rqh=1&gir=yes&clen=96578114&dur=7230.721&lmt=1714731566352897&mt=1735006900&fvip=3&keepalive=yes&fexp=51326932%2C51335594&c=WEB_CREATOR&sefc=1&txp=4502434&n=5DMEU-xeKbjrgQ&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cgcr%2Csiu%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=met%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Crms&lsig=AGluJ3MwRgIhAO96_uT9n1Isy1B4SHjz_We0sW8NR6bSpXu2z391KZvlAiEA52Rhq_vNn_DRsGoGR7LTtZahtaOjGYj5bjESxKtGenQ%3D&sig=AJfQdSswRAIgJf6FfZRJ5dmZecNtmeeQ6NOByaY_6adC9e2NWQ_SzUQCIDwNqY4Uj8HSd3pCFyESsyOnqmXDXvjGXDmzPXsr2HlG.


Without download_ranges
```sh
2024-12-24 11:32:43,138 - DEBUG - [youtube] bk6Xst6euQk: Downloading mweb player API JSON
director: Handler preferences for this request: urllib=0
director: Checking if "urllib" supports this request.
director: Sending request via "urllib"
send: b'CONNECT www.youtube.com:443 HTTP/1.0\r\nProxy-Authorization: Basic redacted==\r\n\r\n'
send: b'POST /youtubei/v1/player?prettyPrint=false HTTP/1.1\r\nContent-Length: 482\r\nHost: www.youtube.com\r\nCookie: APISID=redacted; HSID=redacted; LOGIN_INFO=redacted-redacted:redacted; PREF=f4=4000000&tz=UTC&hl=en; SAPISID=redacted-5G6zP_b/readcted; SID=g.redacted-redacted; SIDCC=redacted-redacted-aou-redacted; SSID=redacted-B; VISITOR_INFO1_LIVE=redacted; VISITOR_PRIVACY_METADATA=redacted%3D%3D; YSC=redacted; __Secure-1PAPISID=redacted-5G6zP_b/redacted; __Secure-1PSID=g.redacted-redacted-redacted; __Secure-1PSIDCC=redacted-re--T6Qhg; __Secure-1PSIDTS=sidts-redacted; __Secure-3PAPISID=nGVARSUf-5G6zP_b/redacted; __Secure-3PSID=g.redacted-redacted-redacted; __Secure-3PSIDCC=redacted-uT9-RF9c6g; __Secure-3PSIDTS=sidts-redacted\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 16_7_10 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1,gzip(gfe)\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-us,en;q=0.5\r\nSec-Fetch-Mode: navigate\r\nContent-Type: application/json\r\nX-Youtube-Client-Name: 2\r\nX-Youtube-Client-Version: 2.20241202.07.00\r\nOrigin: https://www.youtube.com\r\nAuthorization: SAPISIDHASH redacted\r\nX-Origin: https://www.youtube.com\r\nX-Goog-Visitor-Id: redacted%3D%3D\r\nX-Goog-Authuser: 0\r\nAccept-Encoding: gzip, deflate\r\nConnection: close\r\n\r\n'
send: b'{"context": {"client": {"clientName": "MWEB", "clientVersion": "2.20241202.07.00", "userAgent": "Mozilla/5.0 (iPad; CPU OS 16_7_10 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1,gzip(gfe)", "hl": "en", "timeZone": "UTC", "utcOffsetMinutes": 0}}, "videoId": "bk6Xst6euQk", "playbackContext": {"contentPlaybackContext": {"html5Preference": "HTML5_PREF_WANTS", "signatureTimestamp": 20073}}, "contentCheckOk": true, "racyCheckOk": true}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json; charset=UTF-8
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Content-Encoding: gzip
header: Date: Tue, 24 Dec 2024 02:32:44 GMT
header: Server: scaffolding on HTTPServer2
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Set-Cookie: SIDCC=redacted-redacted-jSJ9hA; expires=Wed, 24-Dec-2025 02:32:44 GMT; path=/; domain=.youtube.com; priority=high
header: Set-Cookie: __Secure-1PSIDCC=redacted-redacted; expires=Wed, 24-Dec-2025 02:32:44 GMT; path=/; domain=.youtube.com; Secure; HttpOnly; priority=high
header: Set-Cookie: __Secure-redacted=redacted-redacted-iH8ZU4uY-redacted; expires=Wed, 24-Dec-2025 02:32:44 GMT; path=/; domain=.youtube.com; Secure; HttpOnly; priority=high; SameSite=none
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
header: Expires: Tue, 24 Dec 2024 02:32:44 GMT
header: Cache-Control: private
header: Connection: close
header: Transfer-Encoding: chunked
2024-12-24 11:32:45,306 - DEBUG - [debug] [youtube] Extracting signature function js_03dbdfab_103
2024-12-24 11:32:45,306 - DEBUG - [debug] Loading youtube-sigfuncs.js_03dbdfab_103 from cache
2024-12-24 11:32:45,307 - DEBUG - [debug] Loading youtube-nsig.03dbdfab from cache
2024-12-24 11:32:46,104 - DEBUG - [debug] [youtube] Decrypted nsig ouDfWwbF371WBlbGP => MdkONW-vUrWTnw
2024-12-24 11:32:46,105 - DEBUG - [debug] [youtube] Extracting signature function js_03dbdfab_107
2024-12-24 11:32:46,106 - DEBUG - [debug] Loading youtube-sigfuncs.js_03dbdfab_107 from cache
2024-12-24 11:32:46,106 - DEBUG - [debug] Loading youtube-nsig.03dbdfab from cache
2024-12-24 11:32:46,888 - DEBUG - [debug] [youtube] Decrypted nsig XhrfawzxhfJ5IrbX7 => uwPg-0pi4vmUKg
2024-12-24 11:32:46,908 - DEBUG - [debug] Loading youtube-nsig.03dbdfab from cache
2024-12-24 11:32:47,693 - DEBUG - [debug] [youtube] Decrypted nsig lrTSxP2al5Uq3DfsZ => SxtX5zuINemc0g
2024-12-24 11:32:47,745 - DEBUG - [debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec, channels, acodec, lang, proto
2024-12-24 11:32:47,745 - DEBUG - [debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec, channels, acodec, lang, proto, size, br, asr, vext, aext, hasaud, id
2024-12-24 11:32:47,774 - DEBUG - [info] bk6Xst6euQk: Downloading 1 format(s): 251
2024-12-24 11:32:47,796 - DEBUG - [debug] Invoking http downloader on "https://rr3---sn-p5qlsnd6.googlevideo.com/videoplayback?expire=1735029162&ei=Sh1qZ7K2K56LkucP9rS8iQU&ip=45.196.58.137&id=o-APtpTF0Eshbmg0QFf-e320RjmtLvCO0QIu_ITKnFoVw8&itag=251&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&met=1735007562%2C&mh=95&mm=31%2C29&mn=sn-p5qlsnd6%2Csn-p5qddn7r&ms=au%2Crdu&mv=m&mvi=3&pl=26&rms=au%2Cau&gcr=us&initcwndbps=4210000&siu=1&bui=AfMhrI9qn21ZSsWpp4OdQMu4huwBGqdsBf5-ykFm8ohIWsaenSEIi83c2ntaWryl_IwYDQbUgA&spc=x-caUMiwCoecflvAWFj2BLQhDI0cxJsKlj-GyjXCvZrLJ4f7c7-JZzoGuPXFhfHRVA&vprv=1&svpuc=1&mime=audio%2Fwebm&ns=kXqZ5C4FAknA9NnswMDKNhMQ&rqh=1&gir=yes&clen=96578114&dur=7230.721&lmt=1714731566352897&mt=1735007109&fvip=3&keepalive=yes&fexp=51326932%2C51335594&c=WEB_CREATOR&sefc=1&txp=4502434&n=uwPg-0pi4vmUKg&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cgcr%2Csiu%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=met%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Crms%2Cinitcwndbps&lsig=AGluJ3MwRQIgWPzYDFGKq5VgRstFOTEPB0Z0fyC64dFUM8ad0DZKntYCIQCN68uPPwbkCW5ZVosg_9Ikm-nMVdm0pBtO9EVpbEFBSw%3D%3D&sig=AJfQdSswRQIgaEnjIhZstzCepZRTXJ2jG9ylFxZL28Vkrrhh8TOeZ1cCIQDFrgmX1MimHuS1fPrUACtzI0Q_x1CL_lFTkGQ5-9Clow%3D%3D"
director: Handler preferences for this request: urllib=0
director: Checking if "urllib" supports this request.
director: Sending request via "urllib"
send: b'CONNECT rr3---sn-p5qlsnd6.googlevideo.com:443 HTTP/1.0\r\nProxy-Authorization: Basic dXNlci1maW5kdHJhY2tsaXN0X3BFRkR6OkV4YW1wbGVfUGFzc3dvcmQxfg==\r\n\r\n'
send: b'GET /videoplayback?expire=1735029162&ei=Sh1qZ7K2K56LkucP9rS8iQU&ip=45.196.58.137&id=o-APtpTF0Eshbmg0QFf-e320RjmtLvCO0QIu_ITKnFoVw8&itag=251&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&met=1735007562%2C&mh=95&mm=31%2C29&mn=sn-p5qlsnd6%2Csn-p5qddn7r&ms=au%2Crdu&mv=m&mvi=3&pl=26&rms=au%2Cau&gcr=us&initcwndbps=4210000&siu=1&bui=AfMhrI9qn21ZSsWpp4OdQMu4huwBGqdsBf5-ykFm8ohIWsaenSEIi83c2ntaWryl_IwYDQbUgA&spc=x-caUMiwCoecflvAWFj2BLQhDI0cxJsKlj-GyjXCvZrLJ4f7c7-JZzoGuPXFhfHRVA&vprv=1&svpuc=1&mime=audio%2Fwebm&ns=kXqZ5C4FAknA9NnswMDKNhMQ&rqh=1&gir=yes&clen=96578114&dur=7230.721&lmt=1714731566352897&mt=1735007109&fvip=3&keepalive=yes&fexp=51326932%2C51335594&c=WEB_CREATOR&sefc=1&txp=4502434&n=uwPg-0pi4vmUKg&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cgcr%2Csiu%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=met%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Crms%2Cinitcwndbps&lsig=AGluJ3MwRQIgWPzYDFGKq5VgRstFOTEPB0Z0fyC64dFUM8ad0DZKntYCIQCN68uPPwbkCW5ZVosg_9Ikm-nMVdm0pBtO9EVpbEFBSw%3D%3D&sig=AJfQdSswRQIgaEnjIhZstzCepZRTXJ2jG9ylFxZL28Vkrrhh8TOeZ1cCIQDFrgmX1MimHuS1fPrUACtzI0Q_x1CL_lFTkGQ5-9Clow%3D%3D HTTP/1.1\r\nHost: rr3---sn-p5qlsnd6.googlevideo.com\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-us,en;q=0.5\r\nSec-Fetch-Mode: navigate\r\nAccept-Encoding: identity\r\nRange: bytes=0-10195920\r\nConnection: close\r\n\r\n'
reply: 'HTTP/1.1 206 Partial Content\r\n'
header: Last-Modified: Fri, 03 May 2024 10:19:26 GMT
header: Content-Type: audio/webm
header: Date: Tue, 24 Dec 2024 02:32:48 GMT
header: Expires: Tue, 24 Dec 2024 02:32:48 GMT
header: Cache-Control: private, max-age=21294
header: Content-Range: bytes 0-10195920/96578114
header: Accept-Ranges: bytes
header: Content-Length: 10195921
header: Connection: keep-alive
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,quic=":443"; ma=2592000; v="46"
header: Vary: Origin
header: Cross-Origin-Resource-Policy: cross-origin
header: X-Content-Type-Options: nosniff
header: Server: gvs 1.0
2024-12-24 11:32:49,346 - DEBUG - [download] Destination: /tmp/5SOW-60-80
2024-12-24 11:32:49,347 - DEBUG - [download]   0.0% of   92.10MiB at    4.52KiB/s ETA 05:47:50
2024-12-24 11:32:49,348 - DEBUG - [download]   0.0% of   92.10MiB at   13.48KiB/s ETA 01:56:35
2024-12-24 11:32:49,348 - DEBUG - [download]   0.0% of   92.10MiB at   31.38KiB/s ETA 50:05
2024-12-24 11:32:49,349 - DEBUG - [download]   0.0% of   92.10MiB at   67.06KiB/s ETA 23:26
2024-12-24 11:32:49,350 - DEBUG - [download]   0.0% of   92.10MiB at  138.21KiB/s ETA 11:22
2024-12-24 11:32:49,568 - DEBUG - [download]   0.1% of   92.10MiB at  142.35KiB/s ETA 11:02
2024-12-24 11:32:49,790 - DEBUG - [download]   0.1% of   92.10MiB at  191.06KiB/s ETA 08:12

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

Also note that you’re not seeing ffmpeg’s HTTP traffic; you are only seeing the command line that yt-dlp is invoking ffmpeg with. ffmpeg adds its own HTTP headers on top of what yt-dlp passes to ffmpeg