• 1
  • 22
  • 23
  • 24(current)
  • 25
  • 26
  • 111
[OLD] HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way!
Hi,

i have the same prob with cccam.
i have cccam runnig on my dreambox as server and as client on my xbmc.
on both webinterfaces i can see that they are connectet but i dont have the cam.socket file in my temp directory ...
can anybody help us??
i cant find an answer with google :-(

THX
wouter
use cccam 2.0.9 on the tvheadend pc and follow my instructions on the previous page
I use TechnoTrend Connect S2-3650 HDTV USB (DVB-S + DVB-S2)
Hi there, big thanks to Andoma for this great app.
Sounds very promising, a real breakthrough compared to all other TV on XBMC stuff!

I have a problem though, I cannot get it up and running on my Ubuntu 9.10 HTPC nor on XBMC Live. When I try to configure the DVB Card, there is no card to select.

(v4l mantis was compiled and installed, i added Kernel sources to circumvent make errors)

a "dmesg | grep -i dvb" shows my dvb-t USB Stick and the mantis dvb-c:

[ 15.818735] Mantis 0000:01:06.0: PCI INT A -> Link[LNKA] -> GSI 16 (level, low) -> IRQ 16
[ 15.819726] DVB: registering new adapter (Mantis DVB adapter)
[ 16.240387] lp0: using parport0 (interrupt-driven).
[ 16.698264] DVB: registering adapter 0 frontend 0 (Philips TDA10023 DVB-C)...
[ 22.590436] em28xx #0: card=45 -> Pinnacle PCTV DVB-T

A W-Scan with this adapter (/dev/dvb/Adapter0) works fine, finds all channels.
Any Ideas why none of the adapters is showing up in Tvheadend?


UPDATE Solved:
Not all DVB-Modules were loaded, modprobed them in and voila, everything works.Thank you for Tvheadend!
Thanks and cheers, Grouper
is the audio dropping occassionally for anybody else on encrypted channels?

I'm using an acer revo and running xbmc and tvvheadend on the same pc
moontan77 Wrote:is the audio dropping occassionally for anybody else on encrypted channels?

I'm using an acer revo and running xbmc and tvvheadend on the same pc

I'm using it since 1d and did not notice any audio dropping - in fact, sometimes audio is "shown" earliel than video - especially in HD channels. But all works fine.
I see you have same problem now

http://forum.xbmc.org/showthread.php?tid=65594

Check the xbmc log, in my case it seems to be the alsa broken pipe error. And searching this forum there doesnt seem to be a solution Sad
Question 
Greetings,

I've tried latest SVN (in Ubuntu 9.04) and stable build (in Ubuntu 9.10).
I can scan channels with TVheadend, I can connect XBMC to TVheadend but when I switch to a channel I can hear only audio but no video.
I'm using a SkyStar2 DVB-S Tuner.

As a further note if I click play in the TVheadend channel list, Totem opens up but reports:

"Could not read from resource"

and in the TVheadend log I can read:

127.0.0.1: rtsp://127.0.0.1:9981/channelid/1 -- Unauthorized

Any guess?
Thank you very much for your time...
Hello. I know this isn't tvheadend forum, but this thread seems to be the only thing in the internet that talks about tvheadend and cccam together...

Did anyone managed to get CCcam working with tvheadend?? I've read throughout almost this entire thread and I can't get a definitive answer if it really does work.

I've been trying to get it working for almost two days now...

I have a Tevii S460 (dvb-s2/dvb-s) tuner, Linux 2.6.31 using the cx24116 module and friends. The /dev/dvb/adapter0 is present and works.
I have configured the multiplexes for my sat and tvheadend finds the services. I have successfully tested free channels in XBMC (xbmc mac - remotly, xbmc linux - local) and it works perfectly (no audio skipping/audio synced correctly/video works).

I have compiled capmt_ca.so from svn trunk in tvheadend src/extras and
run cccam with the preloaded shared library like this (-d -v -n are the debug verbose and packet verbose flags for cccam):
Code:
gcc -O -fbuiltin -fomit-frame-pointer -fPIC -shared -o capmt_ca.so capmt_ca.c -ldl
LD_PRELOAD=/root/capmt_ca.so /usr/local/bin/cccam -d -v -n
I can see that the library is working with cccam as I have the /tmp/camd.socket created and also netstat says...
Code:
tcp        0      0 0.0.0.0:16000           0.0.0.0:*               LISTEN     17513/CCcam.x86.2.0
tcp        0      0 0.0.0.0:12000           0.0.0.0:*               LISTEN     17513/CCcam.x86.2.0
tcp        0      0 0.0.0.0:16001           0.0.0.0:*               LISTEN     17513/CCcam.x86.2.0
tcp        0      0 192.168.0.254:48674     xxxxxxxxxxx:yyyy       ESTABLISHED17513/CCcam.x86.2.0
udp        0      0 127.0.0.1:39044         127.0.0.1:9000          ESTABLISHED17513/CCcam.x86.2.0
udp        0      0 127.0.0.1:57251         127.0.0.1:9000          ESTABLISHED17513/CCcam.x86.2.0
udp        0      0 127.0.0.1:33382         127.0.0.1:9000          ESTABLISHED17513/CCcam.x86.2.0
udp        0      0 127.0.0.1:55924         127.0.0.1:9000          ESTABLISHED17513/CCcam.x86.2.0
unix  2      [ ACC ]     STREAM     LISTENING     458348   17513/CCcam.x86.2.0 /tmp/camd.socket
unix  2      [ ]         STREAM                   458347   17513/CCcam.x86.2.0
unix  3      [ ]         STREAM     CONNECTED     458327   17513/CCcam.x86.2.0
I have a working cccam.cfg (because I have a working cccam.cfg in my dreambox and it works, also the config is only 1 line, rest is all default options) and cccam connects to my cccam server. Also when i'm testing this I have my dreambox shutdown.

In tvheadend I have configured in "capmt connections" a new entry with /tmp/camd.socket and listen port to 0. I've also tried listen port 9000 and 12000 just to be sure.

I've tried the following software combinations:
- tvheadend 2.7
- tvheadend 2.8 (svn release)
- xbmc latest svn
- cccam 2.0.9
- cccam 2.1.3

However, cccam doesn't appear to even "talk" to tvheadend. I don't see anything in the logs of cccam. I've started reading the source of the capmt_ca.c and it debugs something to the syslog. This is my syslog output:

Code:
CCcam.x86.2.0.9: capmt_ca.so for camd clients
CCcam.x86.2.0.9: ca.so fopen /proc/cpuinfo mapped to /tmp/cpuinfo
The library doesn't log anything else (and it should, it has a lot of debug statements in the code, when tvheadend tries to connect to /dev/dvb/adapter0/ca0 it should log something) and here is the log for tvheadend when connecting from xbmc
Code:
Jan 02 01:03:58 htsp: 192.168.0.2: Welcomed client software: XBMC Media Center
Jan 02 01:03:58 capmt: Starting capmt server for service "AAA" on tuner 0
Jan 02 01:03:58 subscription: "192.168.0.2 [ XBMC Media Center ]" subscribing on "VNEWS", weight: 500, adapter: "s460", network: "-", mux: "T-: 11,617,000 kHz Vertical (a)", provider: "", service: "AAA", quality: 100
Jan 02 01:04:34 htsp: 192.168.0.2 [ XBMC Media Center ]: Disconnected
Jan 02 01:04:34 subscription: "192.168.0.2 [ XBMC Media Center ]" unsubscribing from "VNEWS"
Jan 02 01:04:34 capmt: Removing CAPMT Server from service

and here is the log in tvhead when connecting from vlc
Code:
an 02 01:04:48 capmt: Starting capmt server for service "AAA" on tuner 0
Jan 02 01:04:48 subscription: "RTSP" subscribing on "VNEWS", weight: 500, adapter: "s460", network: "-", mux: "--: 11,617,000 kHz Vertical (a)", provider: "", service: "AAA", quality: 100
Jan 02 01:04:48 RTSP: 192.168.0.2: rtsp://192.168.0.254:9981/channelid/5 -- No source available
Jan 02 01:04:48 subscription: "RTSP" unsubscribing from "VNEWS"
Jan 02 01:04:48 capmt: Removing CAPMT Server from service

When mapping services to channels tvheadend does something like:
Code:
Jan 02 01:14:16 serviceprobe:          AAA: checking...
Jan 02 01:14:16 capmt: Starting capmt server for service "AAA" on tuner 0
Jan 02 01:14:16 subscription: "serviceprobe" direct subscription to adapter: "s460", network: "X", mux: "XX: 11,771,000 kHz Horizontal (Z)", provider: "AAA", service: "AAA", quality: 100
Jan 02 01:14:26 subscription: "serviceprobe" unsubscribing
Jan 02 01:14:26 capmt: Removing CAPMT Server from service
Jan 02 01:14:26 serviceprobe:          AAA: skipped: No data input from adapter detected

Funny thing, in the other day I was trying all possible configurations and at some point tvheadend 2.7 started saying something like "configuring for ca0" or something like that, and at one point cccam started to talk something about keys, but the channels didn't work.

Anyone has a clue or knows how to setup and have a working cccam setup with tvheadend?

Thanks
heres something i posted on another site with the steps i follow to get cccam working (i've reinstalled ubuntu a few times lately and this has always worked):


You need to get the capmt_ca.c file from the tvheadend source, probably
an easier way to get it than this,
check and see if this file is there already before doing the ./configure
step

# svn co svn://svn.lonelycoder.com/hts/trunk/tvheadend
<http://svn.lonelycoder.com/hts/trunk/tvheadend>
# cd tvheadend
# ./configure
# make

its in /tvheadend/src/extra/

I just copied it from there to /usr/local/bin/
# cp capmt_ca.c /usr/local/bin/



Make directory's;
code;
# mkdir /var/etc
# mkdir /var/keys
# mkdir /var/script
# mkdir /var/config
# mkdir /var/backup
# mkdir /var/cccamlog

make yourself owner of the directory's;
code;
# chown username /var/etc
# chown username /var/keys
# chown username /var/script
# chown username /var/config
# chown username /var/backup
# chown username /var/cccamlog
# chown username /usr/local/bin (home directory for CCcam.x86)


use winscp to transfer the files
Put CCcam.x86 in (cccam 2.0.9 definitely works); /usr/local/bin
CCcam.cfg, CCcam.channelinfo, CCcam.providers in: /var/etc
Make CCcam.x86 bootable with chmod;
code;

# chmod 755 /usr/local/bin/CCcam.x86


# nano /etc/rc.local
write in rc.local;
# /usr/local/bin/run.sh

create a file called run.sh in /usr/local/bin/ with 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



Not sure if these are needed to be chmod but i do it anyways

# chmod 755 /usr/local/bin/run.sh

# chmod 755 /usr/local/bin/

# chmod 755 /var/etc/


Then in the capmt connection section in the web interface add a new
entry with /tmp/camd.socket and port 9000

save it and reboot


I'm using ubuntu 9.04 with kernel 2.6.28.17

A few major problems though with tvheadend for me atm:
sound dropping on encrypted channels (tvheadend streams on xbmc are the only place i have these problems)
not possible to record capmt channels as it seems to try and record them before getting the key
capmt doesnt support multiple tuners yet
seems like capmt doesnt start at all sometimes when i restart my pc
when you stop watching an encrypted channel on xbmc and watch an avi video or something instead, capmt doesnt stop requesting keys for that channel you had stopped watching. So you need to switch to a free to air channel to stop this.
About cccam and tvheadend, you need to start CCcam *before* starting tvheadend. If you restart cccam you need to restart tvheadend after. If you don't do that tvheadend won't connect to the /tmp/camd.socket that cccam is listening to.

That made me start to watch 2 of the 70 channels I'm supposed to have, don't know why it doesn't work for the other channels... Must be something i misconfigured...
XBMC-svn on Q8800 / 8600GT / Gentoo Linux / vdpau (main tv/hdmi/spdif) || XBMC on Q8600 / 9600GT / Mac x86 (brother's bedroom) || XBMC on iMac ppc / ATI (kitchen) || XBMC on Xbox 1.1 (bedroom) || XBMC (live) on Acer Revo 3600 (another bedroom)
jalokim Wrote:I'm using it since 1d and did not notice any audio dropping - in fact, sometimes audio is "shown" earliel than video - especially in HD channels. But all works fine.

See you got hd channels working to. HD channels stutter. I have a budget tevii s470 in a asus pundit 9500 using vdpau to decode hd material. I used xbmc liveAll works ok but as i said hd channels stutter.I used xbmc live 9.04 from 20091205. any ideas?
Thanx in advance
Diddleydoo
HD channels work fine for me but some dont look 100% ok due to the interlace handlers

If vdpau is working out with other HD material then I do not know what you can do
vdpau doesn't work for me, only ffmpeg is enabled, not ffmpeg_vdpau. Even if i force VDPAU in xbmc, it uses ffmpeg...

I get stutter from minute to minute, but i'm going to try the hd channels in another computer to see if it's xbmc related or tvheadend related...

also, tvheadend doesn't recognize the channels correctly (only the services), so i'm stuck configuring the channels one by one, editing the config files directly and adding the missing parts (then it works ok).

edit: oh and i didn't try messing with the "cache" values, hd channels take up more data, so increasing the cache value could fix the stutter (and add a little delay starting the channel)
XBMC-svn on Q8800 / 8600GT / Gentoo Linux / vdpau (main tv/hdmi/spdif) || XBMC on Q8600 / 9600GT / Mac x86 (brother's bedroom) || XBMC on iMac ppc / ATI (kitchen) || XBMC on Xbox 1.1 (bedroom) || XBMC (live) on Acer Revo 3600 (another bedroom)
slacker666 Wrote:We all know that there's been a lot of fuzz about watching tv with XBMC, and so far, the only solutions have not been very user/noob-friendly.

But I came across a program (for linux) that could change this, namely Tvheadend (http://www.lonelycoder.com).

I assume that I need to subscribe to a cable company to get this Live TV option?
  • 1
  • 22
  • 23
  • 24(current)
  • 25
  • 26
  • 111

Logout Mark Read Team Forum Stats Members Help
[OLD] HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way!9