Skip to content

Instantly share code, notes, and snippets.

@moshegottlieb
Created August 18, 2025 10:15
Show Gist options
  • Select an option

  • Save moshegottlieb/b21fa414c2f3d5c992c1a1bc9ed5d1e6 to your computer and use it in GitHub Desktop.

Select an option

Save moshegottlieb/b21fa414c2f3d5c992c1a1bc9ed5d1e6 to your computer and use it in GitHub Desktop.
Build script for macOS Sequoia Apple Silicon for Avidemux
#!/usr/bin/env bash
set -e
mountpoint="$(pwd)/ramdrive"
gb_size=3
mkdir -p "${mountpoint}"
# Is it mounted?
function check_mount() {
mount | grep -q "${mountpoint}"
}
function mount_ramdrive {
if check_mount; then
echo "Error: A RAM drive is already mounted at ${mountpoint}"
return 1
fi
# Calculate the size of the RAM drive in 512-byte blocks
size=$(($gb_size * 1024 * 1024 * 2))
# Create and format the RAM drive
device=$(hdid -nomount ram://$size)
newfs_hfs -v "RAM drive" -s $device
# Mount the RAM drive
diskutil mount -mountPoint "${mountpoint}" $device
}
function umount_ramdrive {
if check_mount; then
diskutil eject "$mountpoint"
else
echo "Not mounted"
fi
}
# Install dependencies
brew install cmake pkg-config nasm yasm qt xvid x264 x265 libvpx aom opus fdk-aac lame libass mp4v2 a52dec
# We want a ram drive because the build env requires a case sensitive FS, which you _probably_ don't have
mount_ramdrive
pushd ramdrive
# Clone git repo
git clone --recursive https://github.com/mean00/avidemux2.git
pushd avidemux2
git submodule update --init --recursive
# run the build script
bash bootStrapMacOS_Monterey.arm64.sh
popd
popd
# Copy the installer
cp ramdrive/avidemux2/installer/*.dmg ./
# unmount RAM drive
umount_ramdrive
@jabbo06

jabbo06 commented Nov 4, 2025

Copy link
Copy Markdown

Thank you, I just tested it on Tahoe !

@matvit92

matvit92 commented May 15, 2026

Copy link
Copy Markdown

Not working for me on macOS 26.5, can you update it to work?

In file included from /Users/xxx/AD/ramdrive/avidemux2/avidemux_core/ADM_core/src/ADM_cpuCap.cpp:13:
In file included from /Users/xxx/AD/ramdrive/avidemux2/avidemux_core/ADM_core/include/ADM_default.h:41:
/Users/xxx/AD/ramdrive/avidemux2/avidemux_core/ADM_core/include/ADM_assert.h:42:10: fatal error: 'new' file not found
42 | #include
| ^~~~~
1 error generated.
make[2]: *** [ADM_core/src/CMakeFiles/ADM_core6.dir/ADM_cpuCap.cpp.o] Error 1
make[1]: *** [ADM_core/src/CMakeFiles/ADM_core6.dir/all] Error 2
make: *** [all] Error 2
** Failed at make **

@olivier256

Copy link
Copy Markdown

Worked for me flawlessly on MacBook Air M5 16GB.
Very simple and straightforward.
Bravo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment