MythTV PVR client Addon Developers Wanted - Developers Only!

  Thread Rating:
  • 8 Votes - 4.88 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
fiveisalive Offline
Fan
Posts: 371
Joined: Jul 2009
Reputation: 0
Location: United States
Post: #406
problem seems to that it returns 8 on the first attempt, and 56 on the 2nd, which would eventually match but by then it's too late. maybe check out the logic in mythbox, I think it had a similar problem a while back with protocol errors
(This post was last modified: 2011-02-09 10:08 by fiveisalive.)
find
dteirney Offline
Team-XBMC Developer
Posts: 830
Joined: Jul 2007
Reputation: 6
Location: New Zealand
Post: #407
fiveisalive Wrote:problem seems to that it returns 8 on the first attempt, and 56 on the 2nd, which would eventually match but by then it's too late. maybe check out the logic in mythbox, I think it had a similar problem a while back with protocol errors

Can you make sure you don't have any local changes? There is no code in github that sets the connection version to 56 until right before the connection is returned.

Use MythTV for recording TV? Try the integrated MythTV support in XBMC Media Center. Now with commercial skip support built-in and integration with the Movie database!
find
dekani Offline
Junior Member
Posts: 29
Joined: Aug 2010
Reputation: 1
Location: France
Post: #408
I have tested and generated binairies with the last changes. Livetv, recordings and tv guide are working correctly (for me). Thank you for the support of the 0.23.1 version.

MythTV Version : 26863
MythTV Branch : branches/release-0-23-fixes
Network Protocol : 23056
Library API : 0.23.1.201000710-1
find
dteirney Offline
Team-XBMC Developer
Posts: 830
Joined: Jul 2007
Reputation: 6
Location: New Zealand
Post: #409
dekani Wrote:I have tested and generated binairies with the last changes. Livetv, recordings and tv guide are working correctly (for me). Thank you for the support of the 0.23.1 version.

MythTV Version : 26863
MythTV Branch : branches/release-0-23-fixes
Network Protocol : 23056
Library API : 0.23.1.201000710-1

Thanks. dekani, are you able to post a debug log for me to review and double check.

Can anyone else also confirm that the latest code in github is working for Myth 0.23.1?

The commit is ready to push into 10.1 to support Myth 0.23.1, but I can't do that without a debug log that I can review to confirm.

Use MythTV for recording TV? Try the integrated MythTV support in XBMC Media Center. Now with commercial skip support built-in and integration with the Movie database!
(This post was last modified: 2011-02-10 11:34 by dteirney.)
find
dekani Offline
Junior Member
Posts: 29
Joined: Aug 2010
Reputation: 1
Location: France
Post: #410
Please see a full debug file here (generated from France) : http://pastebin.com/pwVyJkZM

FYI, the EPG (from TV) hasn't been displayed correctly today. (nothing is available)
I'm also using a mythtv source (from videos), and here the EPG is correctly displayed. (not available in the debug file)

Edit:
About the EPG, I have just seen in the log file, I haven't changed the default password for the mythtv account.
I think it is the reason why the EPG doesn't work today. (but it was working yesterday, strange...)
I will do some new tests with the good password tonight.
(This post was last modified: 2011-02-10 15:43 by dekani.)
find
dubstar_04 Offline
Senior Member
Posts: 228
Joined: May 2008
Reputation: 0
Location: Warrington, UK
Post: #411
dekani Wrote:Please see a full debug file here (generated from France) : http://pastebin.com/pwVyJkZM

FYI, the EPG (from TV) hasn't been displayed correctly today. (nothing is available)
I'm also using a mythtv source (from videos), and here the EPG is correctly displayed. (not available in the debug file)

Edit:
About the EPG, I have just seen in the log file, I haven't changed the default password for the mythtv account.
I think it is the reason why the EPG doesn't work today. (but it was working yesterday, strange...)
I will do some new tests with the good password tonight.


my channels keep going missing from the timeline.

I have also noticed that xbmc reports 'next recording' as recordings from the past.

I have tested this on two machines and both yield the same results.

