Kodi Community Forum

Full Version: [OLD] HOW-TO watch Live TV in XBMC for Linux with Tvheadend, the easy way!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
tomu54 Wrote:Something i found in tvheadend/src/linuxtv_muxes.h

OK this file is a source file ... I don't know where to find the result of it after the installation ......

not so simple ...
jack83 Wrote:I tested a scan with "scan" from the dvb-utils package and this on line initial tuning file, and it finds alle channels. So there is a problem with tvheadend and scanning.

I also tried the automated adding of muxes. This adds many muxes which contain almost all channels. The problem here is that there are many segfault probing, editing channels and so on. The current trunk has a problem with the WebUI, so I could not test the latest build.

OK thanks but how did you do that ?? what is the command to execute ?
You have to patch this .h file and compile the app again.

I used w_scan to get the transponder data for Astra19.2E and formatted it for the .h file. (I don't know how to make a diff). Only DVB-S, no DVB-S2

Code:
static const struct mux muxes_DVBS_Astra_19_2E[] = {
    {.freq = 10744000, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'H'},
    {.freq = 12692250, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'H'},
    {.freq = 12640000, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 11685500, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 10979000, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 10876500, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 10773250, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'H'},
    {.freq = 11856000, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'V'},
    {.freq = 11097000, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 10788000, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 11508500, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 10847000, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 10817500, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 12662750, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'H'},
    {.freq = 10920750, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'H'},
    {.freq = 11479000, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 12265500, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'H'},
    {.freq = 11670750, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'H'},
    {.freq = 11538000, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 12441000, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'V'},
    {.freq = 12090000, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'V'},
    {.freq = 12168000, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'V'},
    {.freq = 12109500, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'H'},
    {.freq = 12610500, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 12699000, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 12728500, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 12721750, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'H'},
    {.freq = 12070500, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'H'},
    {.freq = 11797500, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'H'},
    {.freq = 11719500, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'H'},
    {.freq = 12031500, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'H'},
    {.freq = 12460500, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'H'},
    {.freq = 12148500, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'H'},
    {.freq = 11875500, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'H'},
    {.freq = 11758500, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'H'},
    {.freq = 12480000, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'V'},
    {.freq = 12544750, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'H'},
    {.freq = 12051000, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'V'},
    {.freq = 12246000, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'V'},
    {.freq = 11567500, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 11739000, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'V'},
    {.freq = 11778000, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'V'},
    {.freq = 11817000, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'V'},
    {.freq = 12633250, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'H'},
    {.freq = 11895000, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'V'},
    {.freq = 11934000, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'V'},
    {.freq = 11973000, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'V'},
    {.freq = 11953500, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'H'},
    {.freq = 12012000, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'V'},
    {.freq = 12129000, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'V'},
    {.freq = 12187500, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'H'},
    {.freq = 10861750, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'H'},
    {.freq = 12207000, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'V'},
    {.freq = 12226500, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'H'},
    {.freq = 12285000, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'V'},
    {.freq = 12304500, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'H'},
    {.freq = 12324000, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'V'},
    {.freq = 12343500, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'H'},
    {.freq = 12363050, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'V'},
    {.freq = 12382500, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'H'},
    {.freq = 11836500, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'H'},
    {.freq = 12421500, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'H'},
    {.freq = 12402000, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'V'},
    {.freq = 12515250, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'H'},
    {.freq = 12551500, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 12574250, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'H'},
    {.freq = 10832250, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'H'},
    {.freq = 12603750, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'H'},
    {.freq = 11317500, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 11597000, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 11038000, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 11156000, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 11992500, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'H'},
    {.freq = 11723500, .symrate = 22000000, .fec =  FEC_2_3, .polarisation = 'H'},
    {.freq = 12031500, .symrate = 27500000, .fec =  FEC_5_6, .polarisation = 'H'},
    {.freq = 11836500, .symrate = 29900000, .fec =  FEC_7_8, .polarisation = 'H'},
    {.freq = 11914500, .symrate = 27500000, .fec =  FEC_3_4, .polarisation = 'H'},
    {.freq = 12580990, .symrate = 22000000, .fec =  FEC_2_3, .polarisation = 'V'},
    {.freq = 12522000, .symrate = 22000000, .fec =  FEC_2_3, .polarisation = 'V'},
    {.freq = 12090000, .symrate = 29900000, .fec =  FEC_7_8, .polarisation = 'V'},
    {.freq = 12168000, .symrate = 27500000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 12581000, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
    {.freq = 11992500, .symrate = 22000000, .fec =  FEC_5_6, .polarisation = 'V'},
};

I further found out that I have to run "./configure --release" to get into the web interface after compiling.
With the modification from above, I get all my channels, but still many segfaults probing channels Sad
This is great software!
Channel changes are blistering fast and setup is a piece of cake.
Just one tip: If you are restricting access to your tvheadend installation make sure to also enter the credentials in the htsp URL in xbmc, like:
Code:
htsp://user:[email protected]:9982
Create a Patch
Code:
cd src
diff -Naur depsort6.old/depsort.c depsort6/depsort.c >depsort6-kommentar.patch

Maybe tvheadend should use the files provided by dvb-utils?
Anyone here care to update the XBMC Online Manual (wiki) about this:
http://wiki.xbmc.org/?title=HTS_Tvheadend
and:
http://wiki.xbmc.org/?title=Types_of_Med..._Tvheadend

Huh

Register an account and request ninja access if you haven't already!

As a reference you can look at similar articles like these:
http://wiki.xbmc.org/?title=MythTV
http://wiki.xbmc.org/?title=TuxBox
http://wiki.xbmc.org/?title=HDHomeRun
http://wiki.xbmc.org/?title=ReplayTV
http://wiki.xbmc.org/?title=TiVo

Some of which are also in need of updating Wink
Channel changes are so fast its amazing!!

This is a good contender for a pvr backend.

screenshots:

http://picasaweb.google.co.uk/lh/photo/6...directlink

http://picasaweb.google.co.uk/lh/photo/h...directlink
Hi all,

Sorry to barge in like this but I would like some confirmation before migrating my current setup.

My current setup is a stand-alone Media Portal setup. This works ok but I would like to move to a client-server setup. My server runs linux and MP does not support this. Refusing to accept this I'm looking for solutions... Nerd

With XBMC and TVheadend I can setup a server that would:
1. have a firedtv card with Alphacrypt module and CI card
2. record programs on server storage
3. have movies and recorded programs on server storage

Also I would like to setup one or more frontend systems to:
1. watch live TV (also HD channels)
2. watch movies and recorded programs from server storage
3. watch pictures from server storage (slide show)

Can this setup be achieved?

Thanks for your response!
Faust,

no apologies necessary.

I have been using XBMC for several years now and I can honestly say that the past 3 months have been the most promising with regards to live tv, so now is a great time to get involved, however, i wouldn't recommend switching over completely just yet.

late last year Elupus provided a myth protocol that can access the mythtv back and and watch live tv and recorded tv, and recently alwinus has been working with alcoheca on the pvr branch and produced a VDR plugin.

While all these solutions are a great move forward for xbmc there is no complete package as yet, and there probably wont be one until the pvr branch is more mature.

if you are keen to run linux to support your server I would highly recommend exploring some linux packages such as VDR or MythTV and get to understand how the software works and what each one can offer you, then you can run xbmc along side one of these packages and begin exploring the opportunities that xbmc offers.

While tvheadend is a very slick and efficient backend option there is currently no epg and therefore no way to schedule from with in xbmc, this is the case with mythtv also.

Therefore this leaves VDR and the pvr branch as the only 'full featured' client currently available (xbmc python script excluded), however this is still in very early development and maybe not a good idea for use day to day.

I have run mythtv for 3 years now with with excellent results, and I would highly recommend this as a good starting point Mythbuntu

I hope this helps.

Regards,

Dubstar_04
Faust Wrote:With XBMC and TVheadend I can setup a server that would:
1. have a firedtv card with Alphacrypt module and CI card
2. record programs on server storage
3. have movies and recorded programs on server storage
you don't need to have XBMC on the server, you can use the tvheadend web interface to schedule recording.
I have a few questions:
1. will it work with budget dvb-s cards?
2. will it work with premium cards (nexus-s)?
3. will it play encrypted channels?
megacrypto Wrote:I have a few questions:
1. will it work with budget dvb-s cards?
2. will it work with premium cards (nexus-s)?
3. will it play encrypted channels?

AFAIK
1. yes
2. yes, but not the output of TV (in this case VDR is what you want)
3. yes, but needs a daemon which does the dirty work (newcamd protocol)

hope it helps
I have been trying out tvheadend the last few days and can vouch for the blazingly fast channel changes - very satisfying after using mythtv as the tv backend for the past few months.

Just wondering if anyone else is having a problem with recent svn versions of xbmc (I'm using 21093 from memory) where htsp streams are dropping frames like crazy (dvb-t mpeg2 streams)? An older version (19000ish installed via PPA) was working fine...

I'll post a separate bug report shortly after creating a debug log, just thought I'd quickly ask if anyone else has experienced this?

Cheers,
Adam.

EDIT: I had recently saved bicubic scaling as the default for all video - this was causing the frame drops - changed it back to bilinear and it works fine. 1080p movies play fine using bicubic scaling (VDPAU enabled) but hd tv here in Aus is mostly 1080i MPEG2, which doesn't appear to play using VDPAU and sends my AMD 5200+ machine into a spin...
Is it possible to set-up a newcamd server on Ubuntu? Or do I need a dreambox of some sort?

I have a FireDTV Cable DVB reciever connected via firewire to my Linux PC which is recognised and muxed by tvheadend. Of course it won't find any channels because all of my cable providers channels are encrypted. With kaffeine I'm able to decrypt the channels using the aproppriate plug-in. So I was hoping to get the keys via a local(host) code word server.
After googling 2 days, I still haven't found a way to get a cardsharing server to work with softkeys on a non-dreambox plattform.

Any tips?

regards,
bunts
buntsbergh Wrote:Is it possible to set-up a newcamd server on Ubuntu? Or do I need a dreambox of some sort?
I know it's possible, and you need a USB/COM cardreader for your smartcard. But since I have a Dreambox I use that.

Try to google NewCS