forked from Miouyouyou/FFmpeg-V4L2-Request
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile.sh
29 lines (24 loc) · 783 Bytes
/
compile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
BASE_URL="git://source.ffmpeg.org/ffmpeg.git"
# Clone if necessary
if [ ! -d "ffmpeg" ]; then
git clone $BASE_URL --depth 1
fi
# Patch if not already patched
cd ffmpeg &&
if [ ! -e "PATCHED" ]; then
git am ../patches/*.patch &&
touch PATCHED &&
git add . && git commit -m "Patched by Myy"
fi
# Configure and die quickly if v4l2 is not enabled.
# I don't understand why the configure script don't die by itself
# when you request a feature that cannot be compiled...
./configure --enable-v4l2-request --enable-libdrm --enable-libudev --enable-shared --enable-pic | grep "v4l2_request"
if [ ! $? = 0 ]; then
echo "Unable to enable v4l2 request support on FFmpeg"
echo "See ffmpeg/ffbuild/config.log"
exit
fi
# Compile
make
# You'll still have to do make install yourself !