←back to thread

2039 points Gadiguibou | 1 comments | | HN request time: 0.24s | source
Show context
daneel_w ◴[] No.36494213[source]
afconvert(1) lets you convert between various audio formats - most noteworthy is that it gives you access to Core Audio's superior AAC encoder without having to use iTunes/Music:

  afconvert music.wav -o music_160kbps_aac.m4a -b 160000 -q 127 -s 2 -f m4af -d 'aac '
lipo(1) lets you operate (replace/extract/thin/etc) on executables and libraries to tailor their supported architectures:

  lipo <universal exe/dylib> -thin arm64e -output <new apple silicon-only exe/dylib>
replies(1): >>36497032 #
1. daneel_w ◴[] No.36497032[source]
Also, using hdiutil(1) and diskutil(8) to create a RAM-disk:

  # 500 megabytes disk image
  mb=$((500*2048))
  diskutil eraseVolume ExFAT my_ramdisk `hdiutil attach -nomount ram://$mb`