Kodi Community Forum
MythTV PVR client Addon Developers Wanted - Developers Only! - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+---- Forum: PVR (https://forum.kodi.tv/forumdisplay.php?fid=136)
+---- Thread: MythTV PVR client Addon Developers Wanted - Developers Only! (/showthread.php?tid=82015)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35


- outleradam - 2010-10-24

^^ The only types I've ever seen are 1,3, or 4. The parentid is always 0 on my system.

How would you activate that through normal means and what would you populate the parentid with?


- outleradam - 2010-10-24

everything works except video transfer. I cannot get a video to pop up on-screen. These files exist but are symlinked.
Livetv does not work either.

XBMC log:http://pastebin.com/kfxPRdGB

excerpt from mythbackend log:
Code:
2010-10-23 23:34:55.354 MainServer::HandleVersion - Client speaks protocol version 8 but we speak 63!
2010-10-23 23:34:55.395 MainServer, Warning: Unknown socket closing MythSocket(0x944bd98)
2010-10-23 23:34:55.370 waitpid() failed because No child processes
2010-10-23 23:34:55.355 adding: adam-desktop as a slave backend server
2010-10-23 23:34:55.397 MainServer::ANN Playback
2010-10-23 23:34:55.580 adding: XBMCLive as a client (events: 1)
2010-10-23 23:34:55.474 ProgramInfo(1960_20101019220000.mpg), Error: GetPlaybackURL: '1960_20101019220000.mpg' should be local, but it can not be found.
2010-10-23 23:34:55.616 waitpid() failed because No child processes
2010-10-23 23:34:55.772 waitpid() failed because No child processes
2010-10-23 23:34:55.922 waitpid() failed because No child processes
2010-10-23 23:34:55.938 LoadFromScheduler(): Error, called from backend.
2010-10-23 23:34:55.985 MainServer::HandleVersion - Client speaks protocol version 8 but we speak 63!
2010-10-23 23:34:56.014 MainServer, Warning: Unknown socket closing MythSocket(0x92c6260)
2010-10-23 23:34:56.005 Launching: echo "New Client! WOOOOO  It might be XBMC...  This line is for testing purposes."
2010-10-23 23:34:56.016 MainServer::ANN Playback
2010-10-23 23:34:56.115 adding: XBMCLive as a client (events: 0)
2010-10-23 23:34:56.067 PID 13430: launched
New Client! WOOOOO  It might be XBMC...  This line is for testing purposes.
2010-10-23 23:34:56.047 waitpid() failed because No child processes
2010-10-23 23:34:56.328 PID 13430: exited: status=0, result=0
2010-10-23 23:34:56.465 waitpid() failed because No child processes
2010-10-23 23:34:56.599 waitpid() failed because No child processes
2010-10-23 23:34:56.732 waitpid() failed because No child processes
2010-10-23 23:34:56.868 waitpid() failed because No child processes
2010-10-23 23:34:56.999 waitpid() failed because No child processes
2010-10-23 23:34:57.124 waitpid() failed because No child processes



- wagnerrp - 2010-10-24

outleradam Wrote:How would you activate that through normal means and what would you populate the parentid with?

'parentid' would be be the recordid of the rule the show originally matched against, and you want to override.


- dteirney - 2010-10-24

outleradam Wrote:everything works except video transfer. I cannot get a video to pop up on-screen. These files exist but are symlinked.
Livetv does not work either.

XBMC log:http://pastebin.com/kfxPRdGB

Can you start XBMC from the command line and post the output from the console. Or redirect stdout to a file, e.g. ./xbmc.bin > stdout.txt


- dteirney - 2010-10-24

outleradam Wrote:everything works except video transfer. I cannot get a video to pop up on-screen. These files exist but are symlinked.
Livetv does not work either.

XBMC log:http://pastebin.com/kfxPRdGB

I assume that playback is all working fine through mythfrontend? The number of:

"waitpid() failed because No child processes" in mythbackend.log seems strange.


- outleradam - 2010-10-24

^^ Yeah, dunno what was up with that. It went away after reboot. I had been working on it all day. Something was bound to be screwey... I was hoping someone could tell me what that was.


This is a new log just to verify everything is working properly.

setup:
media center:
installed ppa:mythbuntu/0.24 under Maverick

virtual machine
Installed Dharma B3 LIVE iso
built source from SVN last night
removed Dharma XBMC binary from /usr/bin
replaced runXBMC line /usr/bin/xbmc to /usr/local/bin/XBMC
rebooted



ON mythbackend computer:
1. restarted the computer
2. let mythtv boot up log here: http://pastebin.com/PMNx9eiS

ON my desktop
3. connected with VNC mythfrontend client (i tried ssh last night and had audio but no video)
4. Played video over VNC and verified everything worked properly
5. shutdown XBMC

on virtual machine running XBMC (hosted by my desktop):
6. selected pre-created mythtv-client source
7. navigated to recordings
8. failed attempt to play the same video as in step 4 log here http://pastebin.com/WXE4d5UL
9 shutdown XBMC VM


- outleradam - 2010-10-24

Any suggestions as to how to get this working?


This is what puzzles me:
Code:
[LIST=1]
[*]2010-10-24 07:06:28.845 MainServer::HandleVersion - Client speaks protocol version 8 but we speak 63!
[*]2010-10-24 07:06:28.880 MainServer, Warning: Unknown socket closing MythSocket(0x841bf28)
[*]2010-10-24 07:06:28.883 MainServer::ANN Playback


[/LIST]


- PhracturedBlue - 2010-10-24

outleradam Wrote:Any suggestions as to how to get this working?


This is what puzzles me:
Code:
[LIST=1]
[*]2010-10-24 07:06:28.845 MainServer::HandleVersion - Client speaks protocol version 8 but we speak 63!
[*]2010-10-24 07:06:28.880 MainServer, Warning: Unknown socket closing MythSocket(0x841bf28)
[*]2010-10-24 07:06:28.883 MainServer::ANN Playback


[/LIST]
That message is normal. It just means that thie 1st connect failed (which it is supposed to). we use the output of the 1st connect to choose the correct protocol. If you are actually having an issue, turn on verbose debugging in xbmc and capture stdout (not xbmc.log):
in advancedsettings.xml
Code:
<advancedsettings>
    <loglevel hide="false">3</loglevel>
</advancedsettings>
and report what you see. You are running the latest xbmc from svn trunk, right?


- outleradam - 2010-10-25

^^ Yes. I think I am, Installed live cd, compiled binaries, removed the /usr/bin/xbmc binary and launched the SVN binary located in /usr/local/bin.

I can get information, but video won't come across.

Here is the information http://pastebin.com/M5MGwmAW

For completeness; I removed about 200 lines per second which stated
Code:
snd_pcm_recover) underrun occured
I'm not interested in troubleshooting virtual hardware and that's too much logging

