Topaz Video AI 5.1.1 (macOS)

Discussion in 'Other Related Downloads' started by heger, 2 Jun 2024.

  1. heger

    heger New Member

    Joined:
    20 Aug 2022
    Messages:
    12
    Likes Received:
    6
    Trophy Points:
    3
    SWLbUEwwrGw9.png

    In the update from version 5.0.4 to 5.1.0, the developers changed the structure and addresses of key instructions in its code. This means the old patch, which modified specific hex values, no longer works because those values have moved. We are going to need a new patch.

    I've managed to create a new patch that works with the latest version of Topaz Video AI (5.1.1). This version isn't listed on the official download page (topazlabs.com/downloads) where you can only find version 5.1.0. However, you can download version 5.1.1 directly from the following link:

    https://downloads.topazlabs.com/deploy/TopazVideoAI/5.1.1/TopazVideoAI-5.1.1.dmg

    The new patch ensures that all necessary dylib files are correctly linked and that the binaries are appropriately patched. Here are the steps included in the patch:

    1. Downloads Necessary Files: Downloads the older version (5.0.4) and extracts specific files needed for the patch to work on newer versions of Topaz Video AI.
    2. Symbolic Links: Creation of symbolic links to ensure the application can locate the required dylib files, matching the structure of the previous version.
    3. Hex Replacement: Specific hex values in the login and libvideoai binary files are patched to bypass activation checks.
    4. Preparation: Clears extended attributes and re-signs the application to ensure it runs without issues.

    Code:
    function hex() {
        echo ''$1'' | perl -0777pe 's|([0-9a-zA-Z]{2}+(?![^\(]*\)))|\\x${1}|gs'
    }
    
    function replace() {
        declare -r dom=$(hex $2)
        declare -r sub=$(hex $3)
        sudo perl -0777pi -e 'BEGIN{$/=\1e8} s|'$dom'|'$sub'|gs' "$1"
        return
    }
    
    function prep() {
        sudo xattr -cr "$1"
        sudo xattr -r -d com.apple.quarantine "$1"
        sudo codesign --force --deep --sign - "$1"
    }
    
    function download_and_extract_login_libvideo() {
        tmp_dir=$(mktemp -d)
        curl -L -o $tmp_dir/TopazVideoAI-5.0.4.dmg https://downloads.topazlabs.com/deploy/TopazVideoAI/5.0.4/TopazVideoAI-5.0.4.dmg
        hdiutil attach $tmp_dir/TopazVideoAI-5.0.4.dmg -nobrowse -quiet
        cp /Volumes/Topaz\ Video\ AI\ 5.0.4/Topaz\ Video\ AI.app/Contents/MacOS/login /Applications/Topaz\ Video\ AI.app/Contents/MacOS/login
        cp /Volumes/Topaz\ Video\ AI\ 5.0.4/Topaz\ Video\ AI.app/Contents/Frameworks/libvideoai.1.4.0.dylib /Applications/Topaz\ Video\ AI.app/Contents/Frameworks/libvideoai.1.4.0.dylib
        hdiutil detach /Volumes/Topaz\ Video\ AI\ 5.0.4 -quiet
        rm -rf $tmp_dir
    }
    
    function link_dylib() {
        cd /Applications/Topaz\ Video\ AI.app/Contents/Frameworks
        ln -s libaiengine.dylib libaiengine.3.dylib
        rm -rf libvideoai.dylib
        ln -s libvideoai.1.4.0.dylib libvideoai.dylib
        ln -s libvideoai.1.4.0.dylib libvideoai.1.dylib
    }
    
    function patch_login() {
        replace "/Applications/Topaz Video AI.app/Contents/MacOS/login" 'a3030054' '55000014'
        replace "/Applications/Topaz Video AI.app/Contents/MacOS/login" '0f8297000000' '660f1f440000'
        replace "/Applications/Topaz Video AI.app/Contents/MacOS/login" '0f8430060000' 'e93106000000'
    }
    
    function patch_libvideoai() {
        replace "/Applications/Topaz Video AI.app/Contents/Frameworks/libvideoai.1.4.0.dylib" '020054200080' '020054000080'
        replace "/Applications/Topaz Video AI.app/Contents/Frameworks/libvideoai.1.4.0.dylib" 'B0014180' 'B0004180'
    }
    
    function patch() {
        download_and_extract_login_libvideo
        link_dylib
        patch_login
        patch_libvideoai
    }
    
    patch
    prep "/Applications/Topaz Video AI.app"
    

    • Download and Install: Download Topaz Video AI 5.1.1 from the link provided above.

    • Apply the Patch: Run the patch script provided above.

    • Open the App: And you are all set!


      If you want to block Topaz Video AI from checking on version updates. You can block outgoing connections to the domain api.topazlabs.com using Little Snitch.
     
    Last edited: 3 Jun 2024
    jeanlsn, plamaka, RanarAA and 2 others like this.
  2. heger

    heger New Member

    Joined:
    20 Aug 2022
    Messages:
    12
    Likes Received:
    6
    Trophy Points:
    3
    I updated the patch again today because I noticed that the Topaz Labs watermark was added afterwards. Please apply the updated patch to fix this issue.
     
  3. arnieb

    arnieb Silver I

    Gold Member
    Joined:
    14 Feb 2020
    Messages:
    62
    Likes Received:
    188
    Trophy Points:
    0
    hi mate the patch is not working... any advices???
     
  4. xavier pixel

    xavier pixel Silver IV

    Gold Member No Limit
    Joined:
    10 Feb 2018
    Messages:
    143
    Likes Received:
    1,378
    Trophy Points:
    3
    Patch is working for me - THANKS.... :)
     
    heger likes this.
  5. heger

    heger New Member

    Joined:
    20 Aug 2022
    Messages:
    12
    Likes Received:
    6
    Trophy Points:
    3
    You're very welcome! :) Thanks for reporting it back to me
     
  6. heger

    heger New Member

    Joined:
    20 Aug 2022
    Messages:
    12
    Likes Received:
    6
    Trophy Points:
    3
    Thanks for letting me know. To help you better, could you please provide more details on what exactly is not working with the patch? Specifically, it would be useful to know:

    1. Are you seeing any error messages? If so, what do they say?
    2. What kind of Macbook are you using? Intel or M1/M2/M3?
    3. What kind of version of macOS are you running?
    4. Were you able to run an older version of Topaz Video AI before?

    With this information, I'll be able to better diagnose the problem and offer more specific advice ;)
     
  7. Leo_Chandr

    Leo_Chandr New Member

    Joined:
    6 Feb 2023
    Messages:
    20
    Likes Received:
    15
    Trophy Points:
    3
    Tnx!

    Everything works perfectly.
    Version 5.1.4
     
    heger likes this.
  8. heger

    heger New Member

    Joined:
    20 Aug 2022
    Messages:
    12
    Likes Received:
    6
    Trophy Points:
    3
    Thanks for mentioning that! Have a good one
     
Top