streamers-build / peerstreamer-download-build-test.sh @ f875f8f9
History | View | Annotate | Download (1.22 KB)
1 |
#!/bin/bash |
---|---|
2 |
|
3 |
mkdir PeerStreamer |
4 |
cd PeerStreamer |
5 |
|
6 |
BASEDIR=`pwd` |
7 |
|
8 |
#prepare x264 (optional) |
9 |
git clone git://git.videolan.org/x264.git |
10 |
cd x264 |
11 |
./configure --prefix=$BASEDIR/x264-install/ |
12 |
make -j 2 |
13 |
make install |
14 |
cd .. |
15 |
|
16 |
#prepare ffmpeg |
17 |
git clone git://git.videolan.org/ffmpeg.git |
18 |
cd ffmpeg |
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 |
21 |
make -j 2 |
22 |
make install |
23 |
cd .. |
24 |
|
25 |
#prepare GRAPES |
26 |
git clone http://halo.disi.unitn.it/~abeni/PublicGits/GRAPES.git |
27 |
cd GRAPES |
28 |
FFDIR=$BASEDIR/ffmpeg make |
29 |
cd .. |
30 |
|
31 |
#prepare the Streamer |
32 |
git clone http://halo.disi.unitn.it/~cskiraly/PublicGits/Streamers.git |
33 |
cd Streamers |
34 |
GRAPES=$BASEDIR/GRAPES FFMPEG_DIR=$BASEDIR/ffmpeg X264_DIR=$BASEDIR/x264 make |
35 |
cd .. |
36 |
|
37 |
#get test scripts |
38 |
git clone http://www.disi.unitn.it/~kiraly/SharedGits/Streamers-test.git |
39 |
|
40 |
#run a test |
41 |
mkdir test |
42 |
cd test |
43 |
wget http://halo.disi.unitn.it/~cskiraly/video/test.ts |
44 |
$BASEDIR/Streamers-test/test.sh -e $BASEDIR/Streamers/streamer-grapes -N 0 -X 0 -v test.ts -o "$BASEDIR/ffmpeg/ffplay -" -O 1 |