-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathffmpeg-shared
65 lines (41 loc) · 3.07 KB
/
ffmpeg-shared
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
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
git clone --depth 1 http://github.com/yasm/yasm.git
cd yasm
./autogen.sh
autoreconf -fiv
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin"
make
make install
make distclean
cd ~/ffmpeg_sources
git clone --depth 1 http://git.videolan.org/git/x264.git
cd x264
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static --enable-shared
make; make install;make distclean
yum -y install hg
yum -y install cmake
cd ~/ffmpeg_sources
hg clone https://bitbucket.org/multicoreware/x265; cd ~/ffmpeg_sources/x265/build/linux
#wget https://bitbucket.org/multicoreware/x265/downloads/x265_1.9.tar.gz; tar xvzf x265_1.9.tar.gz;cd ~/ffmpeg_sources/x265_1.9/build/linux;
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_SHARED:bool=off ../../source
make;make install
cd ~/ffmpeg_sources;git clone --depth 1 http://git.code.sf.net/p/opencore-amr/fdk-aac;cd fdk-aac;autoreconf -fiv;./configure --prefix="$HOME/ffmpeg_build" --enable-shared;make;make install;make distclean;
cd ~/ffmpeg_sources;curl -L -O http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz;tar xzvf lame-3.99.5.tar.gz;cd lame-3.99.5;./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-nasm --enable-shared;make;make install;make distclean;
cd ~/ffmpeg_sources;git clone http://git.opus-codec.org/opus.git;cd opus;autoreconf -fiv;./autogen.sh;./configure --prefix="$HOME/ffmpeg_build" ;make;make install;make distclean;
cd ~/ffmpeg_sources;curl -O http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz;tar xzvf libogg-1.3.2.tar.gz;cd libogg-1.3.2;./configure --prefix="$HOME/ffmpeg_build" ;make;make install;make distclean;
cd ~/ffmpeg_sources;curl -O http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.4.tar.gz;tar xzvf libvorbis-1.3.4.tar.gz;cd libvorbis-1.3.4;LDFLAGS="-L$HOME/ffmeg_build/lib" CPPFLAGS="-I$HOME/ffmpeg_build/include" ./configure --prefix="$HOME/ffmpeg_build" --with-ogg="$HOME/ffmpeg_build" ;make;make install;make distclean
cd ~/ffmpeg_sources;git clone --depth 1 https://chromium.googlesource.com/webm/libvpx.git;cd libvpx;./configure --prefix="$HOME/ffmpeg_build" --enable-shared --disable-examples;make;make install;make clean
cd ~/ffmpeg_sources
git clone http://source.ffmpeg.org/git/ffmpeg.git
cd ffmpeg
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --pkg-config-flags="--static" --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libx264 --enable-shared --enable-libx265 --enable-libvorbis
make
make install
make distclean
hash -r
echo -e "ffmpegffmpeg:
error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No such file or directory\n
if error:after command: ffmpeg -verison\n then run this command:\n
#echo '/root/ffmpeg_build/lib' >> /etc/ld.so.conf
"