Revision f875f8f9 peerstreamer-download-build-test.sh
peerstreamer-download-build-test.sh | ||
---|---|---|
3 | 3 |
mkdir PeerStreamer |
4 | 4 |
cd PeerStreamer |
5 | 5 |
|
6 |
BASEDIR=`pwd` |
|
7 |
|
|
6 | 8 |
#prepare x264 (optional) |
7 | 9 |
git clone git://git.videolan.org/x264.git |
8 | 10 |
cd x264 |
9 |
./configure --prefix=`pwd`/../x264-install/
|
|
11 |
./configure --prefix=$BASEDIR/x264-install/
|
|
10 | 12 |
make -j 2 |
11 | 13 |
make install |
12 | 14 |
cd .. |
... | ... | |
14 | 16 |
#prepare ffmpeg |
15 | 17 |
git clone git://git.videolan.org/ffmpeg.git |
16 | 18 |
cd ffmpeg |
17 |
./configure --enable-libx264 --enable-gpl --enable-pthreads --extra-cflags=-I`pwd`/../x264-install/include --extra-ldflags=-L`pwd`/../x264-install/lib --prefix=`pwd`/../ffmpeg-install
|
|
18 |
#in case x264 is not reqired (do we need the encoding?): ./configure --enable-gpl --enable-pthreads --prefix=`pwd`/../ffmpeg-install
|
|
19 |
./configure --enable-libx264 --enable-gpl --enable-pthreads --extra-cflags=-I$BASEDIR/x264-install/include --extra-ldflags=-L$BASEDIR/x264-install/lib --prefix=$BASEDIR/ffmpeg-install
|
|
20 |
#in case x264 is not reqired (do we need the encoding?): ./configure --enable-gpl --enable-pthreads --prefix=$BASEDIR/ffmpeg-install
|
|
19 | 21 |
make -j 2 |
20 | 22 |
make install |
21 | 23 |
cd .. |
... | ... | |
23 | 25 |
#prepare GRAPES |
24 | 26 |
git clone http://halo.disi.unitn.it/~abeni/PublicGits/GRAPES.git |
25 | 27 |
cd GRAPES |
26 |
FFDIR=`pwd`/../ffmpeg make
|
|
28 |
FFDIR=$BASEDIR/ffmpeg make
|
|
27 | 29 |
cd .. |
28 | 30 |
|
29 | 31 |
#prepare the Streamer |
30 | 32 |
git clone http://halo.disi.unitn.it/~cskiraly/PublicGits/Streamers.git |
31 | 33 |
cd Streamers |
32 |
GRAPES=../GRAPES FFMPEG_DIR=../ffmpeg X264_DIR=../x264 make
|
|
34 |
GRAPES=$BASEDIR/GRAPES FFMPEG_DIR=$BASEDIR/ffmpeg X264_DIR=$BASEDIR/x264 make
|
|
33 | 35 |
cd .. |
34 | 36 |
|
35 | 37 |
#get test scripts |
... | ... | |
39 | 41 |
mkdir test |
40 | 42 |
cd test |
41 | 43 |
wget http://halo.disi.unitn.it/~cskiraly/video/test.ts |
42 |
../Streamers-test/test.sh -e ../Streamers/streamer-grapes -N 0 -X 0 -v test.ts -o "../ffmpeg/ffplay -" -O 1 |
|
44 |
$BASEDIR/Streamers-test/test.sh -e $BASEDIR/Streamers/streamer-grapes -N 0 -X 0 -v test.ts -o "$BASEDIR/ffmpeg/ffplay -" -O 1 |
Also available in: Unified diff