Skip to content

Instantly share code, notes, and snippets.

@jazzyjackson
Created December 28, 2024 18:39
Show Gist options
  • Save jazzyjackson/f3aabb55350455d614f70da97cf7d27a to your computer and use it in GitHub Desktop.
Save jazzyjackson/f3aabb55350455d614f70da97cf7d27a to your computer and use it in GitHub Desktop.

Revisions

  1. jazzyjackson created this gist Dec 28, 2024.
    26 changes: 26 additions & 0 deletions cmds.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    # ensure mac is updated to 15.2
    # install xcode from app store
    xcode-select --install
    sudo xcodebuild -license
    sudo xcodebuild -runFirstLaunch
    # clean up install on sequoia so macports can find clang
    sudo rm -rf /Library/Developer/CommandLineTools/usr/include/c++

    # install macports from .pkg file available at the 'Sequoia' Link
    # https://www.macports.org/install.php
    softwareupdate --install-rosetta
    sudo port install ffmpeg
    sudo port install chafa
    sudo port install alacritty

    git clone https://github.com/wong-justin/vic.git
    cd vic
    cargo build
    sudo cp target/debug/vic /opt/local/bin/

    # now in the same folder as your video
    curl https://gist.github.com/nielsbom/c86c504fa5fd61ae9530caec654c6ae6/raw/193c04aadbaa1bd54e9c68055eecc52d14727aba/split-to-scenes.sh > split.sh
    curl https://gist.github.com/jazzyjackson/bf9282df0a40d7ef471e6676f282831e/raw/266619cbdaac2c3a2ee4a7cbf526d7ed8f6e4c84/merge-scenes.sh > merge.sh

    chmod +x merge.sh
    chmod +x split.sh