После пяти минут работы, трансляция не происходит, изображения нет. Связка
root@videosat:~# cat /usr/local/bin/runsasc
#!/bin/bash
# Script to automate running of SASC-NG and Drivers
# Driver directory
DRIVERDIR="/lib/modules/`uname -r`/misc/"
# Path to SASC-NG binary
SASCPRG="sasc-ng"
# Path to CAM Directory
CAMDIR="/etc/camfiles/"
# Number of DVB Cards you have in your system dedicated to SASC-NG
ADAPTERS="3"
# Startup Options passed to SASC-NG. Adjust according to your devices.
#OPTIONS="-r 0 -v 2 -o"
#OPTIONS="-j 0:2 -j 1:3 -l /var/log/sasc-ng.log --cam-budget --sid-allpid --sid-nocache -b 20M --cam-dir"
OPTIONS="-j 1:3 -j 2:4 -l /var/log/sasc-ng.log --sid-allpid -b 20M --cam-dir"
#OPTIONS2="-j 2:4 -l /var/log/sasc-ng2.log --sid-allpid --sid-nocache -b 20M --cam-dir"
# Number of times runsasc will attempt to restart SASC-NG after a crash has occured (set to 0 for no limit)
MAXTRIES=10
# Minimum runtime required (in seconds) for SASC-NG to continue restart attempts
MINRUN=20
## End Configuration Section ##
SASCCMD="$SASCPRG $OPTIONS $CAMDIR"
SASCCMD2="$SASCPRG $OPTIONS2 $CAMDIR"
KILL="/usr/bin/killall -q -TERM"
# Detect whether the DVBLooopback driver is already loaded
# and return 0 if it *is* loaded, 1 if not:
function DriverLoaded()
{
grep -qse dvbloopback /proc/modules
}
# Load all DVBLoopback driver modules needed for your hardware:
function LoadDriver()
{
modprobe dvbloopback num_adapters=$ADAPTERS
sleep 5
}
# Unload all DVBLoopback driver modules loaded in LoadDriver():
function UnloadDriver()
{
rmmod dvbloopback
}
# Load driver if it hasn't been loaded already:
if ! DriverLoaded; then
LoadDriver
fi
LASTRESTART=$(date +%s)
LOOPCOUNT=0
while (true) do
if [ $LOOPCOUNT -le $MAXTRIES ] || [ $MAXTRIES -eq 0 ]; then
eval "screen -D -m -S sasc-ng $SASCCMD &"
# Wait for SASC-NG to initialize then do rest
sleep 10
touch /tmp/SASC_COMPLETE
else
$KILL runsasc
fi
# Remember PID of SASC-NG process
PID=$!
# Wait for SASC-NG to end or signal to arrive
wait $PID
# Remember return value of SASC-NG
RET=$?
if test $RET -eq 0 -o $RET -eq 2; then exit; fi
TIMEOFDEATH=$(date +%s)
RUNTIME=$((TIMEOFDEATH - LASTRESTART))
if [ $TIMEOFDEATH -le $(($LASTRESTART + $MINRUN)) ]; then
echo "`date` SASC-NG crashed in $RUNTIME seconds. Minimum required runtime for SASC-NG is $MINRUN seconds. Killing runsasc process..."
$KILL runsasc
fi
echo "`date` Reloading DVBLoopback drivers"
$KILL sasc-ng
sleep 10
UnloadDriver
LoadDriver
LASTRESTART=$(date +%s)
LOOPCOUNT=$((LOOPCOUNT+1))
echo "`date` Restarting SASC-NG $LOOPCOUNT time(s). Maximum retries set to $MAXTRIES"
done
root@videosat:~# cat /etc/camfiles/cardclient.conf
#
# Comment lines can start with # or;
#
# every client line starts with the client name, followed by some arguments:
# 'hostname' is the name of the server
# 'port' is the port on the server
# 'emm' is a flag to allow EMM transfers to the server
# (0=disabled 1=enabled)
# 'caid' (optional) caid on which this client should work
# 'mask' (optional) mask for caid e.g. caid=1700 mask=FF00 would allow
# anything between 1700 & 17FF.
# Default is 1700 & FF00. If only caid is given mask is FFFF.
# You may give multiple caid/mask values comma separated
# (e.g. 1702,1722,0d0c/ff00).
# 'username' is the login username
# 'password' is the login password
#
# radegast client
#radegast:hostname:port:emm/caid/mask
#
# newcamd client
# 'cfgkey' is the config key (28bytes)
#newcamd:hostname:port:emm/caid/mask:username:password:cfgKey
newcamd:94.100.28.210:34000:0/0500/ffff:looa:epjkff:0102030405060708091011121314
#
# gbox client
#
# NOTE: hostname & port will be ignore. GBOX must be runnning on the local
# machine. For convinience you should choose localhost:8004
#gbox:hostname:port:emm/caid/mask
#newcamd:hostname:port:emm/caid/mask:username:password:cfgKey
#newcamd:localhost:15000:1/0602/ffff:dummy:dummy:0102030405060708091011121314
#radegast:94.100.28.210:10001:0/0100/ffff
http {
port 8001;
};
adapter 3 {
packet-buffer 50;
stat-interval 110;
stuck-interval 200;
budget-mode 0;
dvb-s {
#lnb-sharing yes;
lnb {
lof1 10750000;
lof2 10750000;
slof 10750000;
};
transponder {
frequency 12245000;
polarisation v;
symbol-rate 27500000;
};
};
stream {
name "test";
input {
pnr 20705;
};
output-http {
url /tv/1;
};
};
stream {
name "test2";
input {
pnr 10125;
};
output-http {
url /tv/2;
};
};
};
adapter 4 {
packet-buffer 100;
stat-interval 200;
stuck-interval 200;
budget-mode 0;
dvb-s {
#lnb-sharing yes;
lnb {
lof1 10750000;
lof2 10750000;
slof 10750000;
};
transponder {
frequency 12322000;
polarisation v;
symbol-rate 27500000;
};
};
stream {
name "test1";
input {
pnr 10108;
};
output-http {
url /tv2/1;
};
};
stream {
name "test2";
input {
pnr 10109;
};
output-http {
url /tv2/2;
};
};
};
2009-12-30 17:43:50.780 stream_http: connection from 188.187.12.200 for /tv/1
2009-12-30 17:43:56.036 stream_http: dropping connection to 188.187.12.200 for /tv/1
2009-12-30 17:43:58.287 stream_http: connection from 188.187.12.200 for /tv2/1
2009-12-30 17:45:08.291 dvr: inputstats: 4 pids 2000 pkt/s 376116 byte/s
2009-12-30 17:45:12.908 stream_http: dropping connection to 188.187.12.200 for /tv2/1
Идет непонятный паток((
Что же делать
Одна работает нормально