sasc-ng
Just a page about sasc-ng.
Links
Dolot - install SASC-NG, Getting PayTV to work with MythTV, CCcam forum - HowTo: MythTV with SASC-ng (Ubuntu 10.10), yatvgrabber - init.d script for sasc-ng, another MythTV howto,
back to Digital TV page.
History
2021-09-29: I re-created this page on my self-hosted web server.
2012-09-05: f4 - sdb5 - installing sasc-ng and dvbloopback on Xubuntu 12.04, with kernel 3.2.24:
tingo@kg-f4:~/work/sasc/sc$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.1 LTS Release: 12.04 Codename: precise tingo@kg-f4:~/work/sasc/sc$ uname -a Linux kg-f4 3.2.24 #2 SMP Wed Sep 5 01:14:55 CEST 2012 x86_64 x86_64 x86_64 GNU/Linux
clean
tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ make clean
configure (probably not neccessary, I dd this the last time)
tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ ./configure Using C++ compiler: g++ Using compile type debug Processor capabilities: native ( mmx sse sse2 ) Trying various FFdecsa optimizations... PARALLEL_32_INT: 102 PARALLEL_64_2INT: 101 PARALLEL_64_LONG: 162 PARALLEL_64_MMX: 143 PARALLEL_128_2LONG: 138 PARALLEL_128_2MMX: 122 PARALLEL_128_SSE: 156 PARALLEL_128_SSE2: 157 Choosing PARALLEL_MODE = PARALLEL_64_LONG
compile
tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ make
make dvbloopback module
tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ make module cd dvbloopback/module && make make[1]: Entering directory `/home/tingo/work/sasc/sc/contrib/sasc-ng/dvbloopback/module' echo "Skipping Modver " Skipping Modver ./config_dvb.pl "BUILD_DIR=/lib/modules/3.2.24/build" "EXTRA_CFLAGS=-Idrivers/media/dvb/dvb-core/ -I/home/tingo/work/sasc/sc/contrib/sasc-ng/dvbloopback/module" Found dvbdev.h from 2.6.22 or later make -C /lib/modules/3.2.24/build M=/home/tingo/work/sasc/sc/contrib/sasc-ng/dvbloopback/module modules make[2]: Entering directory `/storage/kernel/linux-source-3.2.0' CC [M] /home/tingo/work/sasc/sc/contrib/sasc-ng/dvbloopback/module/dvb_loopback.o CC [M] /home/tingo/work/sasc/sc/contrib/sasc-ng/dvbloopback/module/dvblb_proc.o CC [M] /home/tingo/work/sasc/sc/contrib/sasc-ng/dvbloopback/module/dvblb_forward.o LD [M] /home/tingo/work/sasc/sc/contrib/sasc-ng/dvbloopback/module/dvbloopback.o Building modules, stage 2. MODPOST 1 modules CC /home/tingo/work/sasc/sc/contrib/sasc-ng/dvbloopback/module/dvbloopback.mod.o LD [M] /home/tingo/work/sasc/sc/contrib/sasc-ng/dvbloopback/module/dvbloopback.ko make[2]: Leaving directory `/storage/kernel/linux-source-3.2.0' make[1]: Leaving directory `/home/tingo/work/sasc/sc/contrib/sasc-ng/dvbloopback/module'
install sasc-ng
tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ sudo cp sasc-ng /usr/local/bin/
install dvbloopback module
tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ sudo mkdir /lib/modules/`uname -r`/misc tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ sudo install dvbloopback.ko /lib/modules/`uname -r`/misc/
is it there?
tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ ls -l /lib/modules/`uname -r`/misc total 532 -rwxr-xr-x 1 root root 542231 Sep 5 22:52 dvbloopback.ko
ok.
2012-09-02: f4 - sdb5 - installing sasc-ng on Xubuntu 12.04, with a standard kernel. prepare
tingo@kg-f4:~/work$ mkdir sasc tingo@kg-f4:~/work$ cd sasc tingo@kg-f4:~/work/sasc$
get source
tingo@kg-f4:~/work/sasc$ hg clone http://85.17.209.13:6100/sc destination directory: sc requesting all changes adding changesets adding manifests adding file changes added 621 changesets with 1999 changes to 511 files updating to branch trunk 320 files updated, 0 files merged, 0 files removed, 0 files unresolved
configure it:
tingo@kg-f4:~/work/sasc/sc$ chmod +x contrib/sasc-ng/configure tingo@kg-f4:~/work/sasc/sc$ chmod +x contrib/sasc-ng/dvbloopback/module/config_dvb.pl tingo@kg-f4:~/work/sasc/sc$ cd contrib/sasc-ng tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ ./configure Using C++ compiler: g++ Using compile type debug ./configure: 33: test: -gt: unexpected operator ./configure: 35: test: -eq: unexpected operator Processor capabilities: k8 ( mmx sse sse2 ) Trying various FFdecsa optimizations... PARALLEL_32_INT: build failed PARALLEL_64_2INT: build failed PARALLEL_64_LONG: build failed PARALLEL_64_MMX: build failed PARALLEL_128_2LONG: build failed PARALLEL_128_2MMX: build failed PARALLEL_128_SSE: build failed PARALLEL_128_SSE2: build failed Choosing PARALLEL_MODE = PARALLEL_32_INT
Ok, I'm missing a few things. After installing them (see f4 page), configure works:
tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ ./configure Using C++ compiler: g++ Using compile type debug Processor capabilities: native ( mmx sse sse2 ) Trying various FFdecsa optimizations... PARALLEL_32_INT: 102 PARALLEL_64_2INT: 103 PARALLEL_64_LONG: 162 PARALLEL_64_MMX: 144 PARALLEL_128_2LONG: 138 PARALLEL_128_2MMX: 118 PARALLEL_128_SSE: 157 PARALLEL_128_SSE2: 157 Choosing PARALLEL_MODE = PARALLEL_64_LONG
Good. compile
tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ make
make dvbloopback module
tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ make module
install sasc-ng
tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ sudo cp sasc-ng /usr/local/bin/
install dvbloopback module
tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ sudo mkdir /lib/modules/`uname -r`/misc tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ sudo install dvbloopback.ko /lib/modules/`uname -r`/misc/
That's it for installing it.
2012-02-10: testing dvbloopback and sasc-ng: after reboot, set up the dbvloopback module again:
sudo modprobe dvbloopback num_adapters=2
start sasc-ng:
sudo sasc-ng -j 0:2 -j 1:3 --cam-budget --cam-dir ~/work/sasc
testing with w_scan: first we scan the real adapter (1):
w_scan -c NO -fc -a 1 -k >> test_1.dvb
the scan took about 27 minutes. then the loopback adapter:
w_scan -c NO -fc -a 3 -k >> test_2.dvb
the test took xx minutes.
2012-02-10: Xubuntu - when compiling sasc-ng, it is essential to confogure against the dvb drivers you have installed:
tingo@kg-f4:~/work/sasc/sc_603$ pwd /home/tingo/work/sasc/sc_603 tingo@kg-f4:~/work/sasc/sc_603$ cd contrib/sasc-ng tingo@kg-f4:~/work/sasc/sc_603/contrib/sasc-ng$ ./configure --dvb-dir=~/work/media_build Using C++ compiler: g++ Using compile type debug Processor capabilities: native ( mmx sse sse2 ) Trying various FFdecsa optimizations... PARALLEL_32_INT: 101 PARALLEL_64_2INT: 98 PARALLEL_64_LONG: 159 PARALLEL_64_MMX: 139 PARALLEL_128_2LONG: 134 PARALLEL_128_2MMX: 118 PARALLEL_128_SSE: 152 PARALLEL_128_SSE2: 153 Choosing PARALLEL_MODE = PARALLEL_64_LONG Using DVB_DIR: /home/tingo/work/media_build/linux
Now try make again:
tingo@kg-f4:~/work/sasc/sc_603/contrib/sasc-ng$ make tingo@kg-f4:~/work/sasc/sc_603/contrib/sasc-ng$ make module
Ok, now install it:
tingo@kg-f4:~/work/sasc/sc_603/contrib/sasc-ng$ sudo rm /lib/modules/`uname -r`/misc/dvbloopback.ko kg-f4:~/work/sasc/sc_603/contrib/sasc-ng$ sudo cp sasc-ng /usr/bin tingo@kg-f4:~/work/sasc/sc_603/contrib/sasc-ng$ sudo cp ./sc/PLUGINS/lib/* /usr/lib/ tingo@kg-f4:~/work/sasc/sc_603/contrib/sasc-ng$ sudo mkdir /lib/modules/`uname -r`/misc mkdir: cannot create directory `/lib/modules/3.0.0-15-generic/misc': File exists tingo@kg-f4:~/work/sasc/sc_603/contrib/sasc-ng$ sudo /usr/bin/install dvbloopback.ko /lib/modules/`uname -r`/misc/
Install done, now try to load the modules:
tingo@kg-f4:~/work/sasc/sc_603/contrib/sasc-ng$ sudo depmod tingo@kg-f4:~/work/sasc/sc_603/contrib/sasc-ng$ sudo modprobe dvbloopback
hmm, looks like it worked. But I need two adapters: unload it:
tingo@kg-f4:~/work/sasc/sc_603/contrib/sasc-ng$ sudo modprobe -r dvbloopback
and load it again, with correct parameters:
tingo@kg-f4:~/work/sasc/sc_603/contrib/sasc-ng$ sudo modprobe dvbloopback num_adapters=2
In /var/log/messages, I now get this:
Feb 10 12:13:41 kg-f4 kernel: [130799.000988] dvblb init = 100 Feb 10 12:13:53 kg-f4 kernel: [130810.339628] /home/tingo/work/sasc/sc_603/contrib/sasc-ng/dvbloopback/module/dvb_loopback.c: frontend loopback driver v0.0.1 Feb 10 12:13:53 kg-f4 kernel: [130810.339644] dvbloopback: registering 2 adapters Feb 10 12:13:53 kg-f4 kernel: [130810.339841] DVB: registering new adapter (DVB-LOOPBACK) Feb 10 12:13:53 kg-f4 kernel: [130810.341434] DVB: registering new adapter (DVB-LOOPBACK)
Cool.
2012-02-09: Xuxbuntu - compiling sasc-ng (using the Dolot guide):
tingo@kg-f4:~/work/sasc$ cd sc tingo@kg-f4:~/work/sasc/sc$ chmod +x contrib/sasc-ng/configure tingo@kg-f4:~/work/sasc/sc$ chmod +x contrib/sasc-ng/dvbloopback/module/config_dvb.pl tingo@kg-f4:~/work/sasc/sc$ cd contrib/sasc-ng tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ ./configure tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ make tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ make module
done, then install it:
tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ sudo rm /lib/modules/`uname -r`/misc/dvbloopback.ko [sudo] password for tingo: rm: cannot remove `/lib/modules/3.0.0-15-generic/misc/dvbloopback.ko': No such file or directory tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ sudo cp sasc-ng /usr/bin tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ sudo cp ./sc/PLUGINS/lib/* /usr/lib/ tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ sudo mkdir /lib/modules/`uname -r`/misc tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ sudo /usr/bin/install dvbloopback.ko /lib/modules/`uname -r`/misc/ tingo@kg-f4:~/work/sasc/sc/contrib/sasc-ng$ sudo depmod
load the modules
2012-02-09: Xubuntu - getting sasc-ng sources:
tingo@kg-f4:~/work$ uname -a Linux kg-f4 3.0.0-15-generic #26-Ubuntu SMP Fri Jan 20 17:23:00 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux tingo@kg-f4:~/work$ pwd /home/tingo/work tingo@kg-f4:~/work$ mkdir sasc tingo@kg-f4:~/work$ cd sasc tingo@kg-f4:~/work/sasc$ tingo@kg-f4:~/work/sasc$ hg clone http://85.17.209.13:6100/sc destination directory: sc requesting all changes adding changesets adding manifests adding file changes added 604 changesets with 1965 changes to 510 files updating to branch trunk 319 files updated, 0 files merged, 0 files removed, 0 files unresolved tingo@kg-f4:~/work/sasc$
That was easy.
2012-02-06: FreeBSD - trying to compile:
tingo@kg-v2$ cd contrib/sasc-ng tingo@kg-v2$ sh ./configure Using C++ compiler: g++ Using compile type debug Trying various FFdecsa optimizations... PARALLEL_32_INT: build failed PARALLEL_64_2INT: build failed PARALLEL_64_LONG: build failed PARALLEL_64_MMX: build failed PARALLEL_128_2LONG: build failed PARALLEL_128_2MMX: build failed PARALLEL_128_SSE: build failed PARALLEL_128_SSE2: build failed Choosing PARALLEL_MODE = PARALLEL_32_INT tingo@kg-v2$ gmake g++ -Wall -D__user= -Werror -g -o objs/forward.o -c -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/forward.c dvbloopback/src/forward.c:38:32: error: linux/dvb/frontend.h: No such file or directory dvbloopback/src/forward.c:39:27: error: linux/dvb/dmx.h: No such file or directory In file included from dvbloopback/src/process_req.h:6, from dvbloopback/src/forward.c:49: dvbloopback/module/dvbloopback.h:4:27: error: linux/version.h: No such file or directory dvbloopback/module/dvbloopback.h:22:40: error: missing binary operator before token "(" dvbloopback/src/forward.c: In function 'int get_adapters(t_adaptermap**)': dvbloopback/src/forward.c:111: error: aggregate 'dvb_frontend_info fe' has incomplete type and cannot be defined dvbloopback/src/forward.c:124: error: 'FE_GET_INFO' was not declared in this scope dvbloopback/src/forward.c: In function 'int log_rotate(int)': dvbloopback/src/forward.c:228: error: 'O_LARGEFILE' was not declared in this scope gmake: *** [objs/forward.o] Error 1
Ok, so FreeBSD isn't supported out of the box.
2012-02-06: FreeBSD - getting the source (using the Dolot guide):
tingo@kg-v2$ mkdir sasc tingo@kg-v2$ cd sasc tingo@kg-v2$ pwd /usr/home/tingo/work/dvb/sasc tingo@kg-v2$ tingo@kg-v2$ hg clone http://85.17.209.13:6100/sc destination directory: sc requesting all changes adding changesets adding manifests adding file changes added 604 changesets with 1965 changes to 510 files updating to branch trunk 319 files updated, 0 files merged, 0 files removed, 0 files unresolved
That's all.
2012-02-06: I created this page.