Linux tvheadend enhancements (I'm working on)

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
adamsutton Online
Moderator
Posts: 239
Joined: Jan 2012
Reputation: 14
Post: #51
Iwan,

Yeah that sounds about right. By default it will always try to record the earliest event, main reason is to give extra opportunity to re-record if it gets missed for some reason. Basically you're doing that bit manually, which is fair enough since in this case you can better understand the situation.

Though I'd hope that when I get around to do something DVR improvements this shouldn't be necessary. But still you should have the option. I think making these options available is the tricky bit, most people simply want to hit record series and let the box do the work. But when we get it into XBMC, we might be able to get the UI guys to add an "advanced options" tab. I could potentially do the same in TVH UI.

Do you think if a user updates the autorec rule, such as adds a specific time, it should re-evaluate all existing timers to see if they should now be removed?

The output is normal, I was messing about with the debug and simply left some stuff in as INFO that should really be DEBUG. I intend to go through all my debug statements to tidy things up before the code is merged and make sure there all on the relevant levels etc... For now you'll just have to live with it Wink

Adam
find quote
behaviour Offline
Junior Member
Posts: 21
Joined: Nov 2010
Reputation: 0
Post: #52
If a recording is missed, say due to no tuner being available as there were too many programmes scheduled and not enough tuners, would it automatically schedule another recording (if available)? If so, that's pretty cool!

I still think that if I search for a programme via the TVH UI and see there is an earlier and later option, if I choose to 'record series' on the later option it should use that time as the rule. I would have chosen to take the risk if there were no further recordings and I missed it for some reason. Maybe this is just my preference. You need to go with what you believe is the best option. I have a work around for now. It would be cool if altering the auto-record updated the scheduled recordings, but that sounds to be more hassle than my proposed solution Smile

That's good about the debug output. I suspected that was what it was. As long as it's nothing to worry about

Iwan
find quote
adamsutton Online
Moderator
Posts: 239
Joined: Jan 2012
Reputation: 14
Post: #53
Iwan,

Yes in theory I believe that was always the case, however to some limited extent I've tried to improve this. However its somewhat untested, however when using a series link it should be slightly more robust (more prone to recording duplicates than missing things, though again dup detect is attempted).

I can see where your coming from on this, the problem is that from a simplistic point of view it works like this:

1. You select an episode in EPG and hit record series.
2. It creates an autorec rule based on the series identifier of that episode (or fallback to title if no series info exists).
3. It searches the full schedule for any linked episodes and sets up record entries, typically taking the earliest entries first (for reasons mentioned).

I admit this is slightly different to a sky box, but they actually understand the data they have Wink so there might be cues in there to say what time to record at etc... I was worried that if I tried to constrain the time in some way (which isn't difficult) I'd then miss series that are shown back to back for many hours (it happens quite a lot). So I thought I'd keep it simple (at least for now).

When I come to look at the DVR code (so far I've made very few mods to get series link included) I could certainly do some more clever things, such as set the time based on selected episode and use this as a "preferred" time. In other words record at the selected time in preference to other times, but still record stuff outside of that time frame if no better alternative exists. This would probably be closer to a sky box.

However personally I'd prefer to improve the basic DVR scheduling to make use of the info regarding repeat airings to try and resolve conflicts automatically and typically the best thing in this case is to always try and record the earliest show (to give more opportunity for repeat recordings). But its not a trivial problem to deal with all the scheduling etc..

I think having some "advanced" options to help the user guide/override things would be useful. I'll think about what might be useful and try to put a basic form together in the UI (but not just yet), which might serve as an example for XBMC later down the line.

I did put a doc together some time ago on some of my DVR thoughts, but this is definitely all future work. https://docs.google.com/a/adamsutton.me....KP_-Y/edit

With respect to automatically updating the recording schedule when you change the autorec rule, this is actually a trivial thing to do. So I will think about whether this is a good idea (maybe with user option to re-schedule etc..).

Adam
find quote
giaur Offline
Senior Member
Posts: 206
Joined: Nov 2011
Reputation: 0
Post: #54
Hello,

There are some problems with tvheadend. Sometimes, if there are audio track description not supported by mkv, there is no sound. So: there is no sound in live stream started from web interface and also, there is no sound in recorded mkv - there is no any audio track in mkv.

I can only suspect this is caused by not supported audio track names. But - if anybody still maintain tvheadend fork, it will be good idea to check this out. I've also asked this on lonelycoder forums, but there is no any reponse from them.
(This post was last modified: 2012-07-26 18:34 by giaur.)
find quote
Prof Yaffle Offline
Donor
Posts: 483
Joined: Mar 2011
Reputation: 3
Location: UK - in the middlish (mostly).
Post: #55
@Giaur - I'm no expert, but have you tried querying the file to find out what these tracks look like so you can be more specific? There are many command-line tools, but VLC is pretty universal at both opening a file and telling you what's in it (Tools-> Codec Information).

I was under the impression that virtually anything can be included in an mkv file, and I've certainly never struggled with anything.
find quote
giaur Offline
Senior Member
Posts: 206
Joined: Nov 2011
Reputation: 0
Post: #56
Hello,

Please look at this log (from tvheadend) - this is one of my recording attempts:

Jun 05 23:39:53 dvr: "Stadiony nienawiści - Postscriptum" on "TVP2 HD" starting at Tue Jun 5 23:39:53 2012, scheduled for recording by "XBMC"
Jun 05 23:39:53 dvr: "Stadiony nienawiści - Postscriptum" on "TVP2 HD" recorder starting
Jun 05 23:39:53 subscription: "DVR: Stadiony nienawiści - Postscriptum" subscribing on "TVP2 HD", weight: 100, adapter: "ITE 9135(9005) Generic_1", network: "NW 01 MAZ", mux: "NW 01 MAZ: 610,000 kHz", provider: "EmiTel", service: "TVP2 HD", quality: 100
Jun 05 23:39:54 dvr: Stadiony nienawiści - Postscriptum.2012-06-05.23-39 from adapter: "ITE 9135(9005) Generic_1", network: "NW 01 MAZ", mux: "NW 01 MAZ: 610,000 kHz", provider: "EmiTel", service: "TVP2 HD"
Jun 05 23:39:54 dvr: # type lang resolution samplerate channels
Jun 05 23:39:54 dvr: 1 H264 1920 x 1088
Jun 05 23:39:54 dvr: 2 MPEG2AUDIO pol 96000 0
Jun 05 23:39:54 dvr: 4 EAC3 org 96000 0
Jun 05 23:39:54 dvr: 5 EAC3 aux 96000 0
Jun 05 23:39:54 dvr: 3 TELETEXT
Jun 05 23:39:54 dvr: 6 TEXTSUB pol
Jun 05 23:40:03 subscription: "DVR: Stadiony nienawiści - Postscriptum" unsubscribing from "TVP2 HD"
Jun 05 23:40:03 dvr: Recording completed: "/media/WIN_E/PVR//TVP2 HD/Stadiony nienawiści - Postscriptum.2012-06-05.23-39.mkv"
Jun 05 23:40:04 dvr: "Stadiony nienawiści - Postscriptum" on "TVP2 HD": End of program: Aborted by user

So, as you can see, there are 3 audio tracks in ts stream provided by broadcaster: pol (mp2), org (eac3) and aux (eac3). All of them works with xbmc. If I try to record, thveadend don't display any errors. But, created mkv file does not contain any audio tracks there is only video track.

The same issue if I click to Play in tvheadend's web interface - this is mkv streaming too, and vlc (and alll other players) can't see any audio tracks there.

But, problem don't exists on other channels, with "pol" audio track only - in this case, everything works.


As I wrote above, I can only suspect problems with audio track names and I may be wrong. But I'm pretty sure, that "org" and "aux" are not allowed as audio track names in mkv container specification - it should be language descritpion or not set (unknown).
find quote
adamsutton Online
Moderator
Posts: 239
Joined: Jan 2012
Reputation: 14
Post: #57
This isn't really the right place for this discussion.

However, things are going to change over at TVH in the next few days/weeks. Can I suggest that you log (if not already done) this in either my github fork issues or redmine.

I'll try and take a look at it when I can, but most likely I'll have to get another (more knowledge) member of the team to look into it.

Adam
find quote
giaur Offline
Senior Member
Posts: 206
Joined: Nov 2011
Reputation: 0
Post: #58
Quote:Can I suggest that you log (if not already done) this in either my github fork issues or redmine.

I can post it there and I can also share some .ts samples from my dvb-t (if this helps). Can you post link to github you are talking about? I'm not sure where can i find it.
find quote
adamsutton Online
Moderator
Posts: 239
Joined: Jan 2012
Reputation: 14
Post: #59
https://github.com/adamsutton/tvheadend

Just make a note of the issue in the Issues section, TS samples may be of use so if you've got some keep them to hand. When I get a chance I'll try and take a look (or find someone who can).

Adam
find quote
giaur Offline
Senior Member
Posts: 206
Joined: Nov 2011
Reputation: 0
Post: #60
I've created new issue, so you can look into it. There is debug log posted there and it seems sometimes audio tracks are incorrectly recognized - tvheadend assumes 0 channels for each audio track and don't even put them into mkv. But this is only sometimes - some channels works fine, and other channels don't work, have no idea why.

https://github.com/adamsutton/tvheadend/issues/42
(This post was last modified: 2012-07-27 21:24 by giaur.)
find quote
Post Reply