Jump to content

Reino

Member
  • Posts

    273
  • Joined

  • Last visited

  • Days Won

    3
  • Donations

    0.00 USD 
  • Country

    Netherlands

Everything posted by Reino

  1. I'm not that familiar with the compilation process of Python, but I don't think that's how it works. They are linked to the 'libcrypto*.a' and 'libssl*.a' files and therefore you can't just replace the dll-files and expect them to work. @cmalex has to recompile the whole thing, which he already did. I don't understand why 2 years ago and still today he wants to use the shared OpenSSL dev-files. I could be wrong, but I thought linking the static OpenSSL dev-files is much easier. I personally don't have a need for it. The only reason why I started compiling the shared OpenSSL dll-files is because Xidel needs them to open https-urls on WinXP. But since I'm now on a Win11 laptop that's not needed anymore either. I assume you do have a need for it? I've reuploaded 'openssl-3.5.2-win32-shared-dev-xpmod-sse.7z' and recompiled 'openssl-3.5.2-win32-static-dev-xpmod-sse.7z'. They now include a bin-dir with the 2 dll-files and 'openssl.exe' respectively. Can you test if the exe-file actually works on WinXP?
  2. I hope openssl-3.1.0-win32-dev-xpmod-sse.7z would suffice. And FFmpeg: ffmpeg-6.1-588-4006c71-win32-dev-xpmod-sse.7z. @cmalex Believe it or not, only just now I suddenly realized why you needed that dev-archive. Have a look at https://rwijnsma.home.xs4all.nl/files/openssl/?C=M;O=A. I've just uploaded v3.5.2. Though I'm on Win11 nowadays, I believe it should work on WinXP.
  3. Wow! Then in just 3 days they've pushed some pretty significant changes. One of which is "[ie/youtube] Replace ios with tv_simply in default clients (#14123)", which is a real pity, because I prefer the ios HLS formats. They've now flagged these formats as requiring a PO token, which (as far as I can tell) isn't true, because the 2025.08.20.232911 version I was using still works just fine for these formats. Now I have to snatch a PO token for these to work.
  4. Hmm, it seems you're right. D:\>yt-dlp.exe -F "https://www.youtube.com/watch?v=zBq_krhKbW4" [youtube] Extracting URL: https://www.youtube.com/watch?v=zBq_krhKbW4 [youtube] zBq_krhKbW4: Downloading webpage [youtube] zBq_krhKbW4: Downloading tv client config [youtube] zBq_krhKbW4: Downloading tv player API JSON [youtube] zBq_krhKbW4: Downloading ios player API JSON WARNING: [youtube] zBq_krhKbW4: Some tv client https formats have been skipped as they are DRM protected. The current session may have an experiment that applies DRM to all videos on the tv client. See https://github.com/yt-dlp/yt-dlp/issues/12563 for more details. [youtube] Executing JS [youtube] [pot:phantomjs-web] Requesting webpage [youtube] [pot:phantomjs-web] Requesting webpage WARNING: [youtube] zBq_krhKbW4: Some web client https formats have been skipped as they are missing a url. YouTube is forcing SABR streaming for this client. See https://github.com/yt-dlp/yt-dlp/issues/12482 for more details [youtube] zBq_krhKbW4: Downloading m3u8 information [info] Available formats for zBq_krhKbW4: ID EXT RESOLUTION FPS CH │ FILESIZE TBR PROTO │ VCODEC VBR ACODEC ASR MORE INFO ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── sb3 mhtml 48x27 0 │ mhtml │ images storyboard sb2 mhtml 80x45 0 │ mhtml │ images storyboard sb1 mhtml 160x90 0 │ mhtml │ images storyboard sb0 mhtml 320x180 0 │ mhtml │ images storyboard 233 mp4 audio only │ m3u8 │ audio only unknown [en] Untested, Default, low 234 mp4 audio only │ m3u8 │ audio only unknown [en] Untested, Default, high 602 mp4 256x144 15 │ ~ 3.41MiB 82k m3u8 │ vp09.00.10.08 82k video only Untested 269 mp4 256x144 30 │ ~ 4.83MiB 116k m3u8 │ avc1.4D400C 116k video only Untested 603 mp4 256x144 30 │ ~ 6.96MiB 168k m3u8 │ vp09.00.11.08 168k video only Untested 229 mp4 426x240 30 │ ~ 9.37MiB 226k m3u8 │ avc1.4D4015 226k video only Untested 604 mp4 426x240 30 │ ~ 9.87MiB 238k m3u8 │ vp09.00.20.08 238k video only Untested 230 mp4 640x360 30 │ ~ 17.90MiB 432k m3u8 │ avc1.4D401E 432k video only Untested 18 mp4 640x360 30 2 │ 15.60MiB 376k https │ avc1.42001E mp4a.40.2 44k [en] 360p 605 mp4 640x360 30 │ ~ 20.36MiB 491k m3u8 │ vp09.00.21.08 491k video only Untested 231 mp4 854x480 30 │ ~ 27.63MiB 666k m3u8 │ avc1.4D401F 666k video only Untested 606 mp4 854x480 30 │ ~ 28.62MiB 690k m3u8 │ vp09.00.30.08 690k video only Untested 232 mp4 1280x720 30 │ ~ 47.83MiB 1153k m3u8 │ avc1.4D401F 1153k video only Untested 609 mp4 1280x720 30 │ ~ 45.79MiB 1104k m3u8 │ vp09.00.31.08 1104k video only Untested 270 mp4 1920x1080 30 │ ~ 86.72MiB 2090k m3u8 │ avc1.640028 2090k video only Untested 614 mp4 1920x1080 30 │ ~ 75.94MiB 1831k m3u8 │ vp09.00.40.08 1831k video only Untested 620 mp4 2560x1440 30 │ ~175.88MiB 4240k m3u8 │ vp09.00.50.08 4240k video only Untested 625 mp4 3840x2160 30 │ ~516.07MiB 12440k m3u8 │ vp09.00.50.08 12440k video only Untested This suggests both 720p formats have more or less the same video-bitrate. After having downloaded both of them however it's actually 242kbps (H.264) and 488kbps (VP9). I normally always watch the VP9 stream, so I wasn't expecting such a big difference. P.s. How lame I even have to use Microsoft Edge (my alternative browser) to create this post, because with Palemoon after having added the codeblock the window won't disappear for me to continue typing.
  5. Source? Example video?
  6. Can you please use some punctuation marks? This is unreadable!
  7. You don't have to call youtube-dl twice. There are more efficient ways to go about this. Pure Batch @ECHO off :BEGIN SETLOCAL SET /P LINK=YOUTUBE LINK: IF NOT DEFINED LINK GOTO :EOF FOR /F "delims=" %%A IN (' youtube-dl -gf "bestvideo[ext=mp4][height<=720][fps<=30][vcodec^=avc]+bestaudio[ext=m4a][acodec^=mp4a]" "%LINK%" ') DO (IF NOT DEFINED VIDEOLINK (SET "VIDEOLINK=%%A") ELSE (SET "AUDIOLINK=%%A")) "%programfiles%\SMPlayer\mplayer\mplayer" -aspect 4:3 -xy 800 -vo directx -ao dsound "%VIDEOLINK%" -audiofile "%AUDIOLINK%" ENDLOCAL GOTO :BEGIN If you want the script to go in a loop with GOTO, then I suggest you use SETLOCAL and ENDLOCAL to reset all variables each loop and GOTO :EOF as an escape (to simply press <enter> to stop the script). Xidel (variable export) Xidel is an XML/HTML/JSON-parser and an extremely versatile command line tool. The latest recommended dev-builds can be found here, here, or on my own host. @ECHO off :BEGIN SETLOCAL SET /P LINK=YOUTUBE LINK: IF NOT DEFINED LINK GOTO :EOF FOR /F "delims=" %%A IN (' youtube-dl -gf "bestvideo[ext=mp4][height<=720][fps<=30][vcodec^=avc]+bestaudio[ext=m4a][acodec^=mp4a]" "%LINK%" ^| xidel -se "url:=x:lines($raw)" --output-format^=cmd ') DO %%A "%programfiles%\SMPlayer\mplayer\mplayer" -aspect 4:3 -xy 800 -vo directx -ao dsound %url[0]% -audiofile %url[1]% ENDLOCAL GOTO :BEGIN %url[0]% and %url[1]% shouldn't be quoted, because Xidel already escapes the "&" and "=". Xidel (generate string to execute) You don't need a Batch-script. You can simply enter the following (prettified) one-liner in CMD. Xidel generates the string, which the FOR-loop then executes. FOR /F "delims=" %A IN (' youtube-dl -gf "bestvideo[ext=mp4][height<=720][fps<=30][vcodec^=avc]+bestaudio[ext=m4a][acodec^=mp4a]" "<url>" ^| xidel -se "let $url:=x:lines($raw) return `\"%programfiles%\\SMPlayer\\mplayer\\mplayer\" -aspect 4:3 -xy 800 -vo directx -ao dsound \"{$url[1]}\" -audiofile \"{$url[2]}\"`" ') DO @%A Xidel (parse the JSON and generate string to execute) As Xidel is a JSON-parser, you can also let youtube-dl spit out all the info as JSON and let Xidel select the formats. Unfortunately all the necessary characters between the escaped double-quotes ( \" ) need to be escaped for CMD. FOR /F "delims=" %A IN (' youtube-dl -j "<url>" ^| xidel -se "`\"%programfiles%\\SMPlayer\\mplayer\\mplayer\" -aspect 4:3 -xy 800 -vo directx -ao dsound \"{$json/^(formats^)^(^)[ext^='mp4' and height le 720 and fps le 30 and starts-with^(vcodec^,'avc'^)][last^(^)]/url}\" -audiofile \"{$json/^(formats^)^(^)[audio_ext^='m4a' and starts-with^(acodec^,'mp4a'^)][last^(^)]/url}\"`" ') DO @%A
  8. If the e-mail-address is still the same, then it's "3DYD Soft Support <support@3dyd.com>". A couple of times, from 2017 until 2020, I've had mail-contact with a guy named Nick for some issues and feature-requests.
  9. Same here. The familiar "The instruction at "0x########" referenced memory at "0x00000000". The memory could not be "read"." messages. Reverting to 'palemoon-28.10.7a1.win32-git-20241005-d849524bd-uxp-73f3390cf8-xpmod-sse.7z', which worked fine.
  10. ...to make it work. Well, to have it load the page at least. I'm not interested in anything else, because I don't/can't use New Moon to watch Youtube videos anyway.
  11. palemoon-28.10.7a1.win32-git-20240928-d849524bd-uxp-716b990183-xpmod-sse.7z Initially I said "I've installed "Greasemonkey for Pale Moon 3.31.4" (from the "Classic Add-ons Archive")", but I was wrong. I've installed that exact same one you linked. I had to disable the "GoodbyeAds-YouTube-AdBlock-Filter" in uBlock Origin Legacy and in uMatrix I had to allow "pages.dev", "vorapis.pages.dev", "www.googleapis.com" (+ frame), "content-youtube.googleapis.com" (+ frame) and "youtube.clients6.google.com" (+ frame). Why do you explicitly mention the query part "cbrd=1"? Doesn't look any different compared to the basic url.
  12. I've installed "Greasemonkey for Pale Moon 3.31.4" (from the "Classic Add-ons Archive") and added this userscript. I'm totally new to this, but when I go to https://www.youtube.com/@LinusTechTips/videos for example, nothing happens, the screen remains white and in the error-console I'm seeing "Warning: Content Security Policy: Couldn’t process unknown directive ‘require-trusted-types-for’" and "Error: TypeError: NetworkError when attempting to fetch resource". Whereas without the userscript the website loads normally. Painfully slow, but it loads. Does this userscript really work without any additional instructions?
  13. Thanks. I didn't know about this one. Sadly I can't use either the MPC-HC, or the LAVFilters release, because here it crashes instantly. Guess it's for SSE2 cpus and newer.
  14. With my ±20 year old pc (AMD Athlon XP 3200+ and ATI Radeon HD 3850 (AGP)) watching Youtube videos in-browser is next to impossible, because of the 100% cpu-utilization. It's just too slow. The videocard however does support hardware video-decoding of H.264 up to 1080p. To watch and/or download Youtube videos I always use (my own) simple Youtube-extractor + the latest still working MPC-HC on WinXP to watch, or - of course - my own WinXP compatible FFmpeg builds to download. My Youtube-extractor is part of an XQuery function module, Xivid, for the command-line tool Xidel (an XML/HTML/JSON parser). It's a simple extractor, in the sense that it doesn't support age-gated-videos. You'd still need youtube-dl / yt-dlp for that. But for "normal" videos, the vast majority I come across, it works absolutely fine and because it doesn't depend on Python it's multitudes faster (on my old system). The extractor uses the Android API call, which means there's no bandwidth-throttling or a need to decrypt signatures. Extracting Xidel 0.9.9.8787 or newer. For WinXP download the "openssl.win32"-variant! Besides 'xidel.exe', don't forget to extract 'cacert.pem' as well. Alternatively you could download one from my host, which are much smaller because I removed the "debug symbols". OpenSSL 3.3.1 dll-files to be able to open and process virtually any https-url nowadays. Put them in the same map as 'xidel.exe', in 'C:\Windows\system32', or somewhere in %PATH%. 'xivid.xqm'. My XQuery function module with the xivid:youtube() function declaration. Watching The latest still working MPC-HC on WinXP and my (non SSE2) cpu. There may be some newer releases than this one that might still work on WinXP, but then you'll need an SSE2 cpu. LAVFiltersXP 0.70.2. Special LAVFilters release where libavformat is compiled with GnuTLS for https-support. There's a newer release, but it instantly crashes on my system. standalone_filters-mpc-be.1.4.6.x86.7z for 'MPCVideoDec.ax', the DXVA1 hardware video-decoder (which LAVFilters lacks). MPC-BE 1.4.6 is the latest official WinXP compatible release. Alternatively you could download standalone_filters-mpc-be.1.4.7.0.x86.(VS2015).7z. This is an unofficial backported WinXP compatible release, which also works fine on my system. From 'MPC-HC.1.7.11.24.x86.7z' extract everything except the "LAVFilters"-map. From 'LAVFiltersXP-0.70.2-beta2-x86.zip' extract - at least - the manifest-file, all dll-files and ax-files to 'MPC-HC.1.7.11.24.x86\LAVFilters'. From 'standalone_filters-mpc-be.1.4.6.x86.7z' extract 'MPCVideoDec.ax' anywhere you want basically. Then finally in MPC-HC: Options --> External Filters --> Add Filter... --> Browse... --> select 'MPCVideoDec.ax' --> tick the "Prefer"-box. This way you can watch most* https progressive-, DASH- and HLS-videostreams with your gpu doing the video-decoding. Downloading My FFmpeg builds obviously. Nothing more to say. Discussion on Doom9 Forum. Command-lines The most basic Xidel-call for a Youtube-video would be... xidel.exe -s --module=xivid.xqm -e "xivid:youtube('https://www.youtube.com/watch?v=dQw4w9WgXcQ')" xidel.exe -s --module=xivid.xqm -e "xivid:youtube('dQw4w9WgXcQ')" ...which returns a JSON with all the different audio- and video formats. The following command I use all the time to watch the 720p (itag 22) progressive video: FOR /F "delims=" %A IN (' xidel -s --module^=xivid.xqm -e "xivid:youtube('dQw4w9WgXcQ')/(formats)()[starts-with(id,'pg')][last()]/url" ') DO @"C:\Program Files\Media\MPC-HC.1.7.11.24.x86\mpc-hc.exe" "%A" /close Update: Youtube doesn't provide the 720p (itag 22, H.264+AAC) container format anymore. Only the 360p (itag 18) variant remains. The following command I now use all the time watch Youtube videos: FOR /F "delims=" %A IN (' xidel -s --module^=xivid.xqm -e "xivid:youtube('dQw4w9WgXcQ')/formats/`\"C:\\Program Files\\Media\\MPC-HC.1.7.11.24.x86\\mpc-hc.exe\" \"{.^(^)[format^='mp4[h264]' and substring-before^(resolution^,'x'^) le 1280][last^(^)]/url}\" /dub \"{.^(^)[format^='webm[opus]'][last^(^)]/url}\" /close`" ') DO @%A Prettified: FOR /F "delims=" %A IN (' xidel -s --module^=xivid.xqm -e " xivid:youtube^('dQw4w9WgXcQ'^)/formats/` \"C:\\Program Files\\Media\\MPC-HC.1.7.11.24.x86\\mpc-hc.exe\" \"{.()[format='mp4[h264]' and substring-before(resolution,'x') le 1280][last()]/url}\" /dub \"{.()[format='webm[opus]'][last()]/url}\" /close ` " ') DO @%A From the JSON generated by the extractor I select the H.264 720p (DASH video only) variant with the highest bitrate (which at the same time is always the one with the highest framerate) and the OPUS (DASH audio only) variant with the highest bitrate. I'll let Xidel generate the (long) string, which in turn the FOR-loop executes as an MPC-HC command. For downloading it's as easy as: FOR /F "delims=" %A IN (' xidel -s --module^=xivid.xqm -e "xivid:youtube('dQw4w9WgXcQ')/formats/`ffmpeg.exe -hide_banner -i \"{.^(^)[format^='mp4[h264]' and substring-before^(resolution^,'x'^) le 1280][last^(^)]/url}\" -i \"{.^(^)[format^='mp4[aac]'][last^(^)]/url}\" -c copy \"Rick Astley - Never Gonna Give You Up ^(Official Music Video^).mp4\"`" ') DO @%A FOR /F "delims=" %A IN (' xidel -s --module^=xivid.xqm -e " xivid:youtube^('dQw4w9WgXcQ'^)/formats/` ffmpeg.exe -hide_banner -i \"{.()[format='mp4[h264]' and substring-before(resolution,'x') le 1280][last()]/url}\" -i \"{.()[format='mp4[aac]'][last()]/url}\" -c copy \"Rick Astley - Never Gonna Give You Up (Official Music Video).mp4\" ` " ') DO @%A Or with 'webm[opus]' instead of 'mp4[aac]' and .mkv instead of .mp4. * LAVFiltersXP 0.70.2 is already pretty old which means that certain videostreams aren't (properly) supported. Youtube livestreams for instance, but also videos from Twitter. Luckily with FFmpeg there's a workaround for that: FOR /F "delims=" %A IN (' xidel -s --module^=xivid.xqm -e "xivid:youtube('###########')/(formats)()[last()]/url" ') DO @ffmpeg.exe -hide_banner -i "%A" -c copy -f nut - | "C:\Program Files\Media\MPC-HC.1.7.11.24.x86\mpc-hc.exe" - /close
  15. To what end? You can already directly open this HLS manifest with FFmpeg and probably your media-player as well.
  16. I couldn't help myself, but just FYI, the FFmpeg binaries I compile from time to time (and which @nicolaasjan is kindly linking to in his signature), I build them on and for my old AMD Athlon XP 3200+ (no SSE2) pc running WinXP Pro SP3.
  17. I guess I didn't even realize I was actually cheating. You're right. I knew that 3.4.10 is the latest WinXP compatible release. Not everything is crystal clear. What does PSF stand for?
  18. For me this only happens when I don't allow all the Google stuff to load in uMatrix. I didn't know that. Thanks. But I'm hardly using Google anymore nowadays. I'm very happy with DuckDuckGo, my primary search-engine. Uhm, thanks for your elaborate answer!
  19. Ok. Done that. It wasn't obvious to me from your previous posts. Which is? "disable-css-animations-and-transitions-safely"? "Disable CSS animations and transitions safely"? Or doesn't it matter? Anyway,... no more animations (and 100% cpu usage) on https://developer.mozilla.org/en-US/docs/Web/CSS/animation. The userstyles website itself is still a nightmare though with all the fancy stuff that's loaded... *sigh*
  20. With Python 3.9.13 from here: D:\Storage\Media\Binaries>python "yt-dlp_git\yt_dlp\__main__.py" -vgf 22 "8kl6q_9qZOs" [debug] Command-line config: ['-vgf', '22', '8kl6q_9qZOs'] [debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8 (No VT), error utf-8 (No VT), screen utf-8 (No VT) [debug] yt-dlp version stable@2023.07.06 [b532a3481] (source) [debug] Lazy loading extractors is disabled [debug] Python 3.9.13 (CPython x86 32bit) - Windows-XP-5.1.2600-SP3 (OpenSSL 1.1.1i 8 Dec 2020) [debug] exe versions: ffmpeg N-102342-g5541cff-Reino (fdk,setts) [debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, secretstorage-3.3.3, sqlite3-2.6.0, websockets-11.0.2 [debug] Proxy map: {} [debug] Loaded 1863 extractors [youtube] Extracting URL: 8kl6q_9qZOs [youtube] 8kl6q_9qZOs: Downloading webpage [youtube] 8kl6q_9qZOs: Downloading ios player API JSON [youtube] 8kl6q_9qZOs: Downloading android player API JSON [youtube] 8kl6q_9qZOs: 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] 8kl6q_9qZOs: Downloading 1 format(s): 22 https://rr2---sn-32o-bg9e.googlevideo.com/videoplayback?[...]
  21. "The official yt-dlp binary has long ago abandoned..." The source itself, as far as I can tell, is still compatible. Even with my ancient pc. This still works for me: python "yt-dlp_git\yt_dlp\__main__.py" -gf 22 "<youtube-id>"
  22. I have, as you can see in my screenshot. Other stuff like facebook and pinterest are completely irrelevant. As for the useragent... ...only this works for me to render the website at all. Changing (or creating) the useragent for google.com doesn't do anything for me with regards to userstyles.org, so I don't understand how it does for you. How? Installing "https://userstyles.org/styles/180927/disable-css-animations-and-transitions-safely", "https://userstyles.org/styles/180927/disable-css-animations-and-transitions-safely.css" with Stylem's "Install from URLs..."-button doesn't work and the website itself complains I'm not using Chrome. @VistaLover already mentioned this. So how did you accomplish this?
  23. It doesn't for me: Mozilla/5.0 (%OS_SLICE% rv:65.0) Gecko/20100101 Firefox/65.0 Mozilla/5.0 (%OS_SLICE% rv:102.0) Gecko/20100101 Firefox/102.0 Neither of these two strings work for me.
×
×
  • Create New...