if there are any logs or info i can provide please let me know.

All Things PVR
find
opdenkamp Offline
Team-XBMC PVR Developer
Posts: 2,226
Joined: Feb 2009
Reputation: 29
Location: Heerlen, The Netherlands
Post: #412
noticed the issue in tvheadend too, so it's very likely that I messed something up in the "pvr core"

opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
find
dekani Offline
Junior Member
Posts: 29
Joined: Aug 2010
Reputation: 1
Location: France
Post: #413
Same problem (epg not updated) if I change the addon password...
I have cleared the TV Database (with the xbmc option in Settings/Live TV), xbmc crash just after calling this option... (a crash log file is generated) but when xbmc restarts the EPG is fully reloaded.
find
fiveisalive Offline
Fan
Posts: 371
Joined: Jul 2009
Reputation: 0
Location: United States
Post: #414
OK, checked that there were no local changes, recompiled etc. but still no live TV (although now it seems to be doing something and takes a bit longer before it displays the "channel can not be played message"), full log: http://fpaste.org/48pK/

So this may be a different problem with Live TV playback.
find
fiveisalive Offline
Fan
Posts: 371
Joined: Jul 2009
Reputation: 0
Location: United States
Post: #415
fiveisalive Wrote:OK, checked that there were no local changes, recompiled etc. but still no live TV (although now it seems to be doing something and takes a bit longer before it displays the "channel can not be played message"), full log: http://fpaste.org/48pK/

So this may be a different problem with Live TV playback.

OK, so now I went through my channels, and I found a couple that worked, however all them were SD, none of the HD channels worked. Also the channel numbers from mythfrontend were different. e.g. normally I see channel "2.1" which is WGBH in mythfrontend, but xbmc maps this to just "2" (does this matter?)

Also it seems to be getting confused as to which channels I have access to, for example it lists "BBC World" as a channel, but no such channel exists in my mythfrontend/backend, nor certainly in my actual signal as far as I can tell. Does the myth addon somehow supplement information from the web, in addition to what it pulls from mythbackend?
find
fiveisalive Offline
Fan
Posts: 371
Joined: Jul 2009
Reputation: 0
Location: United States
Post: #416
So here's the contents of my /var/log/mythtv/mythbackend.log when the failure of the playing Live TV occurs (for the same channel, WGBH Boston), maybe this will help narrow down the issue. (Note that playback with xbmc works just fine with the Mythbox addon in Dharma as well as the built-in myth:// support with the same backend server, so this is definitely pvr branch specific).

Code:
2011-02-11 01:07:15.842 MainServer::HandleVersion - Client speaks protocol version 8 but we speak 23056!
2011-02-11 01:07:15.893 MainServer, Warning: Unknown socket closing MythSocket(0x23ab960)
2011-02-11 01:07:15.897 MainServer::ANN Playback
2011-02-11 01:07:15.960 adding: htpc.localdomain as a client (events: 0)
2011-02-11 01:07:15.997 TVRec(1): Changing from None to WatchingLiveTV
2011-02-11 01:07:16.030 TVRec(1): HW Tuner: 1->1
2011-02-11 01:07:16.074 ProgramInfo(2002_20110211010525.mpg), Warning: MarkAsInUse(false, 'recorder'->'') -- use has changed since first setting as in use.
2011-02-11 01:07:16.105 ProgramInfo(2002_20110211010525.mpg), Warning: MarkAsInUse requires a key to delete in use mark
2011-02-11 01:07:16.160 AutoExpire: CalcParams(): Max required Free Space: 182.0 GB w/freq: 14 min
2011-02-11 01:07:16.196 ProgramInfo(): Updated pathname '':'' -> '2002_20110211010716.mpg'
2011-02-11 01:07:16.229 ProgramInfo(): Updated pathname '':'' -> '2002_20110211010716.mpg'
2011-02-11 01:07:16.235 ProgramInfo(2271_20100218191214.mpg), Error: GetPlaybackURL: '2271_20100218191214.mpg' should be local, but it can not be found.
2011-02-11 01:07:16.354 ProgramInfo(2271_20100218191214.mpg), Error: GetPlaybackURL: '2271_20100218191214.mpg' should be local, but it can not be found.
2011-02-11 01:07:16.448 ProgramInfo(2271_20100218191214.mpg), Error: GetPlaybackURL: '2271_20100218191214.mpg' should be local, but it can not be found.
2011-02-11 01:07:16.545 Program #101 not found in PAT!
Program Association Table
PSIP tableID(0x0) length(201) extension(0x1)
      version(17) current(1) section(0) last_section(0)
         tsid: 1