Also, I snipped a large portion in the middle. It's marked with SNIP


- wagnerrp - 2010-10-25

PhracturedBlue Wrote:That message is normal. It just means that thie 1st connect failed (which it is supposed to). We use the output of the 1st connect to choose the correct protocol.

Why not simply have it start with the current release version? Use '23056' for default now. Switch it to '63' next week. That should take care of most of those warnings.

Also, note that the protocol version is a string, not an integer. After the 0.23.1 release that resulted in '23056', all first party code was updated to treat it as such. Any future point releases that result in a protocol bump will likely be of the syntax '63a', '63b', ...


- outleradam - 2010-10-25

just to be sure of this, I made a copy of the runXBMC file, modified it to reference /usr/local/bin/xbmc, did a sudo apt-get remove xbmc-data xbmc-common xbmc, and then copied the runXBMC into the /usr/bin folder and added /usr/bin/runXBMC& to the /etc/rc.local.

So, It should effectively be running SVN, i mean it's got no data or common files from the live CD anymore. I rebooted the virtual machine and tested again. It still had the same thing and the same version information.

I must be doing something wrong... I want this to work and have been working to get this 1 out of 2 approvals for addition into Dharma for the entire weekend.

I'm willing to keep pushing it until I can get it to work. I'm just out of ideas.


- PhracturedBlue - 2010-10-25

wagnerrp Wrote:Why not simply have it start with the current release version? Use '23056' for default now. Switch it to '63' next week. That should take care of most of those warnings.

Also, note that the protocol version is a string, not an integer. After the 0.23.1 release that resulted in '23056', all first party code was updated to treat it as such. Any future point releases that result in a protocol bump will likely be of the syntax '63a', '63b', ...

Well, you'd need to drop support for protocol versions 1-8 if you did that, since they use a different means of communication I believe. On the other hand, I can't imagine anyone still uses such an ancient version of myth.

Since we need to change the code every time they update the protocol, there's no reason to change the protocol from an int to a string until it is necessary.


- PhracturedBlue - 2010-10-25

What I was expecting was to see a bunch of stuff about 'ANN FileTransfer' which I don't see in your log, This is a message you would see from cmyth_conn_connect_file() which is the primary routine in xbmc to fetch a file from xbmc to play.

I do see this:
Code:
(cmyth)cmyth_connect: connect failed on port 6543 to 'XBMC-live' (110)
(cmyth)cmyth_conn_connect_file: done connecting data connection, conn = 0
(cmyth)cmyth_conn_connect_file: cmyth_connect(XBMC-live, 6543, 16384) failed
which definitely doesn't look good.

You do have this:
Code:
(cmyth)cmyth_conn_connect: agreed on Version 63 protocol
(cmyth)__cmyth_send_message
(cmyth)__cmyth_send_message: sending message '23      ANN Playback XBMCLive 0'
(cmyth)__cmyth_rcv_length
(cmyth)cmyth_event_select [event.c:143]: (trace) }
(cmyth)cmyth_event_select [event.c:130]: (trace) {
(cmyth)cmyth_event_select [event.c:143]: (trace) }
(cmyth)cmyth_event_select [event.c:130]: (trace) {
(cmyth)__cmyth_rcv_length: buffer is '2       ' ret = 2
(cmyth)__cmyth_rcv_string: string received 'OK'
Which looks like the connection started to initialize properly.

I'm not sure how to proceed, since I don't see anything obvious from your logs.

You could try this. maybe it would help:
start myrhbackend, and redirect output to a file
wait ~20secs for it to fully initialize
start xbmc, redirect stdout to a file.
go directly to vide->files->mythtv->tvShows->...>some show and play it.
immediately exit xbmc
supply the mythbackend stdout, xbmc stdout, and xbmc.log files.

Maybe with all 3 it will be obvious to me where things are breaking down.

FYI, I don't have any way to test Live-TV with my setup, so I am not sure it works. So let's start with recording playback which does work for me.


- PhracturedBlue - 2010-10-25

By the way, the failure seems to be here:
connection.c: 247
Code:
if (connect(fd, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
                cmyth_dbg(CMYTH_DBG_ERROR,
                          "%s: connect failed on port %d to '%s' (%d)\n",
                          __FUNCTION__, port, server, errno);
                closesocket(fd);
You got error 110 which is a socket timeout, but i'm not sure exactly why.


- outleradam - 2010-10-25

Video is somewhat laggy since I svn upped mythtv. Possibly related? I'm getting you the information you require.

I should clarify that I built from source and then installed the 0.24 repo later. Myth frontend runs slower then usual, but it works.