Revision 63b72e10 scripts/source.sh

View differences:

scripts/source.sh
7 7
AUDIO_BPS=64000
8 8
VIDEO_CODEC=mpeg4
9 9
AUDIO_CODEC=libmp3lame
10
IPC_IP="127.0.0.1"
10 11
IPC_PORT=7777
11 12

  
12 13
PORT=6666
......
24 25
   echo "  -l : the stream is a live source with its own timing"
25 26
   echo "  -p port: UDP port used by the streamer ($PORT)"
26 27
   echo "  -m copies: copies of the stream sent out directly by the source ($SOURCE_COPIES)"
28
   echo "  -I ip: IPC ip ($IPC_IP)"
29
   echo "  -P port: IPC port ($IPC_PORT)"
27 30
   exit $1
28 31
}
29 32

  
30
while getopts "f:v:a:V:A:lp:m:h" opt; do
33
while getopts "f:v:a:V:A:lp:m:hI:P:" opt; do
31 34
   case $opt in
32 35

  
33 36
   f )  FILE=$OPTARG ;;
......
38 41
   l )  CHUNKER_XTRA+=" -l" ;;
39 42
   p )  PORT=$OPTARG ;;
40 43
   m )  SOURCE_COPIES=$OPTARG ;;
44
   I )  IPC_IP=$OPTARG ;;
45
   P )  IPC_PORT=$OPTARG ;;
41 46
   h )  usage 0 ;;
42 47
   \?)  usage 1 ;;
43 48
   esac
......
45 50

  
46 51

  
47 52
# start the chunker
48
./chunker_streamer -i $FILE -a $AUDIO_BPS -v $VIDEO_BPS -A $AUDIO_CODEC -V $VIDEO_CODEC -F tcp://127.0.0.1:$IPC_PORT $CHUNKER_XTRA  2>chunker_streamer.err 1>chunker_streamer.log &
53
./chunker_streamer -i $FILE -a $AUDIO_BPS -v $VIDEO_BPS -A $AUDIO_CODEC -V $VIDEO_CODEC -F tcp://$IPC_IP:$IPC_PORT $CHUNKER_XTRA  2>&1 1>chunker_streamer.log | tee chunker_streamer.err &
49 54
CPID=$!
50 55

  
51 56
# start a streamer as well

Also available in: Unified diff