programCount: 48
  program number   158 has PID 0x 62c   data  0x 0 0x9e 0xe6 0x2c
  program number   408 has PID 0x ff0   data  0x 1 0x98 0xef 0xf0
  program number   409 has PID 0x ffa   data  0x 1 0x99 0xef 0xfa
  program number   410 has PID 0x1004   data  0x 1 0x9a 0xf0 0x 4
  program number   411 has PID 0x100e   data  0x 1 0x9b 0xf0 0x e
  program number   412 has PID 0x1018   data  0x 1 0x9c 0xf0 0x18
  program number   413 has PID 0x1022   data  0x 1 0x9d 0xf0 0x22
  program number   414 has PID 0x102c   data  0x 1 0x9e 0xf0 0x2c
  program number   415 has PID 0x1036   data  0x 1 0x9f 0xf0 0x36
  program number   416 has PID 0x1040   data  0x 1 0xa0 0xf0 0x40
  program number   417 has PID 0x104a   data  0x 1 0xa1 0xf0 0x4a
  program number   418 has PID 0x1054   data  0x 1 0xa2 0xf0 0x54
  program number   419 has PID 0x105e   data  0x 1 0xa3 0xf0 0x5e
  program number   420 has PID 0x1068   data  0x 1 0xa4 0xf0 0x68
  program number   421 has PID 0x1072   data  0x 1 0xa5 0xf0 0x72
  program number   422 has PID 0x107c   data  0x 1 0xa6 0xf0 0x7c
  program number   423 has PID 0x1086   data  0x 1 0xa7 0xf0 0x86
  program number   424 has PID 0x1090   data  0x 1 0xa8 0xf0 0x90
  program number   425 has PID 0x109a   data  0x 1 0xa9 0xf0 0x9a
  program number   426 has PID 0x10a4   data  0x 1 0xaa 0xf0 0xa4
  program number   427 has PID 0x10ae   data  0x 1 0xab 0xf0 0xae
  program number   428 has PID 0x10b8   data  0x 1 0xac 0xf0 0xb8
  program number   429 has PID 0x10c2   data  0x 1 0xad 0xf0 0xc2
  program number   430 has PID 0x10cc   data  0x 1 0xae 0xf0 0xcc
  program number   431 has PID 0x10d6   data  0x 1 0xaf 0xf0 0xd6
  program number   432 has PID 0x10e0   data  0x 1 0xb0 0xf0 0xe0
  program number   433 has PID 0x10ea   data  0x 1 0xb1 0xf0 0xea
  program number   434 has PID 0x10f4   data  0x 1 0xb2 0xf0 0xf4
  program number   435 has PID 0x10fe   data  0x 1 0xb3 0xf0 0xfe
  program number   436 has PID 0x1108   data  0x 1 0xb4 0xf1 0x 8
  program number   437 has PID 0x1112   data  0x 1 0xb5 0xf1 0x12
  program number   438 has PID 0x111c   data  0x 1 0xb6 0xf1 0x1c
  program number   439 has PID 0x1126   data  0x 1 0xb7 0xf1 0x26
  program number   440 has PID 0x1130   data  0x 1 0xb8 0xf1 0x30
  program number   441 has PID 0x113a   data  0x 1 0xb9 0xf1 0x3a
  program number   442 has PID 0x1144   data  0x 1 0xba 0xf1 0x44
  program number   443 has PID 0x114e   data  0x 1 0xbb 0xf1 0x4e
  program number   444 has PID 0x1158   data  0x 1 0xbc 0xf1 0x58
  program number   445 has PID 0x1162   data  0x 1 0xbd 0xf1 0x62
  program number   446 has PID 0x116c   data  0x 1 0xbe 0xf1 0x6c
  program number   447 has PID 0x1176   data  0x 1 0xbf 0xf1 0x76
  program number   448 has PID 0x1180   data  0x 1 0xc0 0xf1 0x80
  program number   449 has PID 0x118a   data  0x 1 0xc1 0xf1 0x8a
  program number   450 has PID 0x1194   data  0x 1 0xc2 0xf1 0x94
  program number   451 has PID 0x119e   data  0x 1 0xc3 0xf1 0x9e
  program number   452 has PID 0x11a8   data  0x 1 0xc4 0xf1 0xa8
  program number   453 has PID 0x11b2   data  0x 1 0xc5 0xf1 0xb2
  program number   454 has PID 0x11bc   data  0x 1 0xc6 0xf1 0xbc

