Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus| git diff --name-only --cached --diff-filter=ACMRTUXB | while read filename; do php-cs-fixer --level=symfony fix $filename; done; |
| brew install ffmpeg \ | |
| --with-dcadec \ | |
| --with-faac \ | |
| --with-fdk-aac \ | |
| --with-ffplay \ | |
| --with-fontconfig \ | |
| --with-freetype \ | |
| --with-frei0r \ | |
| --with-libass \ | |
| --with-libbluray \ |
exFAT support on macOS seems to have some bugs because my external drives with exFAT formatting will randomly get corrupted.
If Disk Utility is unable to repair, consider trying this:
diskutil list to find the right drive id.disk1s1sudo fsck_exfat -d <id from above>. eg sudo fsck_exfat -d disk1s3-d is debug so you'll see all your files output as they're processed.| <?php | |
| use App\Kernel; | |
| use Symfony\Component\Debug\Debug; | |
| use Symfony\Component\Dotenv\Dotenv; | |
| use Symfony\Component\HttpFoundation\Request; | |
| require __DIR__.'/../vendor/autoload.php'; | |
| // The check is to ensure we don't use .env in production |
| #1. find files matching a pattern | |
| #2. use mogrify to resize them. | |
| # -quality 94 = jpeg quality. | |
| # -verbose so you can tell where it's at in the directory tree | |
| # -resize 2000x\> = resize to a maximum of 2000px wide, automatic height (2000x). Only resize larger images, no upscaling (>). Because > is a special character it is escaped with \ | |
| # Aspect ratio is automatically maintained. | |
| #3. write new image in place | |
| #TEST THIS THOROUGHLY AND KEEP A BACKUP OF YOUR ORIGINAL DIRECTORY TREE | |