Statistics
| Branch: | Tag: | Revision:

streamers-build / peerstreamer-download-build-test.sh @ 771887a9

History | View | Annotate | Download (1.17 KB)

1
#!/bin/bash
2

    
3
mkdir PeerStreamer
4
cd PeerStreamer
5

    
6
#prepare x264 (optional)
7
git clone git://git.videolan.org/x264.git
8
cd x264
9
./configure --prefix=`pwd`/../x264-install/
10
make -j 2
11
make install
12
cd ..
13

    
14
#prepare ffmpeg
15
git clone git://git.videolan.org/ffmpeg.git
16
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
make -j 2
20
make install
21
cd ..
22

    
23
#prepare GRAPES
24
git clone http://halo.disi.unitn.it/~abeni/PublicGits/GRAPES.git
25
cd GRAPES
26
FFDIR=`pwd`/../ffmpeg make
27
cd ..
28

    
29
#prepare the Streamer
30
git clone http://halo.disi.unitn.it/~cskiraly/PublicGits/Streamers.git
31
cd Streamers
32
GRAPES=../GRAPES FFMPEG_DIR=../ffmpeg X264_DIR=../x264 make
33
cd ..
34

    
35
#get test scripts
36
git clone http://www.disi.unitn.it/~kiraly/SharedGits/Streamers-test.git
37

    
38
#run a test
39
mkdir test
40
cd test
41
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