2011-02-11 01:07:16.987 ProcessPAT: Program not found in PAT.
            Rescan your transports.
2011-02-11 01:07:17.018 Desired program #101 not found in PAT.
            Can Not create single program PAT.
2011-02-11 01:07:17.227 MainServer::HandleAnnounce FileTransfer
2011-02-11 01:07:17.263 adding: htpc.localdomain as a remote file transfer
2011-02-11 01:07:17.298 ProgramInfo(): Updated pathname '':'' -> '2002_20110211010716.mpg'
2011-02-11 01:07:23.830 RingBuf(/var/video/2002_20110211010716.mpg): Invalid file (fd -1) when opening '/var/video/2002_20110211010716.mpg'.
2011-02-11 01:07:23.873 ProgramInfo(): Updated pathname '':'' -> '2002_20110211010716.mpg'
2011-02-11 01:07:23.912 RingBuf(/var/video/2002_20110211010716.mpg) Error: Invalid file descriptor in 'safe_read()'
2011-02-11 01:07:23.961 ProgramInfo(): Updated pathname '':'' -> '2002_20110211010716.mpg'
2011-02-11 01:07:24.034 ProgramInfo(2271_20100218191214.mpg), Error: GetPlaybackURL: '2271_20100218191214.mpg' should be local, but it can not be found.
2011-02-11 01:07:24.142 RingBuf(/var/video/2002_20110211010716.mpg) Error: Invalid file descriptor in 'safe_read()'
2011-02-11 01:07:24.376 RingBuf(/var/video/2002_20110211010716.mpg) Error: Invalid file descriptor in 'safe_read()'
2011-02-11 01:07:24.609 RingBuf(/var/video/2002_20110211010716.mpg) Error: Invalid file descriptor in 'safe_read()'
2011-02-11 01:07:24.843 RingBuf(/var/video/2002_20110211010716.mpg) Error: Invalid file descriptor in 'safe_read()'
2011-02-11 01:07:25.076 RingBuf(/var/video/2002_20110211010716.mpg) Error: Invalid file descriptor in 'safe_read()'
2011-02-11 01:07:25.321 RingBuf(/var/video/2002_20110211010716.mpg) Error: Invalid file descriptor in 'safe_read()'
2011-02-11 01:07:25.554 RingBuf(/var/video/2002_20110211010716.mpg) Error: Invalid file descriptor in 'safe_read()'
2011-02-11 01:07:25.788 RingBuf(/var/video/2002_20110211010716.mpg) Error: Invalid file descriptor in 'safe_read()'
2011-02-11 01:07:26.021 RingBuf(/var/video/2002_20110211010716.mpg) Error: Invalid file descriptor in 'safe_read()'
2011-02-11 01:07:26.267 ProgramInfo(): Updated pathname '':'' -> '2002_20110211010716.mpg'
2011-02-11 01:07:26.321 TVRec(1): Changing from WatchingLiveTV to None
2011-02-11 01:07:26.664 ProgramInfo(): Updated pathname '':'' -> '2002_20110211010716.mpg'
2011-02-11 01:07:26.721 Finished recording Weeds "A Pool and His Money": channel 2002
2011-02-11 01:07:26.817 ProgramInfo(): Updated pathname '':'' -> '2002_20110211010716.mpg'
2011-02-11 01:07:26.939 ProgramInfo(2271_20100218191214.mpg), Error: GetPlaybackURL: '2271_20100218191214.mpg' should be local, but it can not be found.
find
dteirney Offline
Team-XBMC Developer
Posts: 830
Joined: Jul 2007
Reputation: 6
Location: New Zealand
Post: #417
fiveisalive Wrote:OK, so now I went through my channels, and I found a couple that worked, however all them were SD, none of the HD channels worked. Also the channel numbers from mythfrontend were different. e.g. normally I see channel "2.1" which is WGBH in mythfrontend, but xbmc maps this to just "2" (does this matter?)

