-
Notifications
You must be signed in to change notification settings - Fork 0
/
mp4live_encoder_check.sh
executable file
·66 lines (62 loc) · 1.72 KB
/
mp4live_encoder_check.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/sh
if grep HAVE_MP4LIVE mpeg4ip_config.h | grep define > /dev/null; then
echo
else
echo "MP4Live is not installed (requires V4L2 - check log)"
exit
fi
if grep HAVE_GTK mpeg4ip_config.h | grep define > /dev/null; then
echo
else
echo "You do not have GTK libraries installed; there will be no mp4live gui"
fi
echo
echo "Mp4live encoder report:"
have_ffmpeg=no
have_xvid=no
have_x264=no
have_lame=no
have_twolame=no
have_faac=no
have_one=no
if grep HAVE_FFMPEG mpeg4ip_config.h | grep define > /dev/null; then
echo " ffmpeg encoder is installed"
have_one=yes
else
echo "*** ffmpeg encoder is not installed"
fi
if grep HAVE_XVID mpeg4ip_config.h | grep define > /dev/null; then
echo " xvid encoder is installed"
have_one=yes
else
echo "*** xvid encoder is not installed"
fi
if grep HAVE_X264 mpeg4ip_config.h | grep define > /dev/null; then
echo " x264 encoder is installed"
have_one=yes
else
echo "*** x264 encoder is not installed"
fi
if grep HAVE_LAME mpeg4ip_config.h | grep define > /dev/null; then
echo " lame encoder is installed"
have_one=yes
else
echo "*** lame encoder is not installed"
fi
if grep HAVE_FAAC mpeg4ip_config.h | grep define > /dev/null; then
echo " faac encoder is installed"
have_one=yes
else
echo "*** faac encoder is not installed"
fi
if grep HAVE_TWOLAME mpeg4ip_config.h | grep define > /dev/null; then
echo " twolame encoder is installed"
have_one=yes
else
echo "*** twolame encoder is not installed"
fi
if test have_one = "no"; then
echo
echo "There are no encoders installed other than the native H.261 and G.711 encoders"
echo "If you wish other encoders, please see doc/MAIN_README.html, then rerun bootstrap"
fi