Kodi Community Forum
[OLD] HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Tips, tricks, and step by step guides (https://forum.kodi.tv/forumdisplay.php?fid=110)
+--- Thread: [OLD] HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way! (/showthread.php?tid=51945)



- moontan77 - 2009-12-16

moontan77 Wrote:I see no camd.socket in the tmp folder (i am connected to my cccam server on dreambox)

only cccam related file i see in tmp is .CCcam.nodeid


how is the camd.socket file generated?

Can anyone answer this?


- jeepcook - 2009-12-16

moontan77 Wrote:Can anyone answer this?

Hi,
The file is named /tmp/camd.socket but I really don't know if cccam is ok with tvheadend. The only one solution is to test with this file descrbed in the capmt tab.
regards


cccam - Purple8 - 2009-12-16

So basically it does not work with TVheadend.
CCcam does not generate any camd.socket file.


- jeepcook - 2009-12-16

Purple8 Wrote:So basically it does not work with TVheadend.
CCcam does not generate any camd.socket file.

CCcam generates a camd.socket when you execute it ! no need to have tvheadend for that !! If you don't have this file, you have a ccam problem, not a tvheadend one..


- Purple8 - 2009-12-16

jeepcook Wrote:CCcam generates a camd.socket when you execute it ! no need to have tvheadend for that !! If you don't have this file, you have a ccam problem, not a tvheadend one..

Right making a bit more sense now.
Thats the prob when new to both.

My CCcam only generates a .cccam.noid file.
Whats the best resource for CCcam


- jeepcook - 2009-12-16

Here is the capmt help from tvheadend svn 3827:

1 <div class="hts-doc-text">
2
3 Tvheadend support connecting to card clients via the capmt protocol for so called softcam descrambling.
4
5 <p>
6 <img src="docresources/configcapmt.png">
7
8 <p>
9 The servers are listed / edited in a grid.
10
11 <ul>
12 <li>To edit a cell, double click on it. After a cell is changed it
13 will flags one of its corner to red to indicated that it has been
14 changed. To commit these changes back to Tvheadend press the
15 'Save changes' button. In order to change a Checkbox cell you only
16 have to click once in it.
17
18 <li>To add a new entry, press the 'Add entry' button. The new (empty) entry
19 will be created on the server but will not be in its enabled state.
20 You can now change all the cells to the desired values, check the
21 'enable' box and then press 'Save changes' to activate the new entry.
22
23 <li>To delete one or more entries, select the lines (by clicking once on
24 them), and press the 'Delete selected' button. A pop up
25 will ask you to confirm your request.
26 </ul>
27
28 <p>
29 The columns have the following functions:
30
31 <dl>
32 <dt>Enabled
33 <dd>If selected, connection will be tried to be established and retained up.
34 If unselected, Tvheadend will disconnect (if connected) and not try to reconnect.
35
36 <dt>Camd.socket Filename
37 <dd>Socket filename which is usually opened by cam client. Tvheadend
38 tries to connect to this socket file.
39
40 <dt>Listenport
41 <dd>If running on a so called full-featured DVB-Card this can be left
42 empty.
43 Running on Budget-Cards one has to use a dummy ca-device. This is
44 emulated via capmt_ca.so. This module has to be pre-loaded prior to
45 the cam client.
46
47 LD_PRELOAD=/path/to/capmt_ca.so cam_client &
48
49 This module will communicate the received control-words back to
50 Tvheadend via Port 9000
51
52 <dt>Comment
53 <dd>Allows the administrator to set a comment only visible in this editor.
54 It does not serve any active purpose.
55 </dl>
56 </div>


- Purple8 - 2009-12-16

jeepcook Wrote:Here is the capmt help from tvheadend svn 3827:

1 <div class="hts-doc-text">
2
3 Tvheadend support connecting to card clients via the capmt protocol for so called softcam descrambling.
4
5 <p>
6 <img src="docresources/configcapmt.png">
7
8 <p>
9 The servers are listed / edited in a grid.
10
11 <ul>
12 <li>To edit a cell, double click on it. After a cell is changed it
13 will flags one of its corner to red to indicated that it has been
14 changed. To commit these changes back to Tvheadend press the
15 'Save changes' button. In order to change a Checkbox cell you only
16 have to click once in it.
17
18 <li>To add a new entry, press the 'Add entry' button. The new (empty) entry
19 will be created on the server but will not be in its enabled state.
20 You can now change all the cells to the desired values, check the
21 'enable' box and then press 'Save changes' to activate the new entry.
22
23 <li>To delete one or more entries, select the lines (by clicking once on
24 them), and press the 'Delete selected' button. A pop up
25 will ask you to confirm your request.
26 </ul>
27
28 <p>
29 The columns have the following functions:
30
31 <dl>
32 <dt>Enabled
33 <dd>If selected, connection will be tried to be established and retained up.
34 If unselected, Tvheadend will disconnect (if connected) and not try to reconnect.
35
36 <dt>Camd.socket Filename
37 <dd>Socket filename which is usually opened by cam client. Tvheadend
38 tries to connect to this socket file.
39
40 <dt>Listenport
41 <dd>If running on a so called full-featured DVB-Card this can be left
42 empty.
43 Running on Budget-Cards one has to use a dummy ca-device. This is
44 emulated via capmt_ca.so. This module has to be pre-loaded prior to
45 the cam client.
46
47 LD_PRELOAD=/path/to/capmt_ca.so cam_client &
48
49 This module will communicate the received control-words back to
50 Tvheadend via Port 9000
51
52 <dt>Comment
53 <dd>Allows the administrator to set a comment only visible in this editor.
54 It does not serve any active purpose.
55 </dl>
56 </div>

Thanks been reading through that this morning.
Whats the
47 LD_PRELOAD=/path/to/capmt_ca.so cam_client

cant seem to find it is that an extra plugin??


- moontan77 - 2009-12-19

I downloaded the svn and copied to the capmt_ca.c file from src/extra/ to /usr/local/bin/

In /usr/local/bin/ I have CCcam.x86 and capmt_ca.c.

I edited /etc/rc.local to run /usr/local/bin/run.sh

run.sh contains the following

#!/bin/sh
cd /usr/local/bin
gcc -march=pentium -mmmx -fomit-frame-pointer -fexpensive-optimizations -funroll-loops -fPIC -shared -o capmt_ca.so capmt_ca.c -ldl
LD_PRELOAD=./capmt_ca.so ; export LD_PRELOAD
while [ 1 ];
do
./CCcam.x86 -d > /var/log/CCcam.log
done





On reboot, capmt_ca.so is generated, CCcam runs and connects to a server running on my dreambox.

When i try scan channels camd.socket is generated in tmp folder.



If it doesnt map all encrypted channels, try to map them manually



Is the sound dropping occasionally for anyone else using tvheadend, is happening with cccam and was happening with newcs previously. The video is fine, its just the sound that goes for a second.


Also on some channels the pictures freezes and xbmc starts buffering



Also doesnt seem possible to watch and record 2 different encrypted channels with cccam and tvheadend Sad
Second tuner doesnt seem to get keys even if first tuner is on a fta channel


- bisch - 2009-12-19

Hi Sorry to take this off topic.
I tried tvheadend a few months back, but since I was trying to do North America dvb-s and the fact it required custom patching I came to a dead end.

I'm curious since this is now included in the xbmc live releases, what is the skin support? Is there any additional Live Tv sections in xbmc that come with this including a guide/scheduler? I have not seen any screen shots of this in action on a xbmc front end. The backend is sharp.

And if anyone has gotten NA dvb-s going on this please let me know, I would appreciate it.


- moontan77 - 2009-12-20

anyone know if its possible to make fast motion tv like football matches look natural with xbmc, like watching it on a normal satellite/cable receiver?

Really is too hard to look at sport through xbmc (e.g. to follow the ball etc)


- apanloco - 2009-12-20

moontan77 Wrote:anyone know if its possible to make fast motion tv like football matches look natural with xbmc, like watching it on a normal satellite/cable receiver?

Really is too hard to look at sport through xbmc (e.g. to follow the ball etc)
Required for this to work is deinterlacers that doubles the frame rate (i.e. frame rate == field rate). I don't know the current state of deinterlacers though.


- moontan77 - 2009-12-20

thanks for the info


- Schumi - 2009-12-23

Hi everybody.
I am trying tvheadend with xbmc. This is like a dream. But with some problem. I am connecting newcamd 5.25 server with tvheadend CWC settings. 9 channel in a provider scrambled by cworks. Only 2 channel is watchable. Another 7 channel is only problem. When select channel first picture freeze. (a good picture) After 2 seconds buffering. And very very bad picture. But no problem in Windows with this channel. And picture is not smooth at all channel. Including FTA channels.
Sorry for my bad english. Sad

And tvheadend log for bad cwc channel.

Code:
Dec 23 00:20:30 TS: ST STV0299 DVB-S/Super Platform: 11,492,000 kHz Vertical (Satellite)/Fast Race TV: MPEG2AUDIO @ #2255: Corrupted PES header, 217 duplicate log lines suppressed
Dec 23 00:20:31 TS: ST STV0299 DVB-S/Super Platform: 11,492,000 kHz Vertical (Satellite)/Fast Race TV: MPEG2AUDIO @ #2255: Corrupted PES header, 232 duplicate log lines suppressed
Dec 23 00:20:31 TS: ST STV0299 DVB-S/Super Platform: 11,492,000 kHz Vertical (Satellite)/Fast Race TV: MPEG2AUDIO @ #2256: Corrupted PES header, 86 duplicate log lines suppressed
Dec 23 00:20:31 parser: transport _dev_dvb_adapter0_ST_STV0299_DVB_S11492000_V_satconf_2_061b stream MPEG2AUDIO, DTS discontinuity. DTS = 3009851782, last = 1217753
Dec 23 00:20:31 parser: transport _dev_dvb_adapter0_ST_STV0299_DVB_S11492000_V_satconf_2_061b stream MPEG2AUDIO, DTS discontinuity. DTS = 1312793, last = 3009851782
Dec 23 00:20:32 TS: ST STV0299 DVB-S/Super Platform: 11,492,000 kHz Vertical (Satellite)/Fast Race TV: MPEG2AUDIO @ #2255: Corrupted PES header, 257 duplicate log lines suppressed
Dec 23 00:20:33 parser: transport _dev_dvb_adapter0_ST_STV0299_DVB_S11492000_V_satconf_2_061b stream MPEG2AUDIO, DTS discontinuity. DTS = 1502873, last = 1327913
Dec 23 00:20:33 TS: ST STV0299 DVB-S/Super Platform: 11,492,000 kHz Vertical (Satellite)/Fast Race TV: MPEG2AUDIO @ #2256: Corrupted PES header, 87 duplicate log lines suppressed
Dec 23 00:20:33 parser: transport _dev_dvb_adapter0_ST_STV0299_DVB_S11492000_V_satconf_2_061b stream MPEG2VIDEO, DTS discontinuity. DTS = 1512000, last = 1339200
Dec 23 00:20:33 TS: ST STV0299 DVB-S/Super Platform: 11,492,000 kHz Vertical (Satellite)/Fast Race TV: MPEG2AUDIO @ #2255: Corrupted PES header, 282 duplicate log lines suppressed
Dec 23 00:20:34 TS: ST STV0299 DVB-S/Super Platform: 11,492,000 kHz Vertical (Satellite)/Fast Race TV: MPEG2AUDIO @ #2255: Corrupted PES header, 292 duplicate log lines suppressed



Dreambox and tv-headend? - ahansen - 2009-12-27

Can i use tv-headend with dreambox.? I have installed ubuntu, xbmc and tv-headend but i can't get it to work? :confused2: please give me a STEP-by-STEP guide.


- moontan77 - 2009-12-27

you need to have a tv tuner card, dont think you can get dreambox working with it.

do you have dvb-s/dvb-s2 tuner?