yt-dlp: [youtube] player `fc2a56a5`: nsig extraction failed: Some formats may be missing
EDIT:
This has been fixed in the latest release! (2025.06.09)
Update!
yt-dlp -U
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, the FAQ, and the bugtracker for similar issues including closed ones. DO NOT post duplicates
- 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
the function _extract_n_function_name of extractor/youtube/_video.py not working with the playerId fc2a56a5
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
Sorry I don't have the output on my hand because I don't know how to force using the player, but I use the extract function code and have this output:
https://www.youtube.com/s/player/fc2a56a5/player_ias.vflset/en_US/base.js
Initial search was unable to find nsig function name
Falling back to generic n function search
Unable to extract Initial JS player n function name
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 16 (6 by maintainers)
Commits related to this issue
- [ie/youtube] Rework nsig function name extraction (#13403) Closes #13401 Authored by: Grub4K — committed to nentenpizza/yt-dlp by Grub4K a year ago
This is now fixed in the master branch.
If you’re using one of the single-file yt-dlp executables, run:
Or else see https://github.com/yt-dlp/yt-dlp/wiki/Installation#pip-master
Thanks for the report; I understand about not being able to reproduce this to get a proper verbose log.
If anyone else can reliably reproduce this, please share verbose output.
Looks like a regex fix is needed
Using
--cookies-from-browsermay allow you to frequently reproduce the issue, but it’s not the cause of the issue. This player will eventually be rolled out to everyone, and you’ll start seeing it without cookies. The new player’s javascript code breaks our regex search for the nsig function name.I can reproduce this issue. Here is the output of
--verbose:The issue appears to happen with all videos I tried. Example video used here:
https://www.youtube.com/watch?v=OIuG1bBkfs0Version is latest:I am on linux.
Edit: Using no parameters fixes the issue, I’m going to try adding and removing parameters to figure out the one that breaks it.
For anyone on macOS using Homebrew, this is what I had to do:
brew unlink yt-dlpbrew install --HEAD yt-dlp