Also it seems to be getting confused as to which channels I have access to, for example it lists "BBC World" as a channel, but no such channel exists in my mythfrontend/backend, nor certainly in my actual signal as far as I can tell. Does the myth addon somehow supplement information from the web, in addition to what it pulls from mythbackend?

The list of channels is what comes back over the MythXML interface. Have a look at what the following URL returns and see if that BBC channel is in there.

http://192.168.2.51:6544/Myth/GetProgram...1T00:29:10

Use MythTV for recording TV? Try the integrated MythTV support in XBMC Media Center. Now with commercial skip support built-in and integration with the Movie database!
find
dteirney Offline
Team-XBMC Developer
Posts: 830
Joined: Jul 2007
Reputation: 6
Location: New Zealand
Post: #418
fiveisalive Wrote:OK, so now I went through my channels, and I found a couple that worked, however all them were SD, none of the HD channels worked. Also the channel numbers from mythfrontend were different. e.g. normally I see channel "2.1" which is WGBH in mythfrontend, but xbmc maps this to just "2" (does this matter?)

Channel number is an integer in the PVR API at the moment (which it is for most regions I've seen). Never seen a channel number listed as "2.1".

2.1 will be getting converted to 2 as part of converting the string to an integer.

Use MythTV for recording TV? Try the integrated MythTV support in XBMC Media Center. Now with commercial skip support built-in and integration with the Movie database!
find
dteirney Offline
Team-XBMC Developer
Posts: 830
Joined: Jul 2007
Reputation: 6
Location: New Zealand
Post: #419
fiveisalive Wrote:So here's the contents of my /var/log/mythtv/mythbackend.log when the failure of the playing Live TV occurs (for the same channel, WGBH Boston), maybe this will help narrow down the issue. (Note that playback with xbmc works just fine with the Mythbox addon in Dharma as well as the built-in myth:// support with the same backend server, so this is definitely pvr branch specific).

The PVR branch is delegating directly to the existing myth:// support. It has a few patches to prevent a deadlock when starting LiveTV, but that's all at this stage. Are you sure that LiveTV works if you play it though the myth:// directory structure?

Some debug logs confirming that would be useful.

Use MythTV for recording TV? Try the integrated MythTV support in XBMC Media Center. Now with commercial skip support built-in and integration with the Movie database!
find
rupert Offline
Member
Posts: 53
Joined: Dec 2004
Reputation: 0
Location: 20 Minutes into the future
Post: #420
dteirney Wrote:Channel number is an integer in the PVR API at the moment (which it is for most regions I've seen). Never seen a channel number listed as "2.1".

2.1 will be getting converted to 2 as part of converting the string to an integer.

This could be a big problem for those of us in the States (and I think our Canadian friends when they convert later this year or so?). Our digital OTA standards allow for subchannel numbers to represent different streams on that channel. For instance my OTA PBS station has 56.1, 56.2 and 56.3, there is no channel "56" anymore (to make matters worse, 56 is not the actual UHF freq anymore but just a label, but I digress). Our OTA "channel numbers" don't come in integer form anymore. Even if the channel only has one stream, it will be "X.1".

-Rupert
find
Thread Closed