Jump to content

Who here has a Youtube-DL compile for WinXP?


j7n

Recommended Posts

This program is more valuable now that YouTube has begun a fight against ad-blockers in the web browser. Advertisements, on top of the overhead of the browser, lead to very poor experience. A method of disabling YTDL is likely in the works too because we can buypass the whole site by loading a video through search results.

Link to comment
Share on other sites


4 hours ago, j7n said:

This program is more valuable now that YouTube has begun a fight against ad-blockers in the web browser.

Yes, you can follow the developments here, with instructions.

The Legacy uBlock Origin for e.g. the New Moon browser does not have the "Quick fixes" list, so you'll have add it yourself to "Custom".

This is the address:

https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/quick-fixes.txt

Since YouTube changes code very often, be sure to update the filter regularly.

[Edit]

I'm not sure these rules are compatible with the Legacy uBO...

I don't see them in the logger.

Edited by nicolaasjan
Link to comment
Share on other sites

From now on I will provide yt-dlp built with Python 3.9. :)

(see comment 1254119)

[debug] Command-line config: ['-v', '--ignore-config']
[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 nightly@2023.10.23 [a40e0b37d] (win_x86_exe)
[debug] Python 3.9.13 (CPython x86 32bit) - Windows-XP-5.1.2600-SP3 (OpenSSL 3.1.0-dev )
[debug] exe versions: ffmpeg N-111893-gbef151d-Reino (setts), ffprobe N-111893-gbef151d-Reino
[debug] Optional libraries: Cryptodome-3.19.0, brotli-1.1.0, certifi-2023.07.22, mutagen-1.47.0, requests-2.31.0, sqlite3-3.37.2, urllib3-2.0.6, websockets-11.0.3
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests
[debug] Loaded 1890 extractors

 

Link to comment
Share on other sites

  • 2 weeks later...

A minor thing they should improve.

When downloading a HTTP Live Stream from internet radio, the file is given an MP4 extension, when it is in Transport Stream format.

Link to comment
Share on other sites

  • 2 months later...

FYI:

@Reino updated his FFmpeg version for XP. :)

Quote

Another round of binaries. Yes, I've still managed to compile some! devil.gif

I'm afraid Gianluigi won't be updating his repo anymore, seeing his latest commit is from a year ago. So unless there's someone who can help me with '0003-load-shared-libfdk-aac-library-dynamically.patch', my builds will be without libfdk-aac, because sadly I still can't code in C/C++.

I've managed to add support for JPEG XL (libjxl). It took me quite some time and a lot of trial and error, but it works.

The cryptography-library MbedTLS can't be updated anymore. I found out the hard way that v3.5.0 (and v2.28.5) now requires Python 3.8. Next time I'll have a look at whether LibTLS (part of LibreSSL) might be substitute.

Download here.

Link to comment
Share on other sites

  • 3 weeks later...

A post was lost. It basically said that in order to download the best combination of video and audio, you need to get back to the previous to last version of ffmpeg by @reino, advertised in the signature by @nicolaasjan.. The latest ffmpeg build makes the system contend ffmpeg is not installed, so 3 or 4 of the best versions are downloaded, without joining them (generally in a matroska file). 

 

Link to comment
Share on other sites

15 hours ago, dmiranda said:

A post was lost. It basically said that in order to download the best combination of video and audio, you need to get back to the previous to last version of ffmpeg by @reino, advertised in the signature by @nicolaasjan.. The latest ffmpeg build makes the system contend ffmpeg is not installed, so 3 or 4 of the best versions are downloaded, without joining them (generally in a matroska file). 

 

Here, video (from YouTube) downloads the separate audio and video and does combine them to one file with the latest FFmpeg from @Reino, though my hardware can't handle the higher resolutions with VP9 codec. :(

So, I always download mp4 1080p with avc codec (my screen isn't larger than that anyway). :)

Edited by nicolaasjan
Link to comment
Share on other sites

  • 1 month later...

right youtube unlike in the past much look like a commercial tv channel 

the idea however was different it was a plattform for users that tube (you) - tube 

it was a challenger against exactly this 

 

there where no ad´s, there where no odd filters 

 

i remember the makers had a such discussion about this in the past and denied to "connection" to the common others

but slowly it more and more got into that direction 

 

the same happens to google search at the moment, it find nothing anymore 

 

in the past youtube also had challengers like veoh and other video plattforms 

 

it looks hard to me to find a replacement for youtube at the moment - but if youtube continue that way it might be the only option to go to a other plattform 

 

one challenger the commercial tv wont get rid of the is the smartphone, it basicly has replaced the common tv 

 

i gone away from google search already, here we have alternativ plattforms

Link to comment
Share on other sites

  • 2 months later...
5 hours ago, xpwasntthatgood said:

@nicolaasjan consider setting `version.UPDATE_HINT` in your builds to disable `-U` with a custom message.

Good idea. Thanks!

I will implement it in the next build.

In 'version.py' I put:

UPDATE_HINT = 'Do not update the XP build with -U. Instead download from GitHub Releases again when a new version is available.'

Tested it and it works:

C:\WINDOWS\system32>yt-dlp -U
Current version: local@2024.06.01
Latest version: master@2024.06.01.185743 from yt-dlp/yt-dlp-master-builds
ERROR: Do not update the XP build with -U. Instead download from GitHub Releases
 again when a new version is available.

C:\WINDOWS\system32>

BTW, welcome to the forum. :)

