Skip to content

Instantly share code, notes, and snippets.

@ntbps
ntbps / build_ffmpeg_examples_on_osx.sh
Last active October 30, 2019 05:46
Build ffmpeg examples on MacOS with the installed ffmpeg
#!/bin/bash
# 1. brew install ffmpeg
# 2. git clone https://git.ffmpeg.org/ffmpeg.git
# 3. put this script under path ffmpeg/doc/examples
# 4. cd ffmpeg/doc/examples && ./build_on_osx.sh decode_video.c
FFMPEG_DEPS="/usr/local/Cellar/ffmpeg/4.1.3_1"
sample="${1#*./}"
sample="${sample%.c*}"
smaple_file="./${sample}.c"