-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Unable to decode n-parameter: download likely to be throttled #31509
Comments
Encountered the same issue also. Actually, yesterday it was working fine. Today, downloading YouTube/Facebook videos has issues for some reason. Reddit still works fine though. |
Looks like they already have idea of the issue/fix as per the recent discussion here: #30976 (comment). |
Re-installed from main now, and the time it takes to download the info of the video streams is x30 💢 |
Nice, so the fix indeed worked. Thanks! |
If nothing more changes, it will work (slower) for single threaded downloads but for me that I use it in a multi threaded app, its unusable.. 😞 |
Nothing significant has changed in the mini JS interpreter. Perhaps the n-sig code being sent by YT is now more demanding. |
Yes, maybe it is this. |
Do you use the same Python 3 version for both ? |
Nope. The reason I have to use yt-dl and not yt-dlp, is that my app uses Python 2. |
An order of magnitude difference, let alone x30, is quite surprising. A simple test of yt-dl git master against yt-dlp 2022.11.22 (ie not fixed) has this: Interpreter test (
In the yt-dlp case there are slightly fewer test cases. Signature test (
In the yt-dlp case there is one fewer test case (27 vs 28). Probably my Python3.3 and lower shim for |
I'm testing the speed with the multi-threading script from #30641 in a AMD Ryzen 7 5700G 3.8GHz system using Python 2.7 and 3.8. Edit: using yt-dlp 2023.1.6 |
Py3 is mostly way faster anyway, especially as of 3.11, and ytdlp upgraded to many faster replacements, so 7 vs 60 makes a lotta sense. |
The answer to which version of Python is the fastest, is not that simple. |
BTW, I'm using Py3.11, the fix removed the throttling. Interestingly, the
|
As I wrote already, my testing is done with the #30641 script.. |
The reason yt-dlp appears faster was already discussed #30641 (comment) |
@pukkandan Yes, OK. but the problem remains. |
Fix for yt-dlp/yt_dlp#6131 Closes ytdl-org#31509
I still get a similar error with the current GitHub version (fa7f0ef):
|
You're running the old code somehow. There's no OpenSSL diagnostic on the Make sure your pip command includes I always find it a weird journey of discovery trying to get stuff running on macOS, worrying that some funky Apple security stuff will block my progress; logs may show what's happening. What should happen: $ python -m youtube_dl -v -F HG9kCMU24x8
[debug] System config: [u'--prefer-ffmpeg']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-F', u'HG9kCMU24x8']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Git HEAD: 58fc5bde4
[debug] Python 2.7.18 (CPython i686 32bit) - Linux-4.4.0-210-generic-i686-with-Ubuntu-16.04-xenial - OpenSSL 1.1.1t 7 Feb 2023 - glibc 2.15
[debug] exe versions: avconv 4.3, avprobe 4.3, ffmpeg 4.3, ffprobe 4.3
[debug] Proxy map: {}
[youtube] HG9kCMU24x8: Downloading webpage
[youtube] HG9kCMU24x8: Downloading player b7910ca8
[debug] [youtube] Decrypted nsig AxT9rrznZbDk4B3 => w_CGHX-e5hj9lQ
[debug] [youtube] Decrypted nsig gCqFS-lmLWRjUIE => oopF5idGnyCQzQ
[info] Available formats for HG9kCMU24x8:
format code extension resolution note
251 webm audio only tiny 85k , webm_dash container, opus (48000Hz), 299.83MiB
140 m4a audio only tiny 129k , m4a_dash container, mp4a.40.2 (44100Hz), 456.37MiB
160 mp4 256x144 144p 53k , mp4_dash container, avc1.4d400c, 30fps, video only, 187.83MiB
243 webm 640x360 360p 185k , webm_dash container, vp9, 30fps, video only, 653.54MiB
134 mp4 640x360 360p 220k , mp4_dash container, avc1.4d401e, 30fps, video only, 777.63MiB
136 mp4 1280x720 720p 781k , mp4_dash container, avc1.64001f, 30fps, video only, 2.69GiB
18 mp4 640x360 360p 315k , avc1.42001E, 30fps, mp4a.40.2 (44100Hz), 1.08GiB
22 mp4 1280x720 720p 910k , avc1.64001F, 30fps, mp4a.40.2 (44100Hz) (best)
$ |
D'oh, I have two versions of Python installed, 3.10 and 3.11. After uninstalling the old version, everything works. Thanks for your help! |
|
Just tried reinstalling from the instructions here: #30871 (comment) and I'm running into this issue. I had run into this issue a couple of months ago and doing this fixed it but now the problem is back and installing from the master branch here doesn't seem to solve it for me. |
Best to review the instructions in #31530 rather than issue necromancy (yes, @jenskutilek too!). Also, |
Oh nooooo, this bug is back from the dead. My Youtube-DL worked just fine until today... Now I'm getting: WARNING: [youtube] Unable to decode n-parameter |
Checklist
Verbose log
Description
I was trying to download a simple short you tube video, nothing fancy. The tool issued the above output and requested that I submit a bug report, and as the good netizen I am, I have just submitted.
Regards
The text was updated successfully, but these errors were encountered: