# M1 맥에서 FFmpeg 빌드하기

> Clean Markdown view of GeekNews topic #3355. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=3355](https://news.hada.io/topic?id=3355)
- GeekNews Markdown: [https://news.hada.io/topic/3355.md](https://news.hada.io/topic/3355.md)
- Type: news
- Author: [ssssut](https://news.hada.io/@ssssut)
- Published: 2020-12-10T03:09:06+09:00
- Updated: 2020-12-10T03:09:06+09:00
- Original source: [github.com](https://github.com/ssut/ffmpeg-on-apple-silicon)
- Points: 7
- Comments: 4

## Topic Body

몇 시간의 고생 끝에 M1 맥에서 성공적으로 arm64 네이티브 FFmpeg를 빌드 했습니다. 빌드 스크립트를 올려두었으니 필요하신 분은 확인하시면 됩니다.

## Comments



### Comment 3815

- Author: kunggom
- Created: 2020-12-10T12:41:59+09:00
- Points: 1

빌드 시간은 얼마나 걸리는지 궁금하군요.

### Comment 3818

- Author: ssssut
- Created: 2020-12-10T14:44:00+09:00
- Points: 1
- Parent comment: 3815
- Depth: 1

같은 옵션에 arch만 x86_64로 바꾸고 인텔 맥북 프로 16인치(i7-9750H)에서 165초 걸렸네요.

### Comment 3817

- Author: ssssut
- Created: 2020-12-10T13:47:09+09:00
- Points: 1
- Parent comment: 3815
- Depth: 1

디펜던시 빌드 시간 제외 (외부 라이브러리 빌드도 인텔과 비교 불가능할 정도로 훨씬 빠릅니다)

제 M1 맥 미니에서 다음 옵션으로 약 70초 걸렸습니다.

--prefix=/Users/ssut/dev/ffmpeg-build/workdir/sw --extra-cflags=-fno-stack-check --arch=arm64 --cc=/usr/bin/clang --enable-fontconfig --enable-gpl --enable-libopus --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-libass --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libvpx --enable-libaom --enable-libvidstab --enable-libsnappy --enable-version3 --pkg-config-flags=--static --disable-ffplay --enable-postproc --enable-nonfree --enable-runtime-cpudetect

### Comment 3808

- Author: ffdd270
- Created: 2020-12-10T10:35:14+09:00
- Points: 1

이제 정말 맥북만 오면.... 다 해볼 수 있겠군여! 'ㅁ'! 감사합니당!
