Linux tvheadend enhancements (I'm working on)

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
andyb2000 Offline
Junior Member
Posts: 38
Joined: Jul 2011
Reputation: 0
Location: North-East, UK
Post: #21
Hi Adam,

nick on irc is andyb2k5, so will try and catch you on there. I've got your latest build and compile seems fine and stable so far. Interestingly I've been playing about with some other patches that might help with the final bits you mention there:

Background tuning, Rene Herbrich has just submitted some very interesting patches that I think covers this perfectly, what he's done is added in an idle 'monitor' so that when a device goes idle he puts it into an EPG grabber mode based on a schedule you can setup from the GUI. Looks to do that exactly as you need to switch and get the EPG when the tuners are idle. This should fit nicely with the code you're doing, I had quite a few problems getting the code from Rene to patch in automatically using patch, so ended up applying the code manually to the main git source (not your branch). So what I might do is try and apply it to your branch too and see how that goes, at least that should get the background tuning/epg grabbing 'schedule' underway.

Hopefully catch up with you soon.

HTS Tvheadend development (via http://github.com/andyb2000) On Ubuntu with ST STV0299 DVB-S, Conexant CX24116/CX24118, Philips TDA10046H DVB-T (Freesat and Freeview in the UK) XML from EIT/DVB/Freesat.

XBMC via OpenElec on Dell XPS210 via HDMI to Hitachi 42" HD-TV
find quote
Drae Offline
Member
Posts: 67
Joined: Sep 2009
Reputation: 2
Location: London, UK
Post: #22
@adamsutton

Just had a quick look at what you've been doing and must say "nice job!". This has real potential.
(This post was last modified: 2012-06-19 02:26 by Drae.)
find quote
adamsutton Online
Moderator
Posts: 239
Joined: Jan 2012
Reputation: 14
Post: #23
It's still a work in progress but thanks Smile I'm currently trying to "bend" the opentv data to match my internal data structures and try to cope with some of the issues.

And Andy is busy testing on my behalf and trying to track down bugs Smile

I managed to get a full EPG with series linking and episode equivalence last night. I still have some issues:

- episode equivalence problems to cope with (needs another rewrite of the opentv handler I think).
- multiple services per channel. This results in constant updates to the EPG, since the EID values don't tie up (among other things).
- general performance. I improved it a bit last night, but its still a bit intensive, but that might just be a fact of life. In reality it should only need to run for a few seconds every so often
- on that point I need to determine when the grab is complete AND
- see if I can tie in with standard EIT to detect schedule changes to kick it off to grab full info.

And probably some other niggly stuff too.
find quote
oneadvent Offline
Fan
Posts: 426
Joined: May 2011
Reputation: 0
Post: #24
hi adamsutton, I haven't read all of your google docs, but for me this needed to be added for mine to work with schedulesdirect and usa channels:


https://github.com/oneadvent/tvheadend/c...cc5ddf4c60
https://github.com/oneadvent/tvheadend/c...3a2274a47e
https://github.com/oneadvent/tvheadend/c...394eea1e66

Those feel haphazardly done (because I lack experience doing commits) but if you want to look at the code you can see what I did. Basically I add the sub-categories.

Let me know if you have questions about it.
find quote
the_mouse Offline
Junior Member
Posts: 38
Joined: Jun 2012
Reputation: 0
Post: #25
I am willing to test any MHEG5 EPG for NZ you need done just let me know. Looks like ya making progress :-)
find quote
adamsutton Online
Moderator
Posts: 239
Joined: Jan 2012
Reputation: 14
Post: #26
I believe I've already included sub-category support (though the strings are straight out of the ETSI spec, so they could do with formatting). But its not fully tested and I cannot for the life of me remember whether the raw value gets passed to XBMC (I think it does).

progress is definitely being made. I think MHEG will be a while, main focus is on getting the basic stuff working (EPG changes and grabber framework). OpenTV is a useful test case as I can actually test it myself.

But I will try and take a look at the MHEG5 stuff when I get a chance.
find quote
datty Offline
Junior Member
Posts: 4
Joined: Jan 2012
Reputation: 0
Post: #27
Just wanted to post to say thanks for pushing forward with this. My tvheadend is built from your git and seems to have fixed a lot of the EPG based problems I was having. I'm still using tv_grab_dvb_plus piped to tv_grab_file at the minute to get my SKY uk listings through, mainly because I can't tell how/if the opentv stuff is working yet. If theres any way I can help out with the testing of the opentv implementation please let me know, I use this pretty much every day and if theres something I can help out with I'd be happy to.
find quote
oneadvent Offline
Fan
Posts: 426
Joined: May 2011
Reputation: 0
Post: #28
@adamsutton: if I send you the xml I get can you tell me if it will categorize in XBMC from your git?
find quote
oneadvent Offline
Fan
Posts: 426
Joined: May 2011
Reputation: 0
Post: #29
sorry but I am getting this:
Code:
oneadvent@XBMC:/usr/bin$  sudo tvheadend
[INFO]:dvb: Found adapter /dev/dvb/adapter0 (HDHomeRun ATSC) via PCI
[INFO]:dvb: Found adapter /dev/dvb/adapter1 (HDHomeRun ATSC) via PCI
[INFO]:v4l: /dev/video0: uvcvideo Villem usb-0000:00:1a.0-1.5 capabilities: 0x04000001
[INFO]:v4l: /dev/video0: Input #0: Camera 1 (Camera), audio:0x0, tuner:0, standard:0000000000000000,
[INFO]:v4l: /dev/video0: Format #0: YUV 4:2:2 (YUYV) [YUYV]
[WARNING]:v4l: /dev/video0: Device does not have a tuner, device skipped
[ERROR]:webui: No source path providing HTTP content: "/static". Checked in "/usr/bin/" and in the binary's embedded file system.
[ERROR]:webui: No source path providing HTTP content: "/docs". Checked in "/usr/bin/" and in the binary's embedded file system.
[ERROR]:webui: No source path providing HTTP content: "/docresources". Checked in "/usr/bin/" and in the binary's embedded file system.
[NOTICE]:EPG: Injected 3154 event from disk database
[INFO]:dvr: Creating new configuration ''
[INFO]:CSA: Using SSE2 128bit parallel descrambling
[NOTICE]:START: HTS Tvheadend version  started, running as PID:26715 UID:0 GID:0, settings located in '/home/oneadvent/.hts/tvheadend', dataroot: /usr/bin/
[INFO]:xmltv: Grabbing "North America (Data Direct)" using command "/usr/bin/tv_grab_na_dd"
[INFO]:AVAHI: Service 'Tvheadend' successfully established.
and I get no webui at all. Just a blank screen.

-------------------------------------------------------------------------------------------------------------------------------------------
opened a ticket.
(This post was last modified: 2012-07-02 04:22 by oneadvent.)
find quote
TheGeMan Offline
Junior Member
Posts: 12
Joined: Jun 2012
Reputation: 0
Post: #30
I had the same thing, I needed todo a "make install" after make,

I also needed to change the path and daemon location in my /etc/init.d/tvheadend file

# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/usr/sbin:/usr/local/bin:/sbin:/bin
DESC="Tvheadend"
NAME=tvheadend
DAEMON=/usr/local/bin/$NAME
DAEMON_ARGS="-C -f -u hts -g video"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
find quote
Post Reply