Link to comment
Share on other sites

FYI,

The yt-dlp maintainers will drop support for Python 3.8 after October 2024.

Quote

🚨IMPORTANT🚨: This will increase the minimum required Windows version to Windows 8; the yt-dlp release executables will no longer support Windows 7 or Windows Server 2008 R2.

Users on Windows 7 and Windows Server 2008 R2 will need to consider alternative options such as these unofficial builds if upgrading your operating system is not possible.

 

My build is done with Python 3.9, so it will also work on Windows 7 and above. :yes:

When Python 3.9 will reach end of life in October 2025 and yt-dlp maintainers will also drop support for it, I will no longer be able to provide builds for Windows XP...

(unless @cmalex or someone else manages to compile a higher Python XP compatible build :cool:)

Link to comment
Share on other sites

What work on their part does "supporting" a version of Python involve? Is it a matter of avoiding certain functions in code?

Link to comment
Share on other sites

35 minutes ago, j7n said:

What work on their part does "supporting" a version of Python involve? Is it a matter of avoiding certain functions in code?

No idea. I'm not a coder myself. :no:

I guess you'll have to ask @cmalex (he announced the Python 3.9 build in this post).

Though he hasn't posted on this forum since August 13, 2023...

When he was asked to provide a list of the options used when compiling his custom Python 3.8.1350, this was his answer:

Quote

Mostly standard. It was build on MS VC 2017. Changes in config files listed in Python3.8_dev_1a5d0099c3.7z/patch.diff

 

Patch.diff (Py3.8)

Link to comment
Share on other sites

  • 2 weeks later...

@nicolaasjan Hello, i just try your youtube-dl build in my Windows xp (P3)\Pentium M system and have some error. Do you test it? On nightly build i have same error. 

D:\Ytdl\msfn>youtube-dl https://www.youtube.com/watch?v=HyHNuVaZJ-k
[youtube] HyHNuVaZJ-k: Downloading webpage
WARNING: [youtube] HyHNuVaZJ-k: Unable to decode n-parameter: download likely to
 be throttled (Signature function returned an exception; please report this issu
e on https://github.com/ytdl-org/youtube-dl/issues , using the appropriate issue
 template. Make sure you are using the latest version; type  youtube-dl -U  to u
pdate. Be sure to call youtube-dl with the --verbose option and include the comp
lete output. Traceback (most recent call last):
  File "C:\Users\nico\Desktop\youtube-dl_source\youtube_dl\extractor\youtube.py"
, line 1646, in _decrypt_nsig
  File "C:\Users\nico\Desktop\youtube-dl_source\youtube_dl\extractor\youtube.py"
, line 1709, in extract_nsig
youtube_dl.jsinterp.Exception: Signature function returned an exception; please
report this issue on https://github.com/ytdl-org/youtube-dl/issues , using the a
ppropriate issue template. Make sure you are using the latest version; type  you
tube-dl -U  to update. Be sure to call youtube-dl with the --verbose option and
include the complete output.
)
WARNING: [youtube] HyHNuVaZJ-k: Unable to decode n-parameter: download likely to
 be throttled (Signature function returned an exception; please report this issu
e on https://github.com/ytdl-org/youtube-dl/issues , using the appropriate issue
 template. Make sure you are using the latest version; type  youtube-dl -U  to u
pdate. Be sure to call youtube-dl with the --verbose option and include the comp
lete output. Traceback (most recent call last):
  File "C:\Users\nico\Desktop\youtube-dl_source\youtube_dl\extractor\youtube.py"
, line 1646, in _decrypt_nsig
  File "C:\Users\nico\Desktop\youtube-dl_source\youtube_dl\extractor\youtube.py"
, line 1709, in extract_nsig
youtube_dl.jsinterp.Exception: Signature function returned an exception; please
report this issue on https://github.com/ytdl-org/youtube-dl/issues , using the a
ppropriate issue template. Make sure you are using the latest version; type  you
tube-dl -U  to update. Be sure to call youtube-dl with the --verbose option and
include the complete output.
)
ERROR: unable to download video data: HTTP Error 403: Forbidden

D:\Ytdl\msfn>

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...