Jump to content

Reino

Member
  • Posts

    259
  • Joined

  • Last visited

  • Days Won

    3
  • Donations

    0.00 USD 
  • Country

    Netherlands

Reino last won the day on May 14 2023

Reino had the most liked content!

1 Follower

About Reino

  • Birthday 10/17/1984

Contact Methods

  • Website URL
    http://rwijnsma.home.xs4all.nl/

Profile Information

  • OS
    XP Pro x86

Recent Profile Visitors

3,226 profile views

Reino's Achievements

66

Reputation

  1. 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.
  2. 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.2.0 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 When this video doesn't work/play (rare case), I select the DASH variants. Itag 136 (H.264 720p) and itag 140 (AAC) in this case: 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='mp4[aac]'][last()]/url} /close`" ') DO @%A The Youtube video- and/or audio-urls don't necessarily need to be quoted, but if you want to do it absolutely right (including the regrettably necessary escape-characters): 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^='mp4[aac]'][last^(^)]/url}\" /close`" ') DO @%A Then while you're at it, you might as well make the command a bit more readable by prettifying the query: 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='mp4[aac]'][last()]/url}\" /close ` " ') DO @%A And because of the crazy escape-character-rules of cmd/Batch, nothing between the ( \ )-escaped double-quotes (\"...\") needs to be ( ^ )-escaped. While the for-loop for the itag 22 video, with only 1 video-url, just feeds the video-url to MPC-HC, the for-loop for the itag 136+140 executes the string generated by Xidel. With more than 1 generated url this is a much better approach than messing with temporary variables and such. For downloading it's as easy as: FOR /F "delims=" %A IN (' xidel -s --module^=xivid.xqm -e "xivid:youtube('dQw4w9WgXcQ')/(formats)()[starts-with(id,'pg')][last()]/url" ') DO @ffmpeg.exe -hide_banner -i "%A" -c copy "Rick Astley - Never Gonna Give You Up (Official Music Video).mp4" Or with separate audio- and video-urls: 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 * 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
  3. To what end? You can already directly open this HLS manifest with FFmpeg and probably your media-player as well.
  4. 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.
  5. 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?
  6. 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!
  7. 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*
  8. 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?[...]
  9. "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>"
  10. 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?
  11. 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.
  12. @roytam1 I want to thank you (once again) for maintaining NM28 for WinXP. Ever since I found out about and started using NM27 and later NM28, whenever I wanted to buy something online, I had to resort to my Android phone, because my bank website (extra security and high-tech features, of course) didn't work... until recently! Last week I found out, obviously because of lots of fixes, updates and maybe even hacks, my bank website did finally work after all this time. Much appreciated! I've never messed with stuff like this, but my pc also gets nearly unresponsive for sites like reddit, or (from the top of my head) instagram and pinterest. So how do I go about this? Do I need an add-on for this?
  13. @roytam1 It appears Marktplaats, the Dutch Ebay so to speak, has changed some things in the background, because with palemoon-28.10.6a1.win32-git-20230603-d849524bd-uxp-765a6434c-xpmod-sse, when you do any search at all, like this one, the processing "hourglas" (or rather 3 dots in this case) will animate forever. The strange thing is that the Error Console doesn't report anything. One or two weeks ago this website worked just fine.
  14. Oh, I understand now. Back when I cloned rdp's repo I've left the cygwin installer command practically untouched, which only installs a portion of all the packages. So no wonder it can't find cygport. Thanks for you effort, but I've settled with v3.4.10, which is good enough for me. I've bunched all the necessary patches into one and ultimately these patches proved to be the solution for this thread to get me working Python3 Cygwin install. I'm unfamiliar with the term "rebase" in this case. What does it do and why is it needed? No. Honoustly, I can't even remember why I started compiling and uploading Curl binaries in the first place. If I want to download something, then I'll use the Palemoon browser and if I want to scrape / extract something, then I'll use Xidel.
  15. Hello cmalex, Thanks. That solves that issue, but the next issue is that it fails to build ALL modules: building '...' extension [...] /usr/lib/gcc/i686-pc-cygwin/5.4.0/../../../../i686-pc-cygwin/bin/ld: cannot find -lpython3.4 collect2: error: ld returned 1 exit status [...] Failed to build these modules: _bisect _codecs_cn _codecs_hk _codecs_iso2022 _codecs_jp _codecs_kr _codecs_tw _crypt _csv _ctypes _ctypes_test _datetime _decimal _elementtree _heapq _json _lsprof _md5 _multibytecodec _multiprocessing _opcode _pickle _posixsubprocess _random _sha1 _sha256 _sha512 _socket _struct _testbuffer _testcapi _testimportmultiple array audioop binascii cmath fcntl grp math mmap parser pyexpat resource select syslog termios time unicodedata xxlimited zlib Wow, great find! Seeing so many patches are necessary for Cygwin, it's no wonder I'm having so much difficulty. I would've never been able to solve this on my own. At the moment I have this working procedure in my (local) script: build_python() { download_and_unpack_file http://cygwinxp.cathedral-networks.org/x86/release/python3/python3-3.4.3-1-src.tar.xz python3-3.4.3-1.src cd python3-3.4.3-1.src #cygport python3.cygport all # cygport is not available with Cygwin 2.874. if [ ! -f "Python-3.4.3_unpacked.successfully" ]; then echo -e "\e[1;33mUnpacking 'Python-3.4.3.tar.xz'.\e[0m" tar -xf "Python-3.4.3.tar.xz" || exit 1 touch "Python-3.4.3_unpacked.successfully" || exit 1 rm "Python-3.4.3.tar.xz" || exit 1 fi if [ ! -f "patch_path-correction.done" ]; then sed -r -i "s/(orig)?src\/Python-[0-9\.]*\///" *.patch touch "patch_path-correction.done" || exit 1 fi cd Python-3.4.3 apply_patch ../python3-3.4.3-1.src.patch apply_patch ../3.4-dbm-cygwin.patch apply_patch ../3.1-enable-new-dtags.patch apply_patch ../3.4-tkinter-cygwin.patch apply_patch ../3.4-ctypes-cygwin.patch apply_patch ../3.1-PATH_MAX.patch apply_patch ../3.1-ncurses-abi6.patch apply_patch ../3.2-export-PySignal_SetWakeupFd.patch apply_patch ../3.4-distutils-soname.patch apply_patch ../3.2-distutils-shlibext.patch apply_patch ../3.4-pep3149-cygwin.patch apply_patch ../3.4-thread-cygwin64.patch ac_cv_func_bind_textdomain_codeset=yes do_configure --prefix=/usr --enable-shared --enable-ipv6 --with-dbmliborder=gdbm --with-libc= --with-libm= --with-system-expat --with-system-ffi --without-ensurepip # 'configure'-options from '../python3.cygport'. do_make install cd .. cd .. } At first I saw this 'python3.cygport' file. After some reading I realized that with an internal tool called "cygport" I could automatically compile and install the whole Python release, BUT I soon found out that Cygwin 2.874 (the latest WinXP compatible version) doesn't even have this tool. For a website that hosts this latest WinXP compatible Cygwin release I find that really strange. Guess I'll have to do it myself after all. I've had a look at these patches (I really don't know what they're for, but they're probably necessary) and found out that you won't need '3.2-getpath-exe-extension.patch' and '3.4-select-cygwin.patch' if you're already starting off with 'python3-3.4.3-1.src.patch'. Next I've added the 'configure'-options from 'python3.cygport'. In the end this produced a working Python3 Cygwin install! `patch --force` you mean? Nice to see you got it working for v3.4.10. I'll have a look at it soon. What 'configure'-options did you use?
×
×
  • Create New...