yt-dlp: [youtube] nsig extraction failed: Some formats may be missing
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 that yt-dlp is broken on a supported 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
- I’ve read about sharing account credentials and I’m willing to share it if required
Region
No response
Provide a description that is worded well enough to be understood
Since today, randomly with youtube videos I have the error “nsig extraction failed: Some formats may be missing”, if I retype the same command directly after then it works.
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': TruetoYoutubeDLparams instead - Copy the WHOLE output (starting with
[debug] Command-line config) and insert it below
Complete Verbose Output
[debug] Command-line config: ['https://youtu.be/9dcVOmEQzKA', '-f', 'bestaudio', '--proxy', 'http://user:password@localhost:3002/', '-vU']
[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@2024.07.07 from yt-dlp/yt-dlp [b337d2989] (source)
[debug] Lazy loading extractors is disabled
[debug] Git HEAD: 39bc699d2
[debug] Python 3.9.7 (CPython x86_64 64bit) - Linux-5.10.0-30-amd64-x86_64-with-glibc2.31 (OpenSSL 1.1.1w 11 Sep 2023, glibc 2.31)
[debug] exe versions: ffmpeg N-116058-g2902ed25b5-20240630 (setts), ffprobe N-116058-g2902ed25b5-20240630, phantomjs 2.1.1
[debug] Optional libraries: sqlite3-3.34.1
[debug] Proxy map: {'all': 'http://user:password@localhost:3002/'}
[debug] Request Handlers: urllib
[debug] Extractor Plugins: NSigDeno (YoutubeIE)
[debug] Plugin directories: ['/opt/yt-dlp/yt_dlp_plugins']
[debug] Loaded 1834 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2024.07.07 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2024.07.07 from yt-dlp/yt-dlp)
[youtube+NSigDeno] Extracting URL: https://youtu.be/9dcVOmEQzKA
[youtube+NSigDeno] 9dcVOmEQzKA: Downloading webpage
[youtube+NSigDeno] 9dcVOmEQzKA: Downloading ios player API JSON
[debug] [youtube+NSigDeno] Extracting signature function js_b22ef6e7_108
[youtube+NSigDeno] 9dcVOmEQzKA: Downloading player b22ef6e7
[debug] Saving youtube-sigfuncs.js_b22ef6e7_108 to cache
WARNING: [youtube+NSigDeno] 9dcVOmEQzKA: nsig extraction failed: Some formats may be missing
n = 6C0NBSvskQxbZw3d- ; player = https://www.youtube.com/s/player/b22ef6e7/player_ias.vflset/en_US/base.js
[debug] [youtube+NSigDeno] Unable to extract nsig function code (caused by RegexNotFoundError('Unable to extract \x1b[0;94mInitial JS player n function name\x1b[0m; 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')); 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+NSigDeno] 9dcVOmEQzKA: nsig extraction failed: Some formats may be missing
n = b6HcntHGkvBLk_FRf ; player = https://www.youtube.com/s/player/b22ef6e7/player_ias.vflset/en_US/base.js
[debug] [youtube+NSigDeno] Extracting signature function js_b22ef6e7_104
[debug] Saving youtube-sigfuncs.js_b22ef6e7_104 to cache
[youtube+NSigDeno] 9dcVOmEQzKA: 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
[info] 9dcVOmEQzKA: Downloading 1 format(s): 140
[debug] Invoking http downloader on "https://rr5---sn-nx57ynlk.googlevideo.com/videoplayback?expire=1720483049&ei=iSiMZtauKZ_csfIP0_ag2A0&ip=XXX&id=o-AGE-fExIWW0nN6j_2IGCoIdifX2gJQnMiTmvj0wiHKKv&itag=140&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=SV&mm=31%2C26&mn=sn-nx57ynlk%2Csn-n4v7snee&ms=au%2Conr&mv=m&mvi=5&pl=24&gcr=us&initcwndbps=3521250&vprv=1&svpuc=1&mime=audio%2Fmp4&rqh=1&gir=yes&clen=3946516&dur=243.809&lmt=1706142022262992&mt=1720461212&fvip=2&keepalive=yes&c=IOS&txp=4532434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cgcr%2Cvprv%2Csvpuc%2Cmime%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJfQdSswRAIgEKsCMHKjGMjEVO24N2s8LpP_lHITGy6ZDrWCWO471boCIEfPoyBsgxm0Re65OENpT7If1SZj5l9_6cBXFtX4sVj4&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHlkHjAwRgIhALYSL1X79BsW1iKNdPR5-jsOyJkFEH5uFGNN6hrh_HQxAiEAuVAo4Szd5JQkvusy7FUFlKO5R86YpYgZfqrtYNt4FNo%3D"
[download] Destination: Eminem - Just Lose It (Official Music Video) [9dcVOmEQzKA].m4a
[download] 100% of 3.76MiB in 00:00:01 at 2.51MiB/s
[FixupM4a] Correcting container of "Eminem - Just Lose It (Official Music Video) [9dcVOmEQzKA].m4a"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:Eminem - Just Lose It (Official Music Video) [9dcVOmEQzKA].m4a' -map 0 -dn -ignore_unknown -c copy -f mp4 -movflags +faststart 'file:Eminem - Just Lose It (Official Music Video) [9dcVOmEQzKA].temp.m4a'
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 28 (7 by maintainers)
Commits related to this issue
- [ie/youtube] Fix JS `n` function name extraction (#10390) Closes #10391 Authored by: bashonly, seproDev Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com> — committed to bashonly/yt-dlp by bashonly 2 years ago
- [ie/youtube] Fix JS `n` function name extraction (#10390) Closes #10391 Authored by: bashonly, seproDev Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com> — committed to bashonly/yt-dlp by bashonly 2 years ago
- [ie/youtube] Fix JS `n` function name extraction (#10390) Fixes nsig decoding for player b22ef6e7 Closes #10391 Authored by: bashonly, seproDev Co-authored-by: sepro <4618135+seproDev@users.no... — committed to wangshaojie1995/yt-dlp by bashonly 2 years ago
- [ie/youtube] Remove `n` function extraction fallback Closes #10391 Authored by: pukkandan, seproDev Co-Authored-By: pukkandan <pukkandan.ytdlp@gmail.com> — committed to seproDev/yt-dlp by seproDev 2 years ago
- [ie/youtube] Remove broken `n` function extraction fallback (#10396) Closes #10391 Authored by: pukkandan, seproDev Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com> — committed to yt-dlp/yt-dlp by seproDev 2 years ago
It is fixed in nightly already
That seems to have fixed the problem, thanks 😃
Player
3400486cwas fixed by 713b4cd18f00556771af8cfdd9cea6cc1a09e948(just adding this comment for proper tracking)
@xpalidotious version 2024.07.08 cached some bad data, which the new version keeps loading from cache and failing with. This was fixed in 04e17ba20a139f1b3e30ec4bafa3fba26888f0b3 . Update to nightly by running
yt-dlp --update-to nightly; it will invalidate the bad cache data.Thanks for your help! We were able to replicate. New release soon.