[vdr] vdr on an underpowered NAS (D-link DNS 323)

cedric.dewijs at telfort.nl cedric.dewijs at telfort.nl
Mon Dec 23 22:21:59 CET 2013


>>A slightly different topic, but I can imagine decrypting a TV station can be CPU consuming. I expect the NAS to be too slow to decrypt multiple streams at once. Is it possible to record a TV program as an encrypted .ts file? Is it possible to decrypt the file afterwards? Is it possible to only decrypt a TV signal white watching live?
>>
>>Tonight I will test if VDR records an encrypted show as-is when no OSCAM is available. It looks like streamdev just sends the encrypted file to the browser. On my PC I see the buffer fill with 400KB/s, but no moving image, so I guess it sends it encrypted.
>>
>>Best regards,
>>Cedric
>>
>It looks like tsdecrypt can decrypt a .ts file:
>http://georgi.unixsol.org/programs/tsdecrypt/
>

I have removed libvdr-dvbapi from /usr/lib/vdr/plugins/. VDR does not write an encrypted file to my hard drive.
I have downloaded and compiled tsdecrypt. Then I do the following actions (each in a separate terminal). Oscam is running on another PC
tzap -a 0 -r 'Discovery Channel'
cat /dev/dvb/adapter0/dvr0 > in.ts
After some time i do this:
./tsdecrypt  -I file://in.ts -O file://out.ts -s 192.168.31.111:15050 -U user2 -P password2 -B 000102030405060708090A0B0C0D -C 0B00 -D 3 -c CONAX -p
2013-12-23 22:05:54 | Syslog     : disabled
2013-12-23 22:05:54 | CA System  : CONAX
2013-12-23 22:05:54 | Input file : in.ts
2013-12-23 22:05:54 | Output file: out.ts
2013-12-23 22:05:54 | Out filter : disabled (output everything)
2013-12-23 22:05:54 | TS discont : report
2013-12-23 22:05:54 | Decoding   : single thread
2013-12-23 22:05:54 | CAMD proto : cs378x
2013-12-23 22:05:54 | CAMD addr  : 192.168.31.111:15050 (IPv4/IPv6)
2013-12-23 22:05:54 | CAMD user  : user2
2013-12-23 22:05:54 | CAMD pass  : password2
2013-12-23 22:05:54 | EMM process: No
2013-12-23 22:05:54 | ECM process: Yes
2013-12-23 22:05:54 | ECM report : 60 sec
2013-12-23 22:05:54 | CW warning : 60 sec
2013-12-23 22:05:54 | Start tsdecrypt v10.0 (release, build 2013-12-23_21:37 libdvbcsa)
2013-12-23 22:05:54 | CAM | Connecting to server 192.168.31.111 port 15050
2013-12-23 22:05:54 | CAM | Connected to server 192.168.31.111 port 15050 (addr=192.168.31.111 fd=5).
2013-12-23 22:05:57 | ECM | Received 0 (0 dup) and processed 0 in 3 seconds.
2013-12-23 22:06:04 | PID |   228424 packets with PID 0x0bf5 (3061) Unknown
2013-12-23 22:06:04 | PID |    14548 packets with PID 0x0bf6 (3062) Unknown
2013-12-23 22:06:04 | Stop tsdecrypt v10.0 (release, build 2013-12-23_21:37 libdvbcsa)

According to the README file, I am missing ECMs and EMMs streams:
One commonly seen error is not an error in tsdecrypt at all. You
have to make sure that the software that streams channels from the
DVB card is sending ECMs and EMMs along with other streams. If these
streams are missing you'll probably get the following messages from
tsdecrypt:

2012-04-02 22:02:12 | ECM | Received 0 (0 dup) and processed 0 in 3 seconds.
2012-04-02 22:03:09 | CW  | *ERR* No valid code word was received for 60 seconds!
2012-04-02 22:03:12 | ECM | Received 0 (0 dup) and processed 0 in 60 seconds.

Please configure your software to stream ECMs and EMMs. For dvblast
(version 2.0 and above) the correct options are --ecm-passthrough and
--emm-passthrough. Note that dvblast 2.1 have broken ecm passthrough
so use at least version 2.2.

Let's see if I can get dvblast to work on my NAS :-)


Regards,
Cedric





More information about the vdr mailing list