Content Type
Profiles
Forums
Events
Everything posted by nicolaasjan
-
At the moment my youtube-dl fork still works with YouTube.
-
For my Py3.9 build on XP no version of PyInstaller after 5.13.2 works. So, I do: python -m pip install -U "setuptools>=71.0.2,<81" pip wheel pip install -U pyinstaller==5.13.2 -r requirements.txt Where `requirements.txt` is: mutagen pycryptodomex brotli; implementation_name=='cpython' certifi requests>=2.32.2,<3 urllib3>=1.26.17,<3 websockets>=13.0 O, that is the debug (--verbose) mode of yt-dlp itself.
-
Can someone please test my yt-dlp Python 3.11 build, to see if you face the same errors when trying to download a video? [debug] Command-line config: ['-v', 'https://www.youtube.com/watch?v=Ef9QnZVpVd8'] [debug] User config "C:\Documents and Settings\Nico\Application Data\yt-dlp\config.txt": ['--rm-cache-dir', '--proxy', '', '--console-title', '--force-ipv4', '--add-metadata', '--embed-thumbnail', '--convert-thumbnails', 'jpg', '--ppa', 'ffmpeg:-metadata synopsis=""', '-o', '~/Bureaublad/%(title)s.%(ext)s', '-f', 'bestvideo[height<=1080][ext=mp4][vcodec^=avc]+bestaudio[ext=m4a]/best[ext=mp4]/best', '--sponsorblock-remove', 'all'] [debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out cp1252 (No VT), error cp1252 (No VT), screen cp1252 (No VT) [debug] yt-dlp version nicolaasjan/yt-dlp@2025.07.27.085012 (win_x86_exe) [debug] Python 3.11.9 (CPython x86 32bit) - Windows-XP-5.1.2600-SP3 (OpenSSL 3.3.1 4 Jun 2024) [debug] exe versions: ffmpeg N-116828-g6aafe61-Reino (fdk,setts), ffprobe N-116828-g6aafe61-Reino, phantomjs 1.9.8 [debug] Optional libraries: Cryptodome-3.23.0, brotli-1.1.0, certifi-2025.07.14, mutagen-1.47.0, requests-2.32.3, sqlite3-3.45.3, urllib3-2.5.0, websockets-15.0.1 [debug] Proxy map: {'all': '__noproxy__'} [debug] Request Handlers: urllib, requests, websockets [debug] Plugin directories: none [debug] Loaded 1856 extractors Removing cache dir C:\Documents and Settings\Nico/.cache\yt-dlp .. [debug] [youtube] [pot] PO Token Providers: none [debug] [youtube] [pot] PO Token Cache Providers: memory [debug] [youtube] [pot] PO Token Cache Spec Providers: webpo [youtube] Extracting URL: https://www.youtube.com/watch?v=Ef9QnZVpVd8 [youtube] Ef9QnZVpVd8: Downloading webpage WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x0378AF30>: Failed to establish a new connection: [Errno 0] Error. Retrying (1/3)... [youtube] Ef9QnZVpVd8: Downloading webpage WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x032FD1B0>: Failed to establish a new connection: [Errno 0] Error. Retrying (2/3)... [youtube] Ef9QnZVpVd8: Downloading webpage WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x032FB730>: Failed to establish a new connection: [Errno 0] Error. Retrying (3/3)... [youtube] Ef9QnZVpVd8: Downloading webpage WARNING: [youtube] Unable to download webpage: <urllib3.connection.HTTPSConnection object at 0x0378A110>: Failed to establish a new connection: [Errno 0] Error (caused by TransportError('<urllib3.connection.HTTPSConnection object at 0x0378A110>: Failed to establish a new connection: [Errno 0] Error')). Giving up after 3 retries [youtube] Ef9QnZVpVd8: Downloading initial data API JSON WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x032F9AD0>: Failed to establish a new connection: [Errno 0] Error. Retrying (1/3)... [youtube] Ef9QnZVpVd8: Downloading initial data API JSON WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x032F6FB0>: Failed to establish a new connection: [Errno 0] Error. Retrying (2/3)... [youtube] Ef9QnZVpVd8: Downloading initial data API JSON WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x032FBE90>: Failed to establish a new connection: [Errno 0] Error. Retrying (3/3)... [youtube] Ef9QnZVpVd8: Downloading initial data API JSON ERROR: [youtube] Ef9QnZVpVd8: Unable to download API page: <urllib3.connection.HTTPSConnection object at 0x032F9910>: Failed to establish a new connection: [Errno 0] Error (caused by TransportError('<urllib3.connection.HTTPSConnection object at 0x032F9910>: Failed to establish a new connection: [Errno 0] Error')) File "yt_dlp\extractor\common.py", line 761, in extract File "yt_dlp\extractor\youtube\_video.py", line 3814, in _real_extract File "yt_dlp\extractor\youtube\_video.py", line 3794, in _initial_extract File "yt_dlp\extractor\youtube\_video.py", line 3772, in _download_initial_data File "yt_dlp\extractor\youtube\_base.py", line 1213, in _extract_response File "yt_dlp\utils\_utils.py", line 5248, in __iter__ File "yt_dlp\extractor\common.py", line 4059, in _error_or_warning File "yt_dlp\utils\_utils.py", line 5256, in report_retry File "yt_dlp\extractor\youtube\_base.py", line 1203, in _extract_response File "yt_dlp\extractor\youtube\_base.py", line 791, in _call_api File "yt_dlp\extractor\common.py", line 1149, in download_content File "yt_dlp\extractor\common.py", line 1107, in download_handle File "yt_dlp\extractor\common.py", line 972, in _download_webpage_handle File "yt_dlp\extractor\youtube\_base.py", line 769, in _request_webpage File "yt_dlp\extractor\common.py", line 921, in _request_webpage File "urllib3\connection.py", line 198, in _new_conn File "urllib3\util\connection.py", line 60, in create_connection File "socket.py", line 962, in getaddrinfo OSError: [Errno 0] Error The above exception was the direct cause of the following exception: Traceback (most recent call last): File "yt_dlp\networking\_requests.py", line 338, in _send File "requests\sessions.py", line 589, in request File "requests\sessions.py", line 703, in send File "requests\adapters.py", line 667, in send File "urllib3\connectionpool.py", line 841, in urlopen File "urllib3\util\retry.py", line 449, in increment File "urllib3\util\util.py", line 39, in reraise File "urllib3\connectionpool.py", line 787, in urlopen File "urllib3\connectionpool.py", line 488, in _make_request File "urllib3\connectionpool.py", line 464, in _make_request File "urllib3\connectionpool.py", line 1093, in _validate_conn File "urllib3\connection.py", line 753, in connect File "urllib3\connection.py", line 213, in _new_conn urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x032F9910>: Failed to establish a new connection: [Errno 0] Error The above exception was the direct cause of the following exception: Traceback (most recent call last): File "yt_dlp\extractor\common.py", line 908, in _request_webpage File "yt_dlp\YoutubeDL.py", line 4236, in urlopen File "yt_dlp\networking\common.py", line 117, in send File "yt_dlp\networking\_helper.py", line 194, in wrapper File "yt_dlp\networking\common.py", line 359, in send File "yt_dlp\networking\_requests.py", line 366, in _send yt_dlp.networking.exceptions.TransportError: <urllib3.connection.HTTPSConnection object at 0x032F9910>: Failed to establish a new connection: [Errno 0] Error
-
A long time ago I asked user @Maroc (now gone...) on the My Digital Life Forums about his Python 3.11 Embed build for XP. As I mentioned before, I can't get it working on XP. See also our conversation later in that thread. I managed to build yt-dlp with it, but when using I get errors like: WARNING: [youtube] Unable to download API page: <urllib3.connection.HTTPSConnection object at 0x03B29A70>: Failed to establish a new connection: [Errno 0] Error (caused by TransportError('<urllib3.connection.HTTPSConnection object at 0x03B29A70>: Failed to establish a new connection: [Errno 0] Error'))
-
I was thinking about that, but it may not be easy, I guess? When the time comes, maybe someone here will help me with it (I'm not a Python coder). Furthermore, newer changes applied to the various extractors (especially for YouTube), using code that is incompatible with Python <3.10 will not work anyway. From Issue #13858:
-
Bad news ☹️ : yt-dlp starts preparations to remove Python 3.9 support (October 2025): https://github.com/yt-dlp/yt-dlp/pull/13861 https://github.com/yt-dlp/yt-dlp/issues/13858
-
@j7n When you don't want the webm, you can tell yt-dlp to skip it: `bestaudio[language=en][ext!=webm]`
-
If you specifically want opus, yt-dlp can do that for you? 🤔 Try this: yt-dlp -x -f bestaudio[ext=webm] --embed-metadata --embed-thumbnail https://www.youtube.com/watch?v=PD-MdiUm1_Y ( `-x` will extract the opus audio)
-
I think I misunderstood. Can you play them when using `--remux-video mkv` ?
-
Audio only files? You can do it with a batch file from within the directory where you have the webm audio files (save as e.g. webm2mka.bat): @echo off for %%i in (*.webm) do ( ffmpeg -i "%%i" -c:a copy "%%~ni.mka" ) echo Conversion complete! pause Or directly while downloading with yt-dlp (see Post-Processing Options): yt-dlp -f 251 --remux-video mka https://www.youtube.com/watch?v=PD-MdiUm1_Y Removing cache dir C:\Documents and Settings\Nico/.cache\yt-dlp ... [youtube] Extracting URL: https://www.youtube.com/watch?v=PD-MdiUm1_Y [youtube] PD-MdiUm1_Y: Downloading webpage [youtube] PD-MdiUm1_Y: Downloading tv client config [youtube] PD-MdiUm1_Y: Downloading player a1f2424c-main [youtube] PD-MdiUm1_Y: Downloading tv player API JSON [youtube] PD-MdiUm1_Y: Downloading ios player API JSON [youtube] PD-MdiUm1_Y: Downloading m3u8 information [SponsorBlock] Fetching SponsorBlock segments [SponsorBlock] No matching segments were found in the SponsorBlock database [info] PD-MdiUm1_Y: Downloading 1 format(s): 251 [info] Downloading video thumbnail 41 ... [info] Writing video thumbnail 41 to: C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].webp [ThumbnailsConvertor] Converting thumbnail "C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].webp" to jpg Deleting original file C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].webp (pass -k to keep) [download] Destination: C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].webm [download] 0.0% of 8.09MiB at Unknown B/s ETA Unknown[download] 0.0% of 8.09MiB at Unknown B/s ETA Unknown[download] 0.1% of 8.09MiB at Unknown B/s ETA Unknown[download] 0.2% of 8.09MiB at Unknown B/s ETA Unknown[download] 0.4% of 8.09MiB at Unknown B/s ETA Unknown[download] 0.8% of 8.09MiB at 6.14MiB/s ETA 00:01 [download] 1.5% of 8.09MiB at 4.13MiB/s ETA 00:01[download] 3.1% of 8.09MiB at 4.97MiB/s ETA 00:01[download] 6.2% of 8.09MiB at 8.31MiB/s ETA 00:00[download] 12.4% of 8.09MiB at 11.08MiB/s ETA 00:00[download] 24.7% of 8.09MiB at 16.63MiB/s ETA 00:00[download] 49.4% of 8.09MiB at 22.18MiB/s ETA 00:00[download] 98.9% of 8.09MiB at 27.54MiB/s ETA 00:00[download] 100.0% of 8.09MiB at 27.85MiB/s ETA 00:00[download] 100% of 8.09MiB in 00:00:00 at 20.71MiB/s [VideoRemuxer] Remuxing video from webm to mka; Destination: C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].mka Deleting original file C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].webm (pass -k to keep) [ModifyChapters] SponsorBlock information is unavailable [Metadata] Adding metadata to "C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].mka" [EmbedThumbnail] ffmpeg: Adding thumbnail to "C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].mka"
-
Given that the yt-dlp issue tracker will only accept issues accompanied with a verbose log from their own release builds, I'm afraid any issues experienced with my build cannot be discussed there. Also, any issues with my fork will mostly also happen with the upstream build. So, first search their issue tracker to see if someone has experienced something similar. If nothing is found, then perhaps ask right here? Or, like another forum member had done, PM me. He had an issue with some Polish site and I was able to reproduce it with the official yt-dlp build. Then I opened an issue there and it was solved.
-
Done. 😽
-
Yes, I saw that. However, their new code snippet used in that commit didn't play well with Python 3.4.4... Maybe I can implement it like: def random_user_agent(): _USER_AGENT_TPL = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Safari/537.36' _CHROME_VERSIONS = ( '132.0.0.0', '133.0.0.0', '134.0.0.0', '135.0.0.0', '136.0.0.0', '137.0.0.0', '138.0.0.0', ) return _USER_AGENT_TPL % random.choice(_CHROME_VERSIONS) 🤔
-
Hmm... I honestly have no idea. The build hashes for `youtube-dl.exe` in my repo can be seen under Assets. However, in the Nightly repo there are separate SHA2-256SUMS files. Maybe the program looks for these? (wild guess) The executables in my repo aren't built by GitHub Actions, but manually uploaded. I think you shouldn't worry about it to much.
-
I don't know anything about Python either, but I just uploaded the new `update.py` (with only one line changed) into the GitHub web editor and committed.
-
@VistaLover That's because of line 37 in `./youtube_dl/update.py`. UPDATE_URL = 'https://yt-dl.org/update/' For some reason it redirects to: https://github.com/yt-dlp/yt-dlp/update/ ---> 404. In version 2025.06.26 (and previous versions) I had it set to: UPDATE_URL = 'https://ytdl-org.github.io/youtube-dl/update/' (also 404, by the way) My version is not supposed to be updated with `-U`. Do you perhaps have any idea how to change `update.py` for my fork to actually make it work with `-U`? [Edit] I think I managed to fix it. Took `update.py` from youtube-dl Nightly as an example. youtube-dl -vU [debug] System config: [] [debug] User config: ['--console-title', '--rm-cache-dir', '-i', '-o', '/dev/shm/test-ytd/%(title)s.%(ext)s', '-f', 'bestvideo[height<=1080][ext=mp4][vcodec^=avc]+bestaudio[ext=m4a]/best[ext=mp4]/best', '--no-mtime', '--embed-thumbnail', '--force-ipv4'] [debug] Custom config: [] [debug] Command-line args: ['-vU'] [debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8 [debug] youtube-dl version 2025.07.12 [debug] Lazy loading extractors enabled [debug] Single file build [debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-5.15.0-143-generic-x86_64-with-glibc2.35 - OpenSSL 3.0.2 15 Mar 2022 - glibc 2.35 [debug] exe versions: ffmpeg N-120171-g05094c1749-20250705, ffprobe N-120171-g05094c1749-20250705, rtmpdump 2.4 [debug] Proxy map: {} Latest version: 2025.07.12, Current version: 2025.07.12 youtube-dl is up to date (2025.07.12) Removing cache dir /home/nico/.cache/youtube-dl .. I also don't understand why @dirkf still hasn't updated the Installation section in the Readme. It's a complete mess. BTW, I've made a significant change to `./youtube_dl/utils.py`, as I suggested here. Youtube-dl actually works now.
-
My Browser Builds (Part 5)
nicolaasjan replied to roytam1's topic in Browsers working on Older NT-Family OSes
See: https://forum.palemoon.org/viewtopic.php?f=17&t=32478#p263454 -
It's a convoluted mess... See issue #12482. You may need to provide a PO Token. That said, I didn't yet have this warning (I download 1080p avc1/mp4a videos most of the time). Related?
-
Can you try: --extractor-args youtube:lang=en ? [Edit] Ignore that. That is for the title, not for the audio. Maybe first get the formats using `yt-dlp -F URL`. Then choose for example this to get this mr. Beast video dubbed in Russian: yt-dlp -f 136+140-1 https://www.youtube.com/watch?v=yhB3BgJyGl8 Or: yt-dlp -f "bv*+ba[language=ru]" https://www.youtube.com/watch?v=yhB3BgJyGl8
-
My Browser Builds (Part 5)
nicolaasjan replied to roytam1's topic in Browsers working on Older NT-Family OSes
Yes. -
My Browser Builds (Part 5)
nicolaasjan replied to roytam1's topic in Browsers working on Older NT-Family OSes
Is it: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2768 ? -
My Browser Builds (Part 5)
nicolaasjan replied to roytam1's topic in Browsers working on Older NT-Family OSes
Same in New Moon. I don't even get this error window; browser just closes... [Edit] Browser also instantly crashes when trying to open the uBlock Origin dashboard. Reverted to previous New Moon (2025-06-17) and no issues. -
@K4sum1 Could you try again with the new update? An important issue was fixed. I tried in my Windows 7 VM with the following command: yt-dlp --no-config -f "(bestvideo[height<=720]+bestaudio/best[height<=720])[vcodec!*=av01]" -t mkv "https://youtu.be/bCTObNkRGsg" And it gave me an mkv file with opus audio: Algemeen Unique ID : 57964954628617501393979581759164836982 (0x2B9BA4E945544816E3D80FC0D01CEC76) Volledige naam : C:\Users\Nico\I Built a Toilet Paper Slot Machine and It Actually Works! [bCTObNkRGsg].mkv Formaat : Matroska Formaatversie : Version 4 Bestandsgrootte : 5,04 MiB Duur : 2 min 22s Totale bitrate : 297 kb/s Framerate : 30,000 FPS Gebruikt programma : Lavf62.0.102 Gebruikte encoderbibliotheek : Lavf62.0.102 ErrorDetectionType : Per level 1 Video ID : 1 Formaat : VP9 Formaatprofiel : 0 Codec-ID : V_VP9 Duur : 2 min 22s Breedte : 360 pixels Hoogte : 640 pixels Beeldverhouding : 0,562 Frameratemodus : Constant Framerate : 30,000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Taal : Engels Default : Ja Forced : Nee Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Audio ID : 2 Formaat : Opus Codec-ID : A_OPUS Duur : 2 min 22s Kanaal(en) : 2 kanalen Channel layout : L R Samplerate : 48,0 kHz Bit depth : 32 bits Compression mode : Lossy Video vertraging : 7 ms Taal : Engels Default : Ja Forced : Nee
-
My Browser Builds (Part 5)
nicolaasjan replied to roytam1's topic in Browsers working on Older NT-Family OSes
I've always wondered about this as well. In the past I built Pale Moon on Linux a few times on my old Haswell i5 with 16GB Ram and it took about 20 minutes. PS, Supercomputers don't run Windows. -
YouTube under Windows XP - Downloaders, players and browser support
nicolaasjan replied to AstroSkipper's topic in Windows XP
I've confirmed that version 2025.03.28.070132 still gives the right message: Current version: local@2025.03.28 Latest version: stable@2025.03.31 from yt-dlp/yt-dlp ERROR: Do not update the XP build with -U. Instead download from GitHub Releases again when a new version is available. Version 2025.04.01.080324 doesn't give the error message, but instead upgrades to the official x86 build. I must have forgotten to edit `version.py`. UPDATE_HINT = 'Do not update this build with -U. Instead download from my GitHub Releases again when a new version is available.'- 129 replies
-
2
-
- YouTube
- youtube-dl
-
(and 2 more)
Tagged with: