Project

General

Profile

Ubuntu 11.10 CWC issues

Added by Iwan Bedford almost 13 years ago

Hi,

I've been running tvheadend on my Ubuntu Server 10.04 for around 18 months using newcs locally to read my satellite card without any issues. I recently build a newer more powerful machine and installed it with Ubuntu Server 11.10 (Tvheadend 2.12). I have set up everything the same, including the card server using the same backed up config file, but I am since day 1 have experienced issues where Recordings seem to jump forward when watching and liveTV (via XBMC on various machines) pause and begin to buffer.

I have left the webpage debug running as well as the syslog on the machine and it looks as though CWC stops talking to the card server and eventually resets.

From syslog: The liveTV stream 'pauses' at 21:53:40. Stop is pushed and then the channel reselected. It buffers for a view seconds in XBMC whilst in the background it eventually gets a Decoder Loop Read Error at which point it resets and it connects.

Feb 5 21:53:40 mediaserver tvheadend2239: htsp: 192.168.1.57 [ XBMC Media Center ]: Disconnected
Feb 5 21:53:40 mediaserver tvheadend2239: subscription: "192.168.1.57 [ XBMC Media Center ]" unsubscribing from "Crime"
Feb 5 21:53:42 mediaserver tvheadend2239: htsp: Got connection from 192.168.1.57
Feb 5 21:53:42 mediaserver tvheadend2239: htsp: 192.168.1.57: Welcomed client software: XBMC Media Center
Feb 5 21:53:42 mediaserver tvheadend2239: subscription: "192.168.1.57 [ XBMC Media Center ]" subscribing on "Crime", weight: 150, adapter: "Tuner_2", network: "ASTRA", mux: "ASTRA: 12,304,500 kHz Horizontal (No satconf)", provider: "BSkyB", service: "Crime", quality: 100
Feb 5 21:54:26 mediaserver tvheadend2239: cwc: 127.0.0.1: Decoderloop: Read error (header): Connection timed out
Feb 5 21:54:26 mediaserver tvheadend2239: cwc: Disconnected from 127.0.0.1
Feb 5 21:54:26 mediaserver tvheadend2239: cwc: 127.0.0.1: Automatic connection attempt in in 3 seconds
Feb 5 21:54:28 mediaserver tvheadend2239: cwc: Attemping to connect to 127.0.0.1:15000
Feb 5 21:54:28 mediaserver tvheadend2239: cwc: Connected to 127.0.0.1:15000
Feb 5 21:54:28 mediaserver tvheadend2239: cwc: 127.0.0.1: Connected as user 0x02 to a 0x963-card [0x0963 : 00.00.00.00.00.00.00.00] with 1 providers
Feb 5 21:54:28 mediaserver tvheadend2239: cwc: 127.0.0.1: Provider ID #1: 0x000000 00.00.00.00.00.00.00.00
Feb 5 21:54:35 mediaserver tvheadend2239: parser: transport stream MPEG2VIDEO, DTS discontinuity. DTS = 351334800, last = 345978000
Feb 5 21:54:35 mediaserver tvheadend2239: parser: transport stream MPEG2AUDIO, DTS discontinuity. DTS = 351265478, last = 345884918
Feb 5 21:54:35 mediaserver tvheadend2239: cwc: Got unexpected ECM reply (seqno: 4517)
Feb 5 21:54:35 mediaserver tvheadend2239: cwc: Got unexpected ECM reply (seqno: 4519)
Feb 5 21:54:35 mediaserver tvheadend2239: cwc: Got unexpected ECM reply (seqno: 4513)
Feb 5 21:54:35 mediaserver tvheadend2239: cwc: Got unexpected ECM reply (seqno: 4514)
Feb 5 21:54:35 mediaserver tvheadend2239: cwc: Got unexpected ECM reply (seqno: 4515)
Feb 5 21:54:35 mediaserver tvheadend2239: cwc: Got unexpected ECM reply (seqno: 4516)
Feb 5 21:54:35 mediaserver tvheadend2239: cwc: Got unexpected ECM reply (seqno: 4518)

The unexpected replies at the end don't seem to hav an effect as the stream plays fine until the next hiccup (roughly every 10mins but has happened after only 2mins). I've also logged into the newcs console when this has happened and it's shown no issues.

Any pointers would be useful.


Replies (3)

RE: Ubuntu 11.10 CWC issues - Added by Jim bo almost 13 years ago

I seem to have a similar problem, any pointers how to fix it would be helpful

RE: Ubuntu 11.10 CWC issues - Added by Iwan Bedford almost 13 years ago

Looks like it was an issue with the Omnikey drivers or pcscd or newcs. I decided to eliminate the card reader as an issue by putting my card in my dreambox (DM500) and am running newcs on there.

I couldn't identify any issue at all with my local setup. I even logged into the newcs console and saw nothing helpful, just it reset. Anyway, no issues since the move to the dreambox as my cardserver

RE: Ubuntu 11.10 CWC issues - Added by Fredrik Aubert almost 13 years ago

I had some issues after updating to ubuntu 11.10, which I think was caused by power saving function in the pcsc library. http://ludovicrousseau.blogspot.com/2010/10/card-auto-power-on-and-off.html

I could start to watch a channel, and it work be a live picture for a few seconds (dont remember, 30 seconds perhaps). Then it dropped out for bit, and then I had a picture again. And so on. I think it was because tvheadend asks for a code to decode the tv stream. The code is valid for only a short period. The period is longer that it takes the pcsc library to power off the card. Then, when tvheadend needs a new code, the smart card reader needs to power on the card to read the code - and it takes too long, so there will be a period for which tvheadend does not have a valid code. At least, this is my theory.

The power saving function cannot be switched off. I solved the issue by installing a previous version of the library (version 1.5.5), downloaded from here: https://launchpad.net/ubuntu/+source/pcsc-lite

The reason 10.04 works is because it uses the 1.5.5 version of pcsc.

Maybe you're having the same issue?

    (1-3/3)