Jump to content

reboot12

Member
  • Posts

    851
  • Joined

  • Last visited

  • Days Won

    2
  • Donations

    0.00 USD 
  • Country

    Poland

Posts posted by reboot12

  1. @Dietmar

    AI suggest:

    • full hardware reset
      // Przed wczytaniem Firmware
      if (Adapter->MmioBase != NULL) {
          // Wykonaj Soft Reset
          WifiWriteRegister32(Adapter, WIFI_CSR_GP_CNTRL, 0x04000010);
          ExfreesystemThreadResource();
          
          // Czekaj 10ms
          LARGE_INTEGER delay;
          delay.QuadPart = -10000000LL * 10; // 10ms
          KeDelayExecutionThread(KernelMode, FALSE, &delay);
          
          // Sprawdź czy karta odpisała
          ULONG val = WifiReadRegister32(Adapter, WIFI_CSR_GP_CNTRL);
          DbgPrint("9560nn56: After Reset Check = %08lx\n", val);
      }
  2. 43 minutes ago, nicolaasjan said:

    What can you suggest as a more lightweight compiler for Windows?

    One environment will not be universal for everything - it depends on many things:

    • what are you compiling and what is your source code - c, c+, c++, rust, etc.
    • whether the code is old or new
    • on what system the application is to be used - old XP or only new Vista and newer

    As I wrote, I compile all tools to work under WinXP 64-bit because they are simply missing. Recently I tried compiling flashrom 1.2 - first attempt MinGW+MSYS on Windows - failed, next attempt MinGW on Ubuntu 24 - failed. All I had to do was change Ubuntu to an older version, e.g. 16, and I could compile the application normally :)
    flashrom-OK.png

    Other my tool UefiMenu + Windows driver I compile in WDK 7600.16385.1 and UEFI loader in same Ubuntu 16:
    Save-Rt.png Dell.png Uefi-Menu.png

    Another one tool setcsum - I compiled in Visual Studio 2005

  3. 9 minutes ago, nicolaasjan said:

    It has all features you can think of.

    I'm sorry, but I'm a minimalist and I'm irritated by such oversized applications, unnecessary code in scripts or source code. Recently, I have been compiling a lot tools in various environments: Linux with edk2, UEFI, MinGW, Windows with WinDDK, Visual Studio and I try to make the code as readable as possible without unnecessary lines, so that the compiled tool does only what it is supposed to do. My latest tools - all for WinXP 64-bit: ffmpeg, flashrom, UefiMenu

  4. 1 hour ago, nicolaasjan said:

    There are numerous people who use FFmpeg for other things than yt-dlp. :yes:

    I understand, but ~100 MB is not a normal CMD application size. I chose this tactic:

    • I built an absolutely minimal ffmpeg.exe 2.20 MB to combine and split YT streams
    • I added some functions for which I use ffmpeg e.g. convert framebuffer device dump.bin (from Linux) to PNG image or convert video file to GIF (I had to compile an external zlib library to support PNG):
      ./configure \
        --enable-cross-compile \
        --arch=x86_64 \
        --target-os=win32 \
        --cross-prefix=x86_64-w64-mingw32- \
        --extra-cflags="-D_WIN32_WINNT=0x0502 -O2 -I/opt/ffmpeg-xp64/include" \
        --extra-ldflags="-L/opt/ffmpeg-xp64/lib -static" \
        --disable-everything \
        --disable-autodetect \
        --enable-demuxer=avi,mov,matroska,ogg,rawvideo \
        --enable-muxer=gif,mp4,matroska,webm,adts,ogg,image2 \
        --enable-decoder=h264,mpeg4,msmpeg4v3,tscc,rawvideo \
        --enable-encoder=gif,bmp,png \
        --enable-filter=fps,palettegen,paletteuse,split,scale,format \
        --enable-parser=aac,h264,vp9,av1 \
        --enable-bsf=aac_adtstoasc,vp9_superframe \
        --enable-protocol=file,pipe \
        --enable-zlib

    Now my ffmpeg.exe has 3.81 MB - I don't need a million other features that I will never use. And if you need something, you can always add it and compile :)

    Compilation time:

    • version minimum + my functions (3.81 MB) - 5 minutes
    • version no external lib (17.2 MB) - 25 minutes
    • ffmpeg with full possibilities (~100 MB) - I don't know - probably couple hours ?
  5. My way to update certificate using cert.cmd:

    cert.gif

    @echo off
    title Certificate update
    
    setlocal EnableExtensions EnableDelayedExpansion
    
    echo.
    call :ViewDateSST authroots.sst
    echo.
    
    wget -q --show-progress -O authroots.sst http://www.download.windowsupdate.com/msdownload/update/v3/static/trustedr/en/authroots.sst
    wget -q --show-progress -O delroots.sst http://www.download.windowsupdate.com/msdownload/update/v3/static/trustedr/en/delroots.sst
    wget -q --show-progress -O roots.sst http://www.download.windowsupdate.com/msdownload/update/v3/static/trustedr/en/roots.sst
    wget -q --show-progress -O updroots.sst http://www.download.windowsupdate.com/msdownload/update/v3/static/trustedr/en/updroots.sst
    
    updroots.exe authroots.sst
    updroots.exe updroots.sst
    updroots.exe -l roots.sst
    updroots.exe -d delroots.sst
    
    echo.
    pause
    exit /b
    
    :ViewDateSST
    if not exist "%~1" (
        echo Last run: no data
        exit /b
    )
    
    for %%F in ("%~1") do set "DT=%%~tF"
    
    rem Format: RRRR-MM-DD GG:MM
    set "YYYY=!DT:~0,4!"
    set "MM=!DT:~5,2!"
    set "DD=!DT:~8,2!"
    set "TIME=!DT:~11,5!"
    
    call :McName !MM!
    
    rem Del 0 from begin day, np. 04 -> 4
    if "!DD:~0,1!"=="0" set "DD=!DD:~1!"
    
    echo Last run: !DD! !MONTH! !YYYY!, !TIME!
    exit /b
    
    :McName
    if "%1"=="01" set "MONTH=stycznia"
    if "%1"=="02" set "MONTH=lutego"
    if "%1"=="03" set "MONTH=marca"
    if "%1"=="04" set "MONTH=kwietnia"
    if "%1"=="05" set "MONTH=maja"
    if "%1"=="06" set "MONTH=czerwca"
    if "%1"=="07" set "MONTH=lipca"
    if "%1"=="08" set "MONTH=sierpnia"
    if "%1"=="09" set "MONTH=wrzesnia"
    if "%1"=="10" set "MONTH=pazdziernika"
    if "%1"=="11" set "MONTH=listopada"
    if "%1"=="12" set "MONTH=grudnia"
    exit /b
  6. 21 hours ago, j7n said:

    I don't think a minimal build without any codecs is a good idea. If you drop ffmpeg.exe into the path, it can be found by various applications and used. Something that cuts the size down to 30 or 50 MB is enough.

    But my first version 17.2 MB or latest 2.20 MB and @autodidact ~28 MB version does not enable e.g. convert audio stream to MP3

    But all this version support combine audio+video streams from YT.
    Why use the 28 MB version when you can use 2.20 MB and it does the same thing? I bet that there are functions in the @autodidact version that you will never use.

    @nicolaasjan made a great tool for downloading videos from YT. I don't need to use the latest version of ffmpeg.exe (~100 MB) to combine downloaded audio and video streams. My minimal version does the same thing and only takes up >>>> ~2 MB <<<< - not 90-100 MB !!! :crazy:

    I hate bloated apps that can do a million things.

     

    23 hours ago, nicolaasjan said:

    Would you please keep the libfdk_aac support in the small builds (and maybe libmp3lame for those who want mp3's

    @nicolaasjan What do I need libfdk_aac & libmp3lame for? My minimal version support extract audio stream to aac file.

  7. You need to consider what the absolutely minimal version of ffmpeg.exe for youtube-dl.exe should do?

    • only support YouTube formats:

    .mp4, .webm, .m4a containers

    audio formats: opus, aac

    video formats: avc1, av01, vp9

    • combine selected audio and video streams
    • extract audio and video stream into separate files

    I compiled a version that can do this and it only takes >>> 2.20 MB <<< and works OK :)

    I make tests combine audio+video:

    youtube-dl -f video_number+audio_number link
    
    avc1+m4a.mp4
    av01+m4a.mp4
    vp9+opus.webm

    and extract audio and wideo from this combined files:

    Extract audio stream:
    
    ffmpeg -i avc1+m4a.mp4 -vn -c:a copy m4a.aac
    ffmpeg -i av01+m4a.mp4 -vn -c:a copy m4a.aac
    ffmpeg -i vp9+opus.webm -vn -c:a copy audio.opus
    
    Extract video stream:
    
    ffmpeg -i avc1+m4a.mp4 -an -c:v copy avc1.mp4
    ffmpeg -i av01+m4a.mp4 -an -c:v copy av01.mp4
    ffmpeg -i vp9+opus.webm -an -c:v copy vp9.webm

    All extracted files open without any problems with VLC 3.0.11 or newer :thumbup

    https://www.mediafire.com/file/9h32t0ac8cc17ds/ffmpeg.exe/file

    Configuration:

    ./configure \
      --enable-cross-compile \
      --arch=x86_64 \
      --target-os=win32 \
      --cross-prefix=x86_64-w64-mingw32- \
      --extra-cflags="-D_WIN32_WINNT=0x0502 -O2" \
      --extra-ldflags="-static" \
      --disable-everything \
      --disable-autodetect \
      --enable-demuxer=mov,matroska,ogg \
      --enable-muxer=mp4,matroska,webm,adts,ogg \
      --enable-parser=aac,h264,vp9,av1 \
      --enable-bsf=aac_adtstoasc,vp9_superframe \
      --enable-protocol=file,pipe
  8. 20 minutes ago, K4sum1 said:

    Fair, but have you never wanted to drag a video onto ffplay.exe and watch it play the video without having anything installed?

    No, never. I have always double-click .mp4 and is opened in VLC to watch everything and I don't need anything else. I no need scripts for download - simply check numbers video+audio - I prefer 720p e.g 136+140 so simply download: youtube-dl -f 136+140 link

  9. 24 minutes ago, K4sum1 said:

    For yt-dlp, ffprobe.exe is also required I think. I have both ffmpeg.exe and ffprobe.exe in my yt-dlp directory.

    For combine YT m4a and mp4 work OK:

    yt-dlp -f 136+140 https://www.youtube.com/watch?v=x1anlc6GhE4
    [youtube] Extracting URL: https://www.youtube.com/watch?v=x1anlc6GhE4
    [youtube] x1anlc6GhE4: Downloading webpage
    WARNING: [youtube] No supported JavaScript runtime could be found. Only deno is enabled by default; to use another runtime add  --js-runtimes RUNTIME[:PATH]  to your command/config. YouTube extraction without a JS runtime has been deprecated, and some formats may be missing. See  https://github.com/yt-dlp/yt-dlp/wiki/EJS for details on installing one
    [youtube] x1anlc6GhE4: Downloading android vr player API JSON
    [info] x1anlc6GhE4: Downloading 1 format(s): 136+140
    [download] Destination: Sultans of Swing  - Bia Villa-Chan (Dire Straits cover) [x1anlc6GhE4].f136.mp4
    [download] 100% of    5.15MiB in 00:00:25 at 209.25KiB/s
    [download] Destination: Sultans of Swing  - Bia Villa-Chan (Dire Straits cover) [x1anlc6GhE4].f140.m4a
    [download] 100% of  955.00KiB in 00:00:05 at 185.21KiB/s
    [Merger] Merging formats into "Sultans of Swing  - Bia Villa-Chan (Dire Straits cover) [x1anlc6GhE4].mp4"
    Deleting original file Sultans of Swing  - Bia Villa-Chan (Dire Straits cover) [x1anlc6GhE4].f136.mp4 (pass -k to keep)
    Deleting original file Sultans of Swing  - Bia Villa-Chan (Dire Straits cover) [x1anlc6GhE4].f140.m4a (pass -k to keep)

    24 minutes ago, K4sum1 said:

    ffmpeg is an all in one library, some programs may only use ffplay

    This topis is about youtube-dl - tool for download video on WinXP, not for play. For playing you will use e.g. VLC

×
×
  